CVE-2025-6494: sparklemotion nokogiri · Heap-based Buffer Overflow
Affects sparklemotion nokogiriSource CVE Database V5
Not known to be exploited · CVSS 4.8 Medium.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.1% chance of exploitation in 30 days – higher than 7% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
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:PExploitation evidence
Disclosed: evidence found.
CVE published 22 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
AI-suggested
Immediately restrict local access to systems running vulnerable Nokogiri versions to trusted personnel only.
Implement strict user privilege management and enforce the principle of least privilege to minimize the risk of local exploitation.
Monitor local system logs and application behavior for anomalies indicative of exploitation attempts, such as unexpected crashes or memory errors in Nokogiri-dependent applications.
Where possible, isolate development and build environments to prevent untrusted code execution on systems with Nokogiri installed.
Apply virtual patching or runtime application self-protection (RASP) techniques to detect and block suspicious calls to the vulnerable hashmap_get_with_hash function until an official patch is released.
Engage with the Nokogiri maintainers or community to obtain updates or patches as soon as they become available and plan prompt deployment.
Conduct internal audits to identify all instances of Nokogiri usage across the organization, including embedded or indirect dependencies, to ensure comprehensive coverage.
Educate developers and system administrators about the vulnerability and the importance of local system security hygiene.
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.
References
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- vuldb.com (opens in a new tab)
- github.com/sparklemotion/nokogiri/issues/3508 (opens in a new tab)
- github.com/sparklemotion/nokogiri/pull/3524 (opens in a new tab)
- github.com/user-attachments/files/19825279/nokogiri_crash_2.txt (opens in a new tab)
- github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a (opens in a new tab)