# CVE-2025-6494: sparklemotion nokogiri hashmap.c hashmap_get_with_hash heap-based overflow

- Severity: Medium 4.8 (CVSS:4.0, scored by VulDB) `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.19%, higher than 9% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-06-22T22:31:05.760Z
- Modified: 2026-09-10T03:50:57.807Z
- Also known as: GHSA-jc9r-qcgw-fxq9
- Weaknesses: CWE-119, CWE-122
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulDB

## 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.

(As written by CVE List.)

## Affected

- sparklemotion nokogiri: c29c920907366cb74af13b4dc2230e9c9e23b833
- nokogiri (RubyGems): 0

## Every score

- VulDB: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`
- VulDB: CVSS:3.1 3.3 Low `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`
- VulDB: CVSS:3.0 3.3 Low `CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C`
- VulDB: CVSS:2.0 1.7 Low `AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C`
- GitHub: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:4.0 Low `CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P`

## References

- <https://github.com/user-attachments/files/19825279/nokogiri_crash_2.txt> (exploit, web)
- <https://vuldb.com/?id.313611> (technical-description, vdb-entry, web)
- <https://vuldb.com/?ctiid.313611> (permissions-required, signature, web)
- <https://vuldb.com/?submit.601006> (third-party-advisory, web)
- <https://github.com/sparklemotion/nokogiri/issues/3508> (issue-tracking, web)
- <https://github.com/sparklemotion/nokogiri/pull/3524> (issue-tracking, web)
- <https://github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-6494> (advisory)
- <https://github.com/sparklemotion/nokogiri> (package)

## Sources

- CVE List: [CVE-2025-6494](https://www.cve.org/CVERecord?id=CVE-2025-6494), CVE Terms of Use, modified 2025-06-30
- GitHub Advisory Database: [GHSA-jc9r-qcgw-fxq9](https://github.com/advisories/GHSA-jc9r-qcgw-fxq9), CC-BY-4.0, modified 2026-09-10
- NVD: [CVE-2025-6494](https://nvd.nist.gov/vuln/detail/CVE-2025-6494), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2025-6494 · Whole record: https://cve.day/CVE-2025-6494.json · Rebuilt by cve.day 2026-11-25T22:58:59.519Z
