Bug 2590733

Summary: CVE-2026-128241 expatpp: libexpat xmlwf through 2.10.0 Symlink Following via -d Output Directory [fedora-all]
Product: [Fedora] Fedora Reporter: Avinash Hanwate <ahanwate>
Component: expatppAssignee: Peter Lemenkov <lemenkov>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: medium    
Version: rawhideCC: lemenkov
Target Milestone: ---Keywords: Security, SecurityTracking
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: {"flaws": ["b4ace9f9-f445-4679-8f56-e21d492e8487"]}
Fixed In Version: Doc Type: ---
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2026-12-04 10:23:25 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2573051    

Description Avinash Hanwate 2026-12-04 05:57:29 UTC
Disclaimer: Community trackers are created by Red Hat Product Security team on a best effort basis. Package maintainers are required to ascertain if the flaw indeed affects their package, before starting the update process.

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.

Comment 1 Peter Lemenkov 2026-12-04 10:23:25 UTC
Fedora's expatpp is not affected by CVE-2026-128241.

The flaw is in the xmlwf CLI tool shipped by libexpat (the expat package): its -d output mode opens files with fopen("wb"), which follows symlinks, allowing a local attacker with write access to the output directory to truncate/overwrite files via a planted symlink.

expatpp is only a thin C++ wrapper around expat. It ships just the wrapper shared library (%{_libdir}/*.so.*) and the expatpp.h header, builds against the system expat (BuildRequires: expat-devel), and does not bundle or ship xmlwf (nor any expat source). The vulnerable tool is therefore not present in this package.

The fix belongs to the expat package (tracked separately in bug 2573051). No expatpp change is required.

Closing as NOTABUG.