Vulnerability · Published Oct 30, 2026 · Assigned by GitHub_M
CVE-2026-61845Crass: Large numeric exponents cause CPU and memory denial of service
High 8.9
In plain English
A high-severity security flaw in crass from rgrove. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Official description
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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | ruby-crass | no fix listed | DEBIAN-CVE-2026-61845 |
| Debian:13 | ruby-crass | no fix listed | DEBIAN-CVE-2026-61845 |
| Debian:14 | ruby-crass | 1.0.7-1 | DEBIAN-CVE-2026-61845 |
| RubyGems | crass | 1.0.7 | GHSA-6wmf-3r64-vcwv |
| Ubuntu:22.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-61845 |
| Ubuntu:24.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-61845 |
| Ubuntu:26.04:LTS | ruby-crass | no fix listed | UBUNTU-CVE-2026-61845 |
| Ubuntu:26.10 | ruby-crass | no fix listed | UBUNTU-CVE-2026-61845 |
Affected products (as reported)
Weakness: CWE-789 · Vector: 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
References
- https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv x_refsource_CONFIRM
- https://github.com/rgrove/crass/commit/ea6726b7f7cf7e85b23aa2240b8512b4f8d11ad9 x_refsource_MISC
- https://github.com/rgrove/crass/releases/tag/v1.0.7 x_refsource_MISC