cve.bz

CVE-2026-126080 Active Support: Possible DoS vulnerability in Active Support safe_constantize

7.5 highEPSS 0.8%Fix available

High (7.5) in rails rails. EPSS 0.8% estimated probability of exploitation activity in the next 30 days. Fixed in activesupport 8.0.5.2, 8.1.4.1.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
0.8% estimated probability of exploitation activity in the next 30 days; 58th percentile. Scored 2026-11-13. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2026-11-12. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection)
OWASP Top 10
A05:2025 Injection
Published
Modified
Assigned by
GitHub_M (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-126080 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-126080?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-126080?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-126080 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-126080

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-126080](https://cve.bz/cve/badge/CVE-2026-126080.svg)](https://cve.bz/cve/CVE-2026-126080)

HTML:

<a href="https://cve.bz/cve/CVE-2026-126080"><img src="https://cve.bz/cve/badge/CVE-2026-126080.svg" alt="CVE-2026-126080"></a>

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
rails>= 8.1, < 8.1.4.1
rails< 8.0.5.2

Fix and patched versions

  • activesupport (RubyGems): fixed in 8.1.4.1, 8.0.5.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-8474-xrp6-wh69RubyGemsactivesupport>=8.1.0.beta1 <8.1.4.18.1.4.1
GHSA-8474-xrp6-wh69RubyGemsactivesupport<8.0.5.28.0.5.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14railsno fix listedDEBIAN-CVE-2026-126080
Ubuntu24.04:LTS, 26.04:LTS, 26.10 and 4 morerailsno fix listedUBUNTU-CVE-2026-126080

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This vulnerability is rated as Important because an unauthenticated remote attacker can crash the application server by providing malicious channel subscription parameters to exposed Action Cable endpoints, causing a persistent denial of service. The impact primarily threatens availability in deployments that permit unauthenticated connections to Action Cable endpoints. Services that disable Action Cable or enforce strict user verification prior to channel subscription face significantly reduced exposure.

Red Hat's mitigation

For applications that do not require Action Cable functionality, disable the endpoint by setting the mount path to nil in the application configuration:

config.action_cable.mount_path = nil

For applications requiring Action Cable, enforce authentication by rejecting unauthorized connections in the connection handler:

# In app/channels/application_cable/connection.rb

module ApplicationCable

class Connection < ActionCable::Connection::Base

def connect

reject_unauthorized_connection unless current_user

end

end

end

Caveats: Disabling the mount path disables all Action Cable WebSocket endpoints. Enforcing authentication limits exposure to verified users only and does not eliminate risk from untrusted authenticated users.

Warning: Modifying application configuration or channel connection files requires restarting the application service to take effect.

ProductPackageStateAdvisory
Red Hat 3scale API Management Platform 23scale-amp2/backend-rhel8Affected
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel8Will not fix
Red Hat 3scale API Management Platform 23scale-amp2/system-rhel9Affected
Red Hat 3scale API Management Platform 23scale-amp2/toolbox-rhel9Affected
Red Hat 3scale API Management Platform 23scale-amp2/zync-rhel9Affected
Red Hat Enterprise Linux 9rubyNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-126080.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-74 (37).

References

Check your stackJSON