# CVE-2026-61845: Crass: Large numeric exponents cause CPU and memory denial of service

- Severity: High 8.9 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.39%, higher than 34% of CVEs (2026-12-01)
- Published: 2026-10-20T14:32:39.000Z
- Modified: 2026-10-30T20:17:11.263Z
- Also known as: GHSA-6wmf-3r64-vcwv
- Weaknesses: CWE-674, CWE-789
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- rgrove crass: < 1.0.7
- crass (RubyGems): before 1.0.7

## Every score

- GitHub_M: CVSS:4.0 8.9 High `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`
- GitHub: CVSS:4.0 High `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> (web)
- <https://github.com/rgrove/crass/commit/ea6726b7f7cf7e85b23aa2240b8512b4f8d11ad9>
- <https://github.com/rgrove/crass/releases/tag/v1.0.7> (web)
- <https://github.com/rgrove/crass> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml> (web)
- <https://rubygems.org/gems/crass/versions/1.0.7> (web)

## Sources

- CVE List: [CVE-2026-61845](https://www.cve.org/CVERecord?id=CVE-2026-61845), CVE Terms of Use, modified 2026-10-30
- GitHub Advisory Database: [GHSA-6wmf-3r64-vcwv](https://github.com/advisories/GHSA-6wmf-3r64-vcwv), CC-BY-4.0, modified 2026-10-20
- NVD: [CVE-2026-61845](https://nvd.nist.gov/vuln/detail/CVE-2026-61845), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-61845 · Whole record: https://cve.day/CVE-2026-61845.json · Rebuilt by cve.day 2026-11-25T22:59:47.999Z
