Vulnerabilities in pkg:gem/crass
PACKAGECVE-2026-61845 is a HIGH denial of service vulnerability (CWE-674: Uncontrolled Recursion) affecting Crass libraries in the RubyGems ecosystem. The issue involves large numeric exponents cause cpu and memory denial of service. Remediation is available by upgrading affected packages to version 1.0.7.
pkg:gem/crass
Vulnerability advisories affecting package pkg:gem/crass. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-6wmf-3r64-vcwv | CVE-2026-61845 | HIGH | Crass : Large numeric exponents cause CPU and memory denial of service |
CVE-2026-61845 at a Glance
How to Fix CVE-2026-61845
To remediate this vulnerability, upgrade all affected Crass dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade crass to 1.0.7
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for crass
How to Check if You Are Affected
To determine whether your application is affected by CVE-2026-61845, inspect your project dependencies for Crass:
inspect dependencies for crass
Analyze the terminal output to locate any version of Crass in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.0.7), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-674: Uncontrolled Recursion, where the product does not properly control the amount of recursion that takes place, consuming excessive resources, such as allocated memory or the program stack. In Crass, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2026-61845 Affected Crass Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
crass
|
RubyGems |
< 1.0.7
|
1.0.7
|
References
Frequently Asked Questions
What is CVE-2026-61845?
Which Crass versions are affected?
What version fixes CVE-2026-61845?
Is crass affected?
What CWE is associated with CVE-2026-61845?
How can I check RubyGems dependencies for CVE-2026-61845?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-6wmf-3r64-vcwv",
"modified" : "2026-10-20T14:32:39Z",
"published" : "2026-10-20T14:32:39Z",
"aliases" : [ "CVE-2026-61845" ],
"summary" : "Crass : Large numeric exponents cause CPU and memory denial of service",
"details" : "### 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",
"severity" : [ {
"type" : "CVSS_V4",
"score" : "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"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "RubyGems",
"name" : "crass"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.0.7"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/rgrove/crass"
}, {
"type" : "WEB",
"url" : "https://github.com/rgrove/crass/releases/tag/v1.0.7"
}, {
"type" : "WEB",
"url" : "https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml"
}, {
"type" : "WEB",
"url" : "https://rubygems.org/gems/crass/versions/1.0.7"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-674" ],
"severity" : "HIGH",
"github_reviewed" : true,
"github_reviewed_at" : "2026-10-20T14:32:39Z",
"nvd_published_at" : null
}
}