Skip to main content

Expat xmlwf EUVDEUVD-2026-125051

| CVE-2026-128241 MEDIUM
Improper Link Resolution Before File Access (CWE-59)
2026-11-13 VulnCheck GHSA-2qp8-23fp-hmf7
4.1
CVSS 4.0 · Vendor: VulnCheck
Temporal: 4.4
View

Attack ChainAIDerived

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

  1. Access
    Obtain local write access to output directory
  2. Delivery
    Plant symlink at predicted xmlwf output name
  3. Exploit
    Victim runs xmlwf in -d output mode
  4. Execution
    fopen("wb") follows the symlink
  5. Impact
    Target file truncated or overwritten as xmlwf user

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
Exploitation Conditions

Exploitation requires ALL of: (1) local access to the host (AV:L); (2) low-privileged write access to the specific directory xmlwf targets in -d output mode; (3) the xmlwf user actually invoking xmlwf with the non-default '-d' output directory option (UI:P); and (4) the attacker planting a symlink at the expected output filename before xmlwf opens it. Limiting factors: -d output mode is not default behavior, the attacker needs an existing local foothold plus write access to the output directory, the victim must run the tool, and impact is confined to files the xmlwf user can already write. There is no remote or unauthenticated path.

Impact

This is a genuinely low-priority, local-only integrity issue, and the signals agree. The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:L/UI:P, score 4.1 Medium) describes a local attacker who already holds low privileges and write access to the xmlwf output directory, who must also win a specific condition (AT:P) and rely on the victim invoking the tool (UI:P). Impact is integrity-only (VI:H; VC:N, VA:N) - overwriting or truncating files writable by the xmlwf user, with no confidentiality or availability loss. The vuln.today decision label is 'this_month', not act_now/emergency, consistent with the Medium severity. No KEV listing and no EPSS score were supplied, and no verified exploit is referenced, so there is no evidence of active or widespread exploitation - this is a defense-in-depth fix rather than an urgent one. One data conflict stands out: the 'Information Disclosure' tag contradicts the actual impact, which is file overwrite/truncation (integrity), not disclosure - treat the tag as mislabeled. Overall a real but minor bug; patch on a normal maintenance cycle.

Exploit ScenarioDerived

On a shared or multi-user system, a low-privileged local attacker who can write to the directory where another user runs 'xmlwf -d' pre-creates a symlink at the predictable output filename pointing to a sensitive file owned/writable by the xmlwf user. When that user runs xmlwf in -d output mode, fopen("wb") follows the symlink and truncates/overwrites the target. No verified working exploit is referenced; only the vendor patch PR and the VulnCheck advisory are provided, and the local vector plus required user interaction (AC:H/AT:P/UI:P) make this opportunistic rather than reliable.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Nov 13, 2026

The xmlwf command-line tool shipped with libexpat through 2.10.0 opens its output file with fopen("wb") when the non-default '-d' output directory mode is used, so an existing symlink at the expected output filename is followed rather than rejected. A low-privileged local attacker (PR:L) who can write to that output directory and who can induce the xmlwf user to run the tool (user interaction required) can plant such a symlink and cause files writable by the xmlwf user to be truncated or overwritten, affecting integrity only (I:H) with no confidentiality or availability impact. Exploitation needs local access plus a pre-existing directory foothold, the tool is not remote or unauthenticated, and impact stays confined to the victim's own writable files; no public exploit code was identified at time of analysis and the issue is not in CISA KEV, so this is a low-priority, local-only integrity fix suitable for the normal monthly patch cycle.

RemediationAI

The upstream fix is libexpat pull request #1502 (https://github.com/libexpat/libexpat/pull/1502), which swaps fopen("wb") for open with O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_BINARY and mode 0600, then wraps the descriptor with fdopen; the supplied data does not confirm a tagged release containing it, so build xmlwf from the patched source or move to the next libexpat release after 2.10.0 and track the PR for the release tag. Until that build is deployed, the simplest control is to stop using xmlwf's '-d' output directory mode on untrusted hosts, or to point -d at a directory only the invoking user can write (mode 0700, not group- or world-writable); the trade-off is that xmlwf then cannot share output files with other users or drop results into shared staging areas. Running xmlwf from an account whose file permissions are deliberately narrow bounds the blast radius, because the overwrite can only reach files that account can already write. Be aware that O_NOFOLLOW protects only the final path component, so keeping the output directory itself out of attacker-writable locations remains necessary even after patching.

