Crassに大きな指数を含むCSSを処理させるとサービス妨害を受ける脆弱性
Summary
Crassは、CSSの数値の指数を上限なく計算してから値を制限するため、細工されたCSSを解析させるとCPUとメモリが過剰に使われ、処理が止まることがあります。影響を受けるのはRubyGemsのcrass 1.0.7より前の版で、1.0.7で修正されています。CSSを外部から受け取るアプリケーションでは、早めに1.0.7以降へ更新してください。
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.
Crassは、CSSの数値の指数を上限なく計算してから値を制限するため、細工されたCSSを解析させるとCPUとメモリが過剰に使われ、処理が止まることがあります。影響を受けるのはRubyGemsのcrass 1.0.7より前の版で、1.0.7で修正されています。CSSを外部から受け取るアプリケーションでは、早めに1.0.7以降へ更新してください。
Affected packages
| Package | Affected → Fixed | |
|---|---|---|
| rubygemscrass |
< 1.0.7→ 1.0.7 |
1.0.7 |
| rgrovecrass | — | Not listed |
Fix status by distribution
Records published by each distribution for this CVE. Fixed versions differ by release; check each link.
- Debian DEBIAN-CVE-2026-61845 ruby-crass Fix available
- Ubuntu UBUNTU-CVE-2026-61845 ruby-crass No fixed version in this record
Original description The description as published by the source.
Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. Prior to 1.0.7, Crass converts CSS scientific notation number values with unbounded exponentiation before clamping the result to Float::MAX. Applications that use Crass to parse attacker-controlled CSS strings can be forced to spend disproportionate CPU and memory parsing a tiny input, potentially resulting in a crash. This issue is fixed in version 1.0.7.
Source: GitHub Security Advisories (Global) NVD GitHub Advisory
References
- advisory github.com
- advisory github.com
- advisory nvd.nist.gov
- package github.com
- patch github.com
- REDHAT Red Hat
- web github.com
- web github.com
- web rubygems.org
- web github.com