libexpat xmlwf file overwrite via symlinks in output mode
libexpat project libexpat
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| libexpat project libexpat |
| No fix yet |
Original 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.
From the CVE record · VulnCheck