# GHSA-6WMF-3R64-VCWV: Crass : Large numeric exponents cause CPU and memory denial of service

- Database: GitHub
- Severity: high (stated by ghsa, no CVSS score)
- Published: 2026-10-20
- Modified: 2026-10-20

## Tracked as

- [CVE-2026-61845](https://cve.now/CVE-2026-61845.md): Crass: Large numeric exponents cause CPU and memory denial of service

## Affected versions

- crass (RubyGems): fixed in 1.0.7

## 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

- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml

## References

- https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv
- https://github.com/rgrove/crass
- 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

Page: https://cve.now/GHSA-6WMF-3R64-VCWV

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
