Crass : Large numeric exponents cause CPU and memory denial of service
### 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
- Products
- crass
- Affected versions
- 0.0.1, 0.0.2, 0.1.0, 0.2.0, 0.2.1, 1.0.0, 1.0.1, 1.0.2, 1.0.3, 1.0.4, 1.0.5, 1.0.6
- Fixed versions
- 1.0.7
- CVEs
- CVE-2026-61845
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 13:03 UTC · Revision 1
Source evidence
Crass : Large numeric exponents cause CPU and memory denial of service
core-osv · Original sourcePublished 20 Oct 2026, 14:32 UTC
### 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
osv:GHSA-6wmf-3r64-vcwv
crass
Fixed versions: 1.0.7
Complete source record
{
"id": "05636b532ffa8794f38fa188751e7a798a0a95056735bb8900ad78c23aa88ca8",
"url": "https://osv.dev/vulnerability/GHSA-6wmf-3r64-vcwv",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "Crass : Large numeric exponents cause CPU and memory denial of service",
"summary": "### 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",
"evidence": "osv:GHSA-6wmf-3r64-vcwv",
"products": [
{
"name": {
"value": "crass",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.0.7",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": [
{
"value": "0.0.1",
"evidence": "/affected/0/versions"
},
{
"value": "0.0.2",
"evidence": "/affected/0/versions"
},
{
"value": "0.1.0",
"evidence": "/affected/0/versions"
},
{
"value": "0.2.0",
"evidence": "/affected/0/versions"
},
{
"value": "0.2.1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.0",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.1",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.2",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.3",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.4",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.5",
"evidence": "/affected/0/versions"
},
{
"value": "1.0.6",
"evidence": "/affected/0/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "GHSA-6wmf-3r64-vcwv",
"aliases": [
"CVE-2026-61845",
"GHSA-6wmf-3r64-vcwv"
],
"metrics": [
{
"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": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.0.7"
}
]
}
],
"package": {
"name": "crass",
"purl": "pkg:gem/crass",
"ecosystem": "RubyGems"
},
"versions": [
"0.0.1",
"0.0.2",
"0.1.0",
"0.2.0",
"0.2.1",
"1.0.0",
"1.0.1",
"1.0.2",
"1.0.3",
"1.0.4",
"1.0.5",
"1.0.6"
],
"database_specific": {
"source": "https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/10/GHSA-6wmf-3r64-vcwv/GHSA-6wmf-3r64-vcwv.json"
}
}
],
"modified": "2026-10-20T14:45:03.938633122Z",
"provider": "osv",
"references": [
"https://github.com/rgrove/crass/security/advisories/GHSA-6wmf-3r64-vcwv",
"https://github.com/rgrove/crass",
"https://github.com/rgrove/crass/releases/tag/v1.0.7",
"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/crass/GHSA-6wmf-3r64-vcwv.yml",
"https://rubygems.org/gems/crass/versions/1.0.7"
],
"provider_metadata": {
"cwe_ids": [
"CWE-674"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": null,
"github_reviewed_at": "2026-10-20T14:32:39Z"
}
},
"related_cves": [
{
"value": "CVE-2026-61845",
"evidence": "/aliases"
}
],
"security_relevant": true,
"severity_evidence": "/database_specific/severity"
},
"source_id": "core-osv",
"document_id": 389733,
"published_at": "2026-10-20T14:32:39+00:00"
}