Skip to content
OpenAdvisories
High · 7.5 CVE-2026-126080 EUVD-2026-122930GHSA-8474-xrp6-wh69

Active Support: Possible DoS vulnerability in Active Support safe_constantize

Published Nov 10, 2026 · Updated Nov 12, 2026 · Assigned by GitHub_M

Description

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.

Affected products

VendorProductAffectedFixed
rails rails >= 8.1, < 8.1.4.1, < 8.0.5.2 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 rails No fix yet —
Debian 13 rails No fix yet —
Debian 12 rails No fix yet —
ReleasePackageFixed inAdvisory
Ubuntu 26.10 rails No fix yet —
Ubuntu 26.04 LTS rails No fix yet —
Ubuntu 24.04 LTS rails No fix yet —
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 22.04 LTS rails No fix yet —
Ubuntu Pro 20.04 LTS rails No fix yet —
Ubuntu Pro 18.04 LTS rails No fix yet —
Ubuntu Pro 16.04 LTS rails No fix yet —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling cinc-auditor +1 No fix yet —

Affected packages

EcosystemPackageAffectedFixedRecord
RubyGems activesupport >= 8.1.0.beta1, < 8.1.4.1 8.1.4.1 GHSA-8474-xrp6-wh69
RubyGems activesupport < 8.0.5.2 8.0.5.2 GHSA-8474-xrp6-wh69

Advisories 1

References