Read the docs

Denial of service in Active Support safe_constantize

Priority MEDIUM 40CWE-74Published · Updated

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

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00829 58th percentileScored 2026-11-16
Fix Partial rails (rails): 8.1.4.1, 8.0.5.2activesupport (RubyGems): 8.1.4.1, 8.0.5.2Red Hat: 1 without a fix

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

VendorProductAffected versionsFixed inStatusSource
Railsrails8.1 to before 8.1.4.1; before 8.0.5.28.1.4.1, 8.0.5.2Patch availableCNA
—activesupport (RubyGems)8.1.0.beta1 to before 8.1.4.18.1.4.1Patch availableGHSA-8474-xrp6-wh69
—activesupport (RubyGems)before 8.0.5.28.0.5.2Patch availableGHSA-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

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:*——Rails
  • cpe:2.3:a:rubyonrails:rails:*:*:*:*:*:*:*:* Versions — — ·Rails

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 →

ProductStatusPlan or fix
Red Hat 3scale API Management Platform 2AffectedNo fix yet
Not affected: 2 products
  • Red Hat 3scale API Management Platform 2
  • Red Hat Enterprise Linux 9

Timeline

  1. 2026-11-10 Threatist record created from CVE-2026-126080
  2. 2026-11-10 Alias added: GHSA-8474-xrp6-wh69
  3. 2026-11-10 Fix available: RubyGems/[email protected], RubyGems/[email protected] · GHSA-8474-xrp6-wh69
  4. 2026-11-10 CVSS score added · GHSA-8474-xrp6-wh69
  5. 2026-11-10 Weakness changed · GHSA-8474-xrp6-wh69
  6. 2026-11-10 7 new references · GHSA-8474-xrp6-wh69
  7. 2026-11-11 Affected versions changed · Red Hat
  8. 2026-11-11 CVSS score added · Red Hat
  9. 2026-11-11 Affected versions changed · Red Hat
  10. 2026-11-12 Priority changed: MEDIUM → LOW
  11. 2026-11-12 CISA SSVC decision points changed
  12. 2026-11-14 Affected versions changed · Red Hat

References

  • 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
See all 185 →

Sources