Crass : Large numeric exponents cause CPU and memory denial of service (CVE-2026-61845)
Description
Crass versions prior to 1.0.7 contain a vulnerability where processing CSS scientific notation numbers with very large exponents can cause excessive CPU and memory consumption, potentially leading to denial of service or application crashes. This occurs because Crass converts these numbers with unbounded exponentiation before clamping to Float::MAX. The issue is fixed in version 1.0.7.
CVSS v4.0
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Crass library improperly handles CSS scientific notation number values with large exponents by performing unbounded exponentiation before clamping the result to Float::MAX. This flaw allows an attacker to craft CSS strings that cause the parser to consume disproportionate CPU and memory resources, potentially crashing the application using Crass. The vulnerability is tracked as CVE-2026-61845 and is fixed in Crass version 1.0.7.
Potential Impact
Applications using Crass to parse attacker-controlled CSS inputs can be forced into high CPU and memory usage, leading to denial of service or crashes. There is no indication of code execution or data leakage. The impact is limited to resource exhaustion.
Mitigation Recommendations
Upgrade Crass to version 1.0.7 or later, where this vulnerability is fixed. No other mitigations are indicated or necessary.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-6wmf-3r64-vcwv
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-61845"]
- Ecosystems
- ["RubyGems"]
- Database Specific Severity
- HIGH
- Cvss Version
- 4.0
Threat ID: 6ad7914c2cdf04f656405afa
Added to database: 10/20/2026, 16:05:32 UTC
Last enriched: 10/20/2026, 16:18:15 UTC
Last updated: 10/20/2026, 16:18:15 UTC
Views: 11
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.