CVE-2025-6490: 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
1. Immediate upgrade: Organizations should upgrade Nokogiri to a version beyond 1.18.7 where this vulnerability is patched. 2. Restrict local access: Limit user and process permissions to only those necessary for running Nokogiri-dependent applications to reduce the risk of local exploitation. 3. Input validation: Implement strict validation and sanitization of XML/HTML inputs before parsing to minimize malformed or malicious data triggering the overflow. 4. Application sandboxing: Run Nokogiri-dependent processes in isolated environments or containers to contain potential exploitation impact. 5. Monitoring and detection: Deploy host-based intrusion detection systems (HIDS) and monitor application logs for abnormal crashes or memory errors indicative of exploitation attempts. 6. Code review: Audit custom code interfacing with Nokogiri to ensure safe usage patterns and avoid passing untrusted data without checks. 7. Incident response readiness: Prepare response plans for potential exploitation scenarios, including forensic analysis and system recovery procedures. These steps go beyond generic advice by focusing on local access control, input validation, and containment strategies tailored to the nature of the vulnerability.
Description
A vulnerability was found in sparklemotion nokogiri c29c920907366cb74af13b4dc2230e9c9e23b833 and classified as problematic. This issue affects the function hashmap_set_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 identifier of the patch is 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/3500 (opens in a new tab)
- github.com/sparklemotion/nokogiri/pull/3524 (opens in a new tab)
- github.com/user-attachments/files/19625432/nokogiri_crash.txt (opens in a new tab)
- github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a (opens in a new tab)