xmllint CLI Buffer Overflow via Oversized Input in Interactive Shell
CVE-2025-6170 Published on June 16, 2025

Libxml2: stack buffer overflow in xmllint interactive shell command handling
A flaw was found in the interactive shell of the xmllint command-line tool, used for parsing XML files. When a user inputs an overly long command, the program does not check the input size properly, which can cause it to crash. This issue might allow attackers to run harmful code in rare configurations without modern protections.

Github Repository NVD

Vulnerability Analysis

CVE-2025-6170 is exploitable with local system access, requires user interaction. This vulnerability is consided to have a high level of attack complexity. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.

Attack Vector:
LOCAL
Attack Complexity:
HIGH
Privileges Required:
NONE
User Interaction:
REQUIRED
Scope:
UNCHANGED
Confidentiality Impact:
NONE
Integrity Impact:
NONE
Availability Impact:
LOW

Timeline

Reported to Red Hat.

Made public.

Weakness Type

What is a Stack Overflow Vulnerability?

A stack-based buffer overflow condition is a condition where the buffer being overwritten is allocated on the stack (i.e., is a local variable or, rarely, a parameter to a function).

CVE-2025-6170 has been classified to as a Stack Overflow vulnerability or weakness.


Products Associated with CVE-2025-6170

You can be notified by email with stack.watch whenever vulnerabilities like CVE-2025-6170 are published in these products:

 
 
 
 
 
 

Vulnerable Packages

The following package name and versions may be associated with CVE-2025-6170

Package Manager Vulnerable Package Versions Fixed In
rubygems nokogiri < 1.18.9 1.18.9

Exploit Probability

EPSS
0.02%
Percentile
5.06%

EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.