Vulnerability · Published Jun 22, 2025 · Assigned by VulDB
CVE-2025-6494sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow
Low 3.3
In plain English
A low-severity heap buffer overflow in nokogiri from sparklemotion. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.2% (higher than 8% of all known vulnerabilities).
Official description
A vulnerability was found in sparklemotion nokogiri c29c920907366cb74af13b4dc2230e9c9e23b833. It has been classified as problematic. This affects the function hashmap_get_with_hash of the file gumbo-parser/src/hashmap.c. The manipulation leads to heap-based buffer overflow. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The patch is named ada4708e5a67114402cd3feb70a4e1d1d7cf773a. It is recommended to apply a patch to fix this issue. The project maintainer explains that the affected code was merged into the main branch but the commit never appeared in an official release.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| RubyGems | nokogiri | no fix listed | GHSA-jc9r-qcgw-fxq9 |
| Ubuntu:22.04:LTS | ruby-nokogiri | no fix listed | UBUNTU-CVE-2025-6494 |
| Ubuntu:24.04:LTS | ruby-nokogiri | no fix listed | UBUNTU-CVE-2025-6494 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| sparklemotion | nokogiri | c29c920907366cb74af13b4dc2230e9c9e23b833 |
Weakness: CWE-122, CWE-119 · Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C
References
- VDB-313611 | sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow vdb-entry, technical-description
- VDB-313611 | CTI Indicators (IOB, IOC, IOA) signature, permissions-required
- Submit #601006 | sparklemotion nokogiri nokogiri v1.18.7 (commit a024cff) Heap-based Buffer Overflow third-party-advisory
- https://github.com/sparklemotion/nokogiri/issues/3508 issue-tracking
- https://github.com/sparklemotion/nokogiri/pull/3524 issue-tracking
- https://github.com/user-attachments/files/19825279/nokogiri_crash_2.txt exploit
- https://github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a patch