All vulnerabilities

RubyGems

CVE-2026-61848

Crass: Non-ASCII characters cause superlinear CPU consumption

Severity
Medium
Published
29 Oct 2026
Last changed
29 Oct 2026
Added to UpHeron
23 Nov 2026
Fixed in
1.0.7
Exploit chance
0.5% in the next 30 daysHigher than 39% of CVEs. EPSS by FIRST, 24 Nov 2026
Weakness
Uncontrolled resource consumption (CWE-400)
Also known as
GHSA-8vfg-2r28-hvhj
Sources
OSV.dev and GitHub

Description

When parsing an input containing non-ASCII characters, inefficiencies in how Crass tracks the positions of multi-byte characters result in superlinear parsing time. An attacker-controlled input consisting of many non-ASCII characters could cause excessive CPU consumption and potentially denial of service.

From the GitHub Advisory Database, CC BY 4.0.

Workarounds

Avoid passing non-ASCII input to Crass. Or cultivate patience.

Workarounds as given by the GitHub Advisory Database, CC BY 4.0.

Affected software

SoftwareAffected versions
crassRubyGems · osv:RubyGems:crass
  • Every version before 1.0.7

About crass

Total downloads (RubyGems)
649,854,345RubyGems, 23 Nov 2026

References