Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessObtain local write access to output directory
-
DeliveryPlant symlink at predicted xmlwf output name
-
ExploitVictim runs xmlwf in -d output mode
-
Executionfopen("wb") follows the symlink
-
ImpactTarget 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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).
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
In Expat (aka libexpat) before 2.4.5, there is an integer overflow in storeRawNames. Rated critical severity (CVSS 9.8),
libexpat in Expat before 2.7.2 allows attackers to trigger large dynamic memory allocations via a small document that is
In libexpat before 2.2.8, crafted XML input could fool the parser into changing from DTD parsing to document parsing too
CPU exhaustion in libexpat through 2.9.0 lets remote attackers stall XML parsing workloads by supplying a moderately siz
Malformed UTF-16 decoding in libexpat through 2.8.4 lets remote attackers hide XML markup from the parser: a lone high s
In libexpat through 2.4.9, there is a use-after free caused by overeager destruction of a shared DTD in XML_ExternalEnti
Alpine Linux: expat fixed in 2.6.2-r0
XML External Entity vulnerability in libexpat 2.2.0 and earlier (Expat XML Parser Library) allows attackers to put the p
Denial of service in libexpat before 2.8.1 lets remote attackers exhaust CPU by submitting moderately sized crafted XML
expat before version 2.4.0 does not properly handle entities expansion unless an application developer uses the XML_SetE
Expat allows context-dependent attackers to cause a denial of service (crash) or possibly execute arbitrary code via a m
An issue was discovered in libexpat before 2.6.3. Rated critical severity (CVSS 9.8), this vulnerability is remotely exp
EUVD-2026-125051
GHSA-2qp8-23fp-hmf7
NVD
CVE.org
EPSS
Exploit-DB