Affected VersionsENISA

libexpat 0 ≤2.10.0

Affected Packages

euvd libexpat 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

libexpat is the widely embedded C XML parser library; xmlwf is its bundled command-line well-formedness checker, which normally writes results to stdout but accepts a '-d <dir>' option to emit per-input output files into a chosen directory. In the 2.10.0 source (expat/xmlwf/xmlwf.c around lines 1272-1275 and 1338-1347) that output path is opened with tfopen(outName, T("wb")), i.e. fopen in write mode, which transparently follows a symbolic link at the final path component. The weakness is CWE-59 (Improper Link Resolution Before File Access, 'link following'): the tool does not verify that the resolved output path is a regular file it created, so a symlink pre-planted at the expected output name redirects the O_TRUNC write to whatever target the link points at. The upstream fix in PR #1502 replaces the fopen call with topen(outName, O_WRONLY | O_CREAT | O_TRUNC | O_NOFOLLOW | O_BINARY, 0600) followed by tfdopen, adds the required fcntl.h/unistd.h includes and _POSIX_C_SOURCE/_DARWIN_C_SOURCE feature macros, defines O_NOFOLLOW as 0 on Windows where the flag is unavailable, and carries the descriptor in the XmlwfUserData struct. Note that O_NOFOLLOW only refuses a symlink at the last path component, so the guarantee is strongest when the output directory itself is not attacker-controlled. Only the xmlwf utility is affected; the parsers library itself is not implicated by this report.

Know when Libexpat gets its next vulnerability

  • 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

Vendor (VulnCheck) PRIMARY 4.1 MEDIUM
CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N
CIRCL (temporal) 4.4 MEDIUM
vuln.today AI 4.4 MEDIUM

Local symlink plant requiring directory write access (PR:L, AV:L), a race/ordering condition against xmlwf output (AC:H), victim must run the tool (UI:R); overwrite yields integrity impact only (I:H, C:N/A:N).

3.1 AV:L/AC:H/PR:L/UI:R/S:U/C:N/I:H/A:N
4.0 AV:L/AC:H/AT:P/PR:L/UI:P/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

The xmlwf tool in libexpat through 2.10.0 contains a symlink following vulnerability because -d output mode opens files with fopen("wb"), which follows symbolic links. Local attackers with write access to the output directory can plant a symlink at the expected output name to truncate or overwrite files writable by the xmlwf user.

Threat Intelligence Overview

EPSS Score
0.1%
Top 97% exploitable
Prevalence
Low
libexpat is ubiquitous, but the vulnerable xmlwf CLI is rarely run in production
Data Quality
5 sources
Confidence: Medium

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 MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.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· derived
Medium

Priority Score

20
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +20
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0
CVE-2022-25315 CRITICAL POC
9.8 Feb 18

In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames. Rated critical severity (CVSS 9.8),

CVE-2025-59375 HIGH POC
7.5 Sep 15

libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is

CVE-2019-15903 HIGH POC
7.5 Sep 04

In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too

CVE-2026-115506 HIGH POC
8.7 Oct 22

CPU exhaustion in libexpat through 2.9.0 lets remote attackers stall XML parsing workloads by supplying a moderately siz

CVE-2026-93990 HIGH POC
8.7 Sep 19

Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high s

CVE-2022-43680 HIGH POC
7.5 Oct 24

In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEnti

CVE-2024-28757 HIGH POC
7.5

Alpine Linux: expat fixed in 2.6.2-r0

CVE-2017-9233 HIGH POC
7.5 Jul 25

XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the p

CVE-2026-45186 HIGH POC
7.5 May 10

Denial of service in libexpat before 2.8.1 lets remote attackers exhaust CPU by submitting moderately sized crafted XML

CVE-2013-0340 MEDIUM POC
6.8 Jan 21

expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetE

CVE-2016-0718 CRITICAL
9.8 May 26

Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a m

CVE-2024-45492 CRITICAL
9.8 Aug 30

An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp

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