Denial of service in Active Support safe_constantize
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- —
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Partial Red Hat: 1 without a fix
Attack profile from CVSS 3.1 · CNA. Fix status from CNA, GitHub and Red Hat.
Summary
Active Support in Rails from 8.1 before 8.1.4.1 and before 8.0.5.2 is affected. The safe_constantize method builds a regular expression from an unescaped constant name, so crafted input can trigger defects in Ruby's regex compiler (CWE-74). An unauthenticated remote client can reach this through the Action Cable subscribe command when an application accepts untrusted connections, possibly crashing the server process and keeping it unavailable through repeated requests.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
Description from the CNA
Active Support is a collection of utility classes and standard library extensions used by Rails and other Ruby projects. Prior to 8.1.4.1 and 8.0.5.2, when constant lookup raises LoadError, ActiveSupport::Inflector#safe_constantize (and String#safe_constantize) builds a regular expression from the requested constant name without escaping it, so a caller that passes untrusted input lets the attacker choose the source of a pattern that the application compiles. Crafted patterns can trigger defects in Ruby's regular expression compiler, possibly leading to a crash of the server process, and repeated requests could keep the application unavailable. Action Cable passes the channel value of each subscribe command to safe_constantize before any channel lookup, so an unauthenticated client can reach this code when the application mounts Action Cable and accepts connections from untrusted clients without an added authentication check. This issue is fixed in versions 8.1.4.1 and 8.0.5.2.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| Rails | rails | 8.1 to before 8.1.4.1; before 8.0.5.2 | 8.1.4.1, 8.0.5.2 | Patch available | CNA |
| — | activesupport (RubyGems) | 8.1.0.beta1 to before 8.1.4.1 | 8.1.4.1 | Patch available | GHSA-8474-xrp6-wh69 |
| — | activesupport (RubyGems) | before 8.0.5.2 | 8.0.5.2 | Patch available | GHSA-8474-xrp6-wh69 |
- rails VendorRails Affected 8.1 to before 8.1.4.1; before 8.0.5.2 Fixed in 8.1.4.1, 8.0.5.2 Patch available CNA
- activesupport (RubyGems) Vendor— Affected 8.1.0.beta1 to before 8.1.4.1 Fixed in 8.1.4.1 Patch available GHSA-8474-xrp6-wh69
- activesupport (RubyGems) Vendor— Affected before 8.0.5.2 Fixed in 8.0.5.2 Patch available GHSA-8474-xrp6-wh69
Remediation
Upgrade rails to 8.1.4.1 or 8.0.5.2 and activesupport to 8.1.4.1 or 8.0.5.2. Red Hat's plan for 3scale API Management Platform 2, which is affected, is none available.
Written with Claude Haiku 5.5 from the sources below · 2026-11-14
- Fix · CNA rails (rails) Fixed in 8.1.4.1, 8.0.5.2
- Fix · GHSA-8474-xrp6-wh69 activesupport (RubyGems) Fixed in 8.1.4.1 Advisory →
- Fix · GHSA-8474-xrp6-wh69 activesupport (RubyGems) Fixed in 8.0.5.2 Advisory →
Vendor assessments
Red Hat
Red Hat rating: Important. Red Hat's page for this CVE →
| Product | Status | Plan or fix |
|---|---|---|
| Red Hat 3scale API Management Platform 2 | Affected | No fix yet |
Not affected: 2 products
- Red Hat 3scale API Management Platform 2
- Red Hat Enterprise Linux 9
Timeline
- 2026-11-10 Threatist record created from CVE-2026-126080
- 2026-11-10 Alias added: GHSA-8474-xrp6-wh69
- 2026-11-10 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-8474-xrp6-wh69
- 2026-11-10 CVSS score added · GHSA-8474-xrp6-wh69
- 2026-11-10 Weakness changed · GHSA-8474-xrp6-wh69
- 2026-11-10 7 new references · GHSA-8474-xrp6-wh69
- 2026-11-11 Affected versions changed · Red Hat
- 2026-11-11 CVSS score added · Red Hat
- 2026-11-11 Affected versions changed · Red Hat
- 2026-11-12 Priority changed: MEDIUM → LOW
- 2026-11-12 CISA SSVC decision points changed
- 2026-11-14 Affected versions changed · Red Hat
References
Other 7
- https://github.com/rails/rails/security/advisories/GHSA-8474-xrp6-wh69
- https://github.com/rails/rails/commit/210ac22d446c8e2625b091e79256806b836eee20
- https://github.com/rails/rails/commit/95aa9e416016524956d4904fed96eaed079580bb
- https://github.com/rails/rails/releases/tag/v8.0.5.2
- https://github.com/rails/rails/releases/tag/v8.1.4.1
- https://github.com/rails/rails
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/activesupport/GHSA-8474-xrp6-wh69.yml
More Rails vulnerabilities
- TI-2014-00124 Path traversal in Ruby on Rails lets remote attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03828 File content disclosure in Rails Action View KEVCVSS 3.1HIGH 7.5
- TI-2016-00672 Directory traversal in Rails Action View lets attackers read files KEVCVSS 3.1HIGH 7.5
- TI-2019-03830 Command injection in Rails https://github.com/rails/rails CVSS 3.1CRITICAL 9.8
- TI-2026-47043 Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing CVSS 4.0CRITICAL 9.5
- TI-2025-18040 Command injection in Rails activestorage CVSS 4.0CRITICAL 9.2
Sources
- CVE-2026-126080 · CVE Program
- CVE-2026-126080 · NVD
- FIRST EPSS
- GHSA-8474-xrp6-wh69 · GitHub Advisory Database · CC BY 4.0
- CVE-2026-126080 · Red Hat security data · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences