Skip to content
High 7.5

Active Supportの正規表現処理に脆弱性、サービス停止のおそれ

CVE-2026-126080 First seen on SecPulse

Summary

Active Supportのsafe_constantizeで、信頼できない入力からパターンを作れるため、サーバープロセスが停止するおそれがあります。Action Cableを使い、認証なしで接続を受け付けるRailsアプリケーションが影響を受けます。対象はバージョン8.1.4.1より前と8.0.5.2より前で、修正版は8.1.4.1と8.0.5.2です。修正版への更新を急いでください。

AI summary

Produced by SecPulse using an external AI model; it may contain mistakes. Check the original description and references below before acting on it.

Active Supportのsafe_constantizeで、信頼できない入力からパターンを作れるため、サーバープロセスが停止するおそれがあります。Action Cableを使い、認証なしで接続を受け付けるRailsアプリケーションが影響を受けます。対象はバージョン8.1.4.1より前と8.0.5.2より前で、修正版は8.1.4.1と8.0.5.2です。修正版への更新を急いでください。

Affected packages

PackageAffected → Fixed
railsrails —
RubyGemsactivesupport
< 8.0.5.2→ 8.0.5.2

Fix status by distribution

Records published by each distribution for this CVE. Fixed versions differ by release; check each link.

Original description The description as published by the source.

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.

Source: CVE.org (CVE Program・cvelistV5) NVD GitHub Advisory

References

We use cookies for analytics and ad measurement. This setting applies to all Game co., Ltd. sites. Details