Active Supportに正規表現によるサービス拒否の脆弱性 CPUとメモリを大量に消費
Summary
2023年2月に公表された、Active Supportの正規表現によるサービス拒否(DoS)の脆弱性です。細工された文字列をunderscoreメソッドに渡すと、CPUとメモリを大量に使い、処理が止まるおそれがあります。影響を受けるのは6.1.7.1より前の6.1系と、7.0.4.1より前の7.0系で、修正版への更新が必要です。
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.
2023年2月に公表された、Active Supportの正規表現によるサービス拒否(DoS)の脆弱性です。細工された文字列をunderscoreメソッドに渡すと、CPUとメモリを大量に使い、処理が止まるおそれがあります。影響を受けるのは6.1.7.1より前の6.1系と、7.0.4.1より前の7.0系で、修正版への更新が必要です。
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Alpine Linux ALPINE-CVE-2023-22796 ruby-activesupport Fix available
- Debian DEBIAN-CVE-2023-22796 rails Fix available
- Ubuntu UBUNTU-CVE-2023-22796 rails No fixed version in this record
Original description The description as published by the source.
A regular expression based DoS vulnerability in Active Support <6.1.7.1 and <7.0.4.1. A specially crafted string passed to the underscore method can cause the regular expression engine to enter a state of catastrophic backtracking. This can cause the process to use large amounts of CPU and memory, leading to a possible DoS vulnerability.
Source: NIST National Vulnerability Database NVD
References
- patch discuss.rubyonrails.org
- web security.netapp.com
- web debian.org