Advisory Database
  • Advisories
  • Dependency Scanning
  1. gem
  2. ›
  3. nokogiri
  4. ›
  5. CVE-2025-6494

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

June 23, 2025 (updated June 30, 2025)

Withdrawn Advisory

This advisory has been withdrawn because the affected code was never included in a release. This link has been maintained to preserve external references.

Original 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

  • github.com/advisories/GHSA-jc9r-qcgw-fxq9
  • github.com/sparklemotion/nokogiri
  • github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a
  • github.com/sparklemotion/nokogiri/issues/3508
  • github.com/sparklemotion/nokogiri/pull/3524
  • github.com/user-attachments/files/19825279/nokogiri_crash_2.txt
  • nvd.nist.gov/vuln/detail/CVE-2025-6494
  • vuldb.com/?ctiid.313611
  • vuldb.com/?id.313611
  • vuldb.com/?submit.601006

Code Behaviors & Features

Detect and mitigate CVE-2025-6494 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

Version 0

Solution

Unfortunately, there is no solution available yet.

Impact 3.3 LOW

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L

Learn more about CVSS

Weakness

  • CWE-119: Improper Restriction of Operations within the Bounds of a Memory Buffer

Source file

gem/nokogiri/CVE-2025-6494.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 19 Aug 2025 12:18:40 +0000.