All reports
High

Crass : Large numeric exponents cause CPU and memory denial of service

Affected versions

Affected versions
Unknown
Fixed version
Not reported
Affected versions
Unknown
Fixed version
Not reported
RubyGemscrass
Affected versions
< 1.0.7
Fixed version
1.0.7

Exploitation

CVE-2026-61845

Probability of exploitation in the next 30 days: 0.39%

FIRST EPSS · 2026-11-22

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

Links

Credits

  • hourianto
  • rgrove