Skip to main content

Nokogiri CVE-2025-6490

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

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Local access
  2. Exploit
    Provide crafted HTML with long duplicate attributes
  3. Execution
    Trigger heap overflow in hashmap_set_with_hash
  4. Impact
    Denial of service (application crash)

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2021 - Vulnerable and Outdated Components
ASVS 5.0
V14 - Configuration Dependency management, component inventory
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Local access is required (AV:L). The attacker must have low privileges (PR:L) and be able to provide crafted HTML input to Nokogiri's HTML5 parser. The vulnerability is triggered when parsing HTML with long duplicate attributes (longer than 8 bytes) that exercise the gumbo hashmap implementation. No user interaction is needed beyond providing the input. The affected code path is only in the gumbo parser, not in other Nokogiri parsers.

Impact

CVSS 4.0 vector AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L gives a base score of 1.9, indicating low severity due to local attack vector, low privileges required, and only availability impact. EPSS score is 0.02% (percentile 6%), suggesting very low exploitation probability. No KEV listing. Public exploit code exists, but the maintainer doubts the vulnerability's real existence and states the affected code was never in an official release. SSVC decision: unlikely to be exploited due to local access requirement and disputed nature. The risk is minimal for most deployments.

Exploit ScenarioDerived

A local attacker with low privileges can craft an HTML file with long duplicate attributes (e.g., 100 attributes with names longer than 8 bytes) and cause Nokogiri's HTML5 parser to trigger a heap-based buffer overflow, leading to a denial of service. Public exploit code is available in the form of a test case and crash file.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv2 – Jul 26, 2026

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 exists in the hashmap implementation within gumbo-parser/src/hashmap.c, affecting versions 1.18.0 through 1.18.7. A public exploit exists, but the maintainer states the vulnerable code was never in an official release, and the real existence is doubted. EPSS score is low (0.02%), and no active exploitation has been confirmed.

Earlier versions of this analysis (1)
v1 Mar 15, 2026 - 21:55 CVSS 3.3

RemediationAI

Apply the vendor-released patch by updating Nokogiri to a version that includes commit ada4708e5a67114402cd3feb70a4e1d1d7cf773a. As of analysis, no official patched release has been announced; users should monitor the Nokogiri repository for a new release. Workaround: avoid parsing untrusted HTML5 content with affected versions, or restrict local access to the application using Nokogiri. The patch fixes the pointer handling in string_set.c.

Affected VersionsENISA

nokogiri 1.18.7
nokogiri 1.18.2
nokogiri 1.18.3
nokogiri 1.18.4
nokogiri 1.18.0
nokogiri 1.18.1
nokogiri 1.18.5
nokogiri 1.18.6

Affected Packages

euvd nokogiri no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The vulnerability is a heap-based buffer overflow (CWE-119) in the hashmap_set_with_hash function of the gumbo HTML5 parser library, which Nokogiri uses for parsing HTML5 documents. The CPE data indicates affected versions include nokogiri 1.18.0 to 1.18.7. The root cause is improper handling of string pointers in the string_set implementation, where a pointer to a pointer was needed instead of a direct pointer, leading to memory corruption when processing long duplicate attributes.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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
vuln.today AI 3.3 LOW

Local attack, 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

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

4
CVSS changed
Apr 29, 2026 - 01:11 NVD
3.3 (LOW) 1.9 (LOW)
Patch released
Mar 31, 2026 - 21:13 nvd
Patch available
CVE Published
Jun 22, 2025 - 19:15 nvd
LOW 3.3
CVE Published
Jun 22, 2025 - 19:15 cve.org
LOW 1.9

DescriptionCVE.org

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.

Executive ViewAI

Why It Matters

CVE-2025-6490 is a low-severity vulnerability in A vulnerability (CVSS 3.3). The limited severity suggests constrained impact, typically requiring specific conditions or local access for exploitation. Apply vendor updates when available as part of routine maintenance.

Business Impact: Low
Compensating Controls

Apply vendor patch during routine maintenance. Standard security controls provide adequate interim protection.

Threat Intelligence Overview

EPSS Score
0.0%
Top 94% exploitable
Prevalence
High
widely used Ruby gem for HTML/XML parsing
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
Low

Priority Score

10
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +10
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

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 code not present
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 - -

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