GitHub Advisoryadvisory · RubyGems

GHSA-6wmf-3r64-vcwv Crass : Large numeric exponents cause CPU and memory denial of service

HIGH Published 2026-10-20 Modified 2026-10-20 Official page ↗
Aliases
CVE-2026-61845
Ecosystem
RubyGems
Packages
crass
Severity
High
CVSS 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
Weaknesses
CWE-674
Reviewed
2026-10-20

Affected packages

• RubyGems crass: < 1.0.7 → 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

Related

Alias · CVE (1)

  • CVE-2026-61845 Crass is a Ruby CSS parser that's fully compliant with the CSS Syntax Level 3 specification. vulnerability

Weakness · CWE (1)

  • CWE-674 Uncontrolled Recursion weakness

References