Skip to main content

Nokogiri CVE-2025-6494

| EUVDEUVD-2025-18858 LOW
Buffer Overflow (CWE-119)
2025-06-22 cna@vuldb.com
1.9
CVSS 4.0 · NVD

Severity by source

NVD PRIMARY
1.9 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/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
vuln.today AI
3.3 LOW

Local attack, low complexity, low privileges, no user interaction, only availability impact.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
Ubuntu
MEDIUM
qualitative

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
X

Lifecycle Timeline

7
Source Code Evidence Fetched
Jul 26, 2026 - 13:18 vuln.today
CVSS changed
Apr 29, 2026 - 01:11 NVD
3.3 (LOW) 1.9 (LOW)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
EUVD ID Assigned
Mar 15, 2026 - 21:55 euvd
EUVD-2025-18858
Analysis Generated
Mar 15, 2026 - 21:55 vuln.today
CVE Published
Jun 22, 2025 - 23:15 cve.org
LOW 1.9
CVE Published
Jun 22, 2025 - 23:15 nvd
LOW 3.3

DescriptionCVE.org

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.

AnalysisAI

Heap-based buffer overflow in Nokogiri's gumbo HTML5 parser allows local attackers to cause a denial of service via crafted HTML with long duplicate attributes. The vulnerability affects versions 1.18.0 through 1.18.7 and is fixed in commit ada4708e5a67114402cd3feb70a4e1d1d7cf773a, though no official release includes the patch. Public exploit code exists, but active exploitation is not confirmed (not in CISA KEV). EPSS score is low (0.02%), indicating low exploitation likelihood.

Technical ContextAI

The vulnerability resides in the gumbo-parser library used by Nokogiri for HTML5 parsing. The function hashmap_get_with_hash in gumbo-parser/src/hashmap.c mishandles pointer dereferencing when comparing string keys, leading to a heap-based buffer overflow (CWE-119). The root cause is incorrect use of strcmp with direct pointers instead of double indirection, as shown in the patch diff. The affected code was introduced in a development branch and never part of an official release, but it exists in the main branch and is used in Nokogiri versions 1.18.0-1.18.7.

RemediationAI

Apply the patch commit ada4708e5a67114402cd3feb70a4e1d1d7cf773a to the source code, or wait for an official release that includes the fix. As a workaround, avoid parsing untrusted HTML5 content with Nokogiri versions 1.18.0-1.18.7. If possible, downgrade to an earlier unaffected version or use an alternative parser. The patch is available at https://github.com/sparklemotion/nokogiri/commit/ada4708e5a67114402cd3feb70a4e1d1d7cf773a.

Vendor StatusVendor

Ubuntu

Priority: Medium
ruby-nokogiri
Release Status Version
bionic not-affected code not present
focal not-affected code not present
jammy not-affected code not present
noble not-affected code not present
oracular not-affected code not present
plucky not-affected code not present
trusty not-affected vulnerable code never released
upstream not-affected code not present
xenial not-affected code not present

Debian

ruby-nokogiri
Release Status Fixed Version Urgency
bullseye fixed 1.11.1+dfsg-2 -
bullseye (security) fixed 1.11.1+dfsg-2+deb11u1 -
bookworm fixed 1.13.10+dfsg-2 -
trixie fixed 1.18.2+dfsg-1 -
forky fixed 1.18.10+dfsg-3 -
sid fixed 1.19.1+dfsg-1 -
(unstable) not-affected - -

Share

CVE-2025-6494 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy