{"id":"CVE-2025-6490","aliases":["CVE-2025-6490","GHSA-pf9w-gvcf-gv7m"],"related":[],"kind":"vulnerability","state":"published","title":"sparklemotion nokogiri hashmap.c hashmap_set_with_hash heap-based overflow","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"de","text":"Eine problematische Schwachstelle wurde in sparklemotion nokogiri c29c920907366cb74af13b4dc2230e9c9e23b833 gefunden. Es geht hierbei um die Funktion hashmap_set_with_hash der Datei gumbo-parser/src/hashmap.c. Mit der Manipulation mit unbekannten Daten kann eine heap-based buffer overflow-Schwachstelle ausgenutzt werden. Umgesetzt werden muss der Angriff lokal. Der Exploit steht zur öffentlichen Verfügung. Bisher konnte die Existenz der vermeintlichen Schwachstelle noch nicht eindeutig nachgewiesen werden. Der Patch wird als ada4708e5a67114402cd3feb70a4e1d1d7cf773a bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen.","source":"cvelist"},{"lang":"en","text":"### Withdrawn Advisory\n\nThis advisory has been withdrawn because the affected code was never included in a release. This link has been maintained to preserve external references.\n\n### Original Description\n\nA 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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una vulnerabilidad en sparklemotion nokogiri hasta la versión 1.18.7 y se clasificó como problemática. Este problema afecta a la función hashmap_set_with_hash del archivo gumbo-parser/src/hashmap.c. La manipulación provoca un desbordamiento del búfer en el montón. Un ataque debe abordarse localmente. Se ha hecho público el exploit y puede que sea utilizado.","source":"nvd"}],"published":"2025-06-22T19:00:11.556Z","modified":"2026-09-10T03:50:57.817Z","severity":{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:4.0","vector":"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","score":4.8,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.1","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","score":3.3,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"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","score":3.3,"rating":"LOW"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C","score":1.7,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L","score":3.3,"rating":"LOW"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"LOW"}],"cwes":["CWE-119","CWE-122"],"affected":[{"ranges":[{"version":"c29c920907366cb74af13b4dc2230e9c9e23b833","status":"affected"}],"vendor":"sparklemotion","product":"nokogiri","source":"cvelist"},{"ranges":[{"version":"0","status":"affected"}],"ecosystem":"RubyGems","package":"nokogiri","purl":"pkg:gem/nokogiri","source":"ghsa"}],"references":[{"url":"https://vuldb.com/?id.313601","tags":["technical-description","vdb-entry","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://vuldb.com/?ctiid.313601","tags":["permissions-required","signature","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://vuldb.com/?submit.601005","tags":["third-party-advisory","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sparklemotion/nokogiri/issues/3500","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sparklemotion/nokogiri/pull/3524","tags":["issue-tracking","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/user-attachments/files/19625432/nokogiri_crash.txt","tags":["exploit","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a","tags":["patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6490","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/sparklemotion/nokogiri","tags":["package"],"sources":["ghsa"]}],"credits":["JJLeo (VulDB User)"],"assigner":"VulDB","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"no","technicalImpact":"partial","date":"2025-06-23T16:34:29.654Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-6490","url":"https://www.cve.org/CVERecord?id=CVE-2025-6490","licence":"CVE Terms of Use","modified":"2025-06-30T19:09:07.204Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pf9w-gvcf-gv7m","url":"https://github.com/advisories/GHSA-pf9w-gvcf-gv7m","licence":"CC-BY-4.0","modified":"2026-09-10T03:50:57.817Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-6490","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-6490","licence":"Public domain","modified":"2026-06-17T10:02:00.393Z"}],"updatedAt":"2026-11-25T22:58:59.518Z","epss":{"score":0.00193,"percentile":0.09424,"date":"2026-12-01T12:00:22.000Z"}}