rgrove/crass · Security
Crass : Large numeric exponents cause CPU and memory denial of service
- GHSA ID
- GHSA-6wmf-3r64-vcwv
- CVE ID
- CVE-2026-61845
- Severity
- high
- Published
- Updated
- CVSS v4
- 8.9 · CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:H
Description
Impact
Crass converts CSS scientific notation number values with unbounded exponentiation before it clamps 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, possibly resulting in a crash.
Patches
This is fixed in Crass 1.0.7.
Related
CWEs
- CWE-674 · Uncontrolled Recursion
References
- https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv ↗
- https://github.com/rgrove/crass/releases/tag/v1.0.7 ↗
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml ↗
- https://rubygems.org/gems/crass/versions/1.0.7 ↗
- https://github.com/advisories/GHSA-6wmf-3r64-vcwv ↗