{"id":"CVE-2026-61845","aliases":["CVE-2026-61845","GHSA-6wmf-3r64-vcwv"],"related":[],"kind":"vulnerability","state":"published","title":"Crass: Large numeric exponents cause CPU and memory denial of service","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"en","text":"### Impact\n\nCrass 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.\n\n### Patches\n\nThis is fixed in Crass 1.0.7.\n\n### Related\n\n- https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml","format":"markdown","source":"ghsa"}],"published":"2026-10-20T14:32:39.000Z","modified":"2026-10-30T20:17:11.263Z","severity":{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.9,"rating":"HIGH"},"severities":[{"scorer":"GitHub_M","scheme":"CVSS:4.0","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","score":8.9,"rating":"HIGH"},{"scorer":"GitHub","scheme":"CVSS:4.0","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","rating":"HIGH"}],"cwes":["CWE-674","CWE-789"],"affected":[{"ranges":[{"version":"< 1.0.7","status":"affected"}],"vendor":"rgrove","product":"crass","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.0.7"}],"ecosystem":"RubyGems","package":"crass","purl":"pkg:gem/crass","source":"ghsa"}],"references":[{"url":"https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv","tags":["web","x-refsource-confirm"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rgrove/crass/commit/ea6726b7f7cf7e85b23aa2240b8512b4f8d11ad9","tags":["x-refsource-misc"],"sources":["cvelist","nvd"]},{"url":"https://github.com/rgrove/crass/releases/tag/v1.0.7","tags":["web","x-refsource-misc"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/rgrove/crass","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml","tags":["web"],"sources":["ghsa"]},{"url":"https://rubygems.org/gems/crass/versions/1.0.7","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"GitHub_M","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-10-30T19:40:36.690Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-61845","url":"https://www.cve.org/CVERecord?id=CVE-2026-61845","licence":"CVE Terms of Use","modified":"2026-10-30T19:41:24.227Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-6wmf-3r64-vcwv","url":"https://github.com/advisories/GHSA-6wmf-3r64-vcwv","licence":"CC-BY-4.0","modified":"2026-10-20T14:45:03.938Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-61845","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-61845","licence":"Public domain","modified":"2026-10-30T20:17:11.263Z"}],"updatedAt":"2026-11-25T22:59:47.999Z","epss":{"score":0.00386,"percentile":0.34848,"date":"2026-12-01T12:00:22.000Z"}}