CVE-2026-61845: Rubygems/crass vulnerability
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
- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
rubygems/crassto a version that resolves this vulnerability.Fixed in 1.0.7 - Upgrade
Upgrade
crassto a version that resolves this vulnerability.Fixed in 1.0.7
Event History
Frequently Asked Questions
Which applications are exposed to this issue?
Applications that use Crass to parse CSS strings controlled by an attacker are exposed. The impact is disproportionate CPU and memory consumption and a possible crash.
What does an attacker need to provide?
The attacker needs to get a CSS string containing scientific-notation number values parsed by Crass. A small input can trigger unbounded exponentiation before the value is clamped.
What version addresses the issue?
Crass 1.0.7 fixes the issue.