Kernel Kit / Infix / v26.10.0latest
CVE-2026-128241
4.1mediumexpat2.8.4 · 2.7.2 · 2.7.0in 4 of 4 releases
Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.
Reach expat · 8 builds in 4 of 4 releases
full reviewcross-check✓ a member decided
Description · NVD
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.
Published 2026-11-13NVD
CVSS 4.0Local · low privileges · passive user interaction
How it is reached
- Attack vector
- Local
- Attack complexity
- High
- Attack requirements
- Present
- Privileges required
- Low
- User interaction
- Passive
What it costs
- Confidentiality
- None
- Integrity
- High
- Availability
- None
What it costs other systems
- Confidentiality
- None
- Integrity
- None
- Availability
- None
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
References 5
- github.com/libexpat/libexpat
- github.com/libexpat/libexpat/blob/R_2_10_0/expat/xmlwf/xmlwf.c#L1272-L1275
- github.com/libexpat/libexpat/blob/R_2_10_0/expat/xmlwf/xmlwf.c#L1338-L1347
- github.com/libexpat/libexpat/pull/1502
- www.vulncheck.com/advisories/libexpat-xmlwf-through-2.10.0-symlink-following-via-d-output-directory
The CVE is in the xmlwf command-line tool, not in libexpat itself, and the target build of expat is configured with --without-xmlwf, so the tool is neither compiled nor installed in the image. The only files expat puts on the target are libexpat.so*, headers, and pkg-config/CMake metadata.
The version match is correct and no fix is applied: 2.8.4 is inside the "through 2.10.0" range, and the unpatched tfopen(outName, T("wb")) call is still in the unbuilt xmlwf/xmlwf.c. The verdict rests solely on the feature not being compiled in.
A host-side xmlwf is built under output/build/host-expat-2.8.4/xmlwf/, because HOST_EXPAT_CONF_OPTS does not pass --without-xmlwf. It is a build-machine tool and is not part of the shipped image.
Evidence 11
`EXPAT_CONF_OPTS` for the target package includes `--without-xmlwf` (along with `--without-examples` and `--without-tests`).
buildroot/package/expat/expat.mk:16-21
The actual target configure invocation carries `--without-xmlwf`.
output/build/expat-2.8.4/config.log:7
`WITH_XMLWF_FALSE=''` and `WITH_XMLWF_TRUE='#'`, i.e. the automake conditional `WITH_XMLWF` is false.
output/build/expat-2.8.4/config.log:1367-1368
`#am__append_3 = xmlwf doc` is commented out, so `SUBDIRS` is effectively only `lib`; the `xmlwf` directory is never entered.
output/build/expat-2.8.4/Makefile:130,466
Contains only sources and Makefiles (`xmlwf.c`, `xmlfile.c`, ...); there are no object files and no `xmlwf` binary.
output/build/expat-2.8.4/xmlwf/
The target install consists of `usr/lib/libexpat.so*`, `libexpat.la`, headers, `expat.pc`, CMake files and docs; there is no `usr/bin/xmlwf`.
output/build/expat-2.8.4/.files-list.txt
No `xmlwf` binary: the only `xml*` entries are `xmlcatalog` and `xmllint` (from libxml2). A `find` for `xmlwf` under `output/target` returns only `usr/share/bash-completion/completions/xmlwf`, an inert completion script from `bash-completion`.
output/target/usr/bin
`userData.fp = tfopen(outName, T("wb"));` in the `-d` output-directory path: the vulnerable code is present unfixed in the source, but not compiled.
output/build/expat-2.8.4/xmlwf/xmlwf.c:1293
Empty (0 lines); `buildroot/package/expat/` contains only `Config.in`, `expat.hash` and `expat.mk`, so no patch addresses this CVE.
output/build/expat-2.8.4/.applied_patches_list
`BR2_PACKAGE_EXPAT=y`: the library is selected for the target (`BR2_PACKAGE_PYTHON3_PYEXPAT=y` at line 1509 is one user).
output/.config:2527
A host `xmlwf` binary is built, since `HOST_EXPAT_CONF_OPTS` in `expat.mk:23-26` lacks `--without-xmlwf`; this is a build-host tool, not target content.
output/build/host-expat-2.8.4/xmlwf/xmlwf
Version and patches
Affected range per NVD is libexpat through 2.10.0, so 2.8.4 is in range and the CPE mapping is correct. The fix is upstream PR #1502, which I could not consult offline, so the fixed version is not confirmed. No patches are applied to this build (.applied_patches_list is empty), and xmlwf/xmlwf.c:1293 still has the plain tfopen(outName, T("wb")). The build is not affected only because xmlwf is excluded by --without-xmlwf.
Recommendation
Document as not applicable: the vulnerable xmlwf tool is not compiled for the target (--without-xmlwf in buildroot/package/expat/expat.mk). No upgrade or backport is needed for this CVE.
Re-check if EXPAT_CONF_OPTS ever drops --without-xmlwf. Pick up the fixed expat release through a normal Buildroot bump.
Open questions
The upstream PR and advisory were not accessible offline, so the exact fixed release is unconfirmed; this does not change the verdict.
The host-built xmlwf in output/build/host-expat-2.8.4/ exists on build machines. I found no reference to xmlwf in board, src, package, configs or patches, so nothing in the Infix build appears to invoke it with -d. I did not search Buildroot's own package scripts for such a use.
Members of Kernel Kit decide. Sign in if you are one.