Crass
Crass: Large numeric exponents cause CPU and memory denial of service
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.
First public PoC
None yetno public PoC found
Public PoCs00 on GitHub
CVSS8.9high · scored by CNA · CWE-789
CISA KEV
Not listednot known exploited
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
rgrove crass
- < 1.0.7
Fixed in 1.0.7
Mitigation
Upgrade crass to 1.0.7 or later.
References
- Vendor advisory github.com/rgrove/crass/security/advisories/GH…
- Patch github.com/rgrove/crass/commit/ea6726b7f7cf7e8…
- Release notes github.com/rgrove/crass/releases/tag/v1.0.7
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.