CVE-2026-126080

NameCVE-2026-126080
DescriptionActive 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
ReferencesDLA-4934-1, DSA-6669-1
Debian Bugs1154301

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
rails (PTS)bookworm2:6.1.7.10+dfsg-1~deb12u2vulnerable
bookworm (security)2:6.1.7.10+dfsg-1~deb12u4fixed
trixie2:7.2.2.2+dfsg-2~deb13u2vulnerable
trixie (security)2:7.2.2.2+dfsg-2~deb13u3fixed
forky, sid2:7.2.4+dfsg-3fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
railssourcebookworm2:6.1.7.10+dfsg-1~deb12u4DLA-4934-1
railssourcetrixie2:7.2.2.2+dfsg-2~deb13u3DSA-6669-1
railssource(unstable)2:7.2.4+dfsg-31154301

Notes

https://github.com/rails/rails/security/advisories/GHSA-8474-xrp6-wh69

Search for package or bug name: Reporting problems