libexpat xmlwf through 2.10.0 Symlink Following via -d Output Directory
- State
- Published
- Severity
- 4.1 Medium
- Published
- Nov 13, 2026
- Updated
- Nov 17, 2026
- Reserved
- Nov 12, 2026
Description
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.
| Product | Versions |
|---|---|
| libexpat libexpat project | 2.10.0 and earlier Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 4.1 Medium | VulnCheck | |
| 3.1 | 4.4 Medium | VulnCheck |
Weaknesses
- CWE-59 Improper Link Resolution Before File Access ('Link Following')
References
- https://github.com/libexpat/libexpat/pull/1502PatchIssue Tracker
- https://github.com/libexpat/libexpat/blob/R_2_10_0/expat/xmlwf/xmlwf.c#L1272-L1275Technical Details
- https://github.com/libexpat/libexpat/blob/R_2_10_0/expat/xmlwf/xmlwf.c#L1338-L1347Technical Details
- https://github.com/libexpat/libexpatProduct Page
- VulnCheck Advisory: libexpat xmlwf through 2.10.0 Symlink Following via -d Output DirectoryThird-Party Advisory
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.