← Vulnerabilities

HighAdvisoryRubyRuby on Rails

Active Support: Possible DoS vulnerability in Active Support safe_constantize

Affected

PackageAffected versionsFixed in
rubygems:activesupport>= 8.1.0.beta1, < 8.1.4.18.1.4.1
rubygems:activesupport< 8.0.5.28.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 unavailabl…

Read on GitHub Advisory Database

On 11/11/2026, 06:34 AM, GitHub Advisory Database published "Active Support: Possible DoS vulnerability in Active Support safe_constantize" (type: Advisory). Severity is "High" (high). Related technologies: Ruby, Ruby on Rails. CVE: CVE-2026-126080.