libexpat 2.11.0 fixes three vulnerabilities
One fix stops an overread that requires XML_SetUnknownEncodingHandler; another concerns xmlwf.
Symlink following in libexpat xmlwf -d output mode
xmlwf in libexpat through 2.10.0 follows symbolic links because -d output mode opens files with fopen("wb"). A local attacker who can write to the output directory can plant a symlink at the expected output name. When a user runs xmlwf, that can truncate or overwrite files writable by the xmlwf user. Anyone using affected xmlwf in that mode is affected.
What to do: Upgrade libexpat to 2.11.0, which fixes this issue. No workaround is stated.
| Product | Affected | Fixed in |
|---|---|---|
| libexpat xmlwf | through 2.10.0 | 2.11.0 |
Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.
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.
One fix stops an overread that requires XML_SetUnknownEncodingHandler; another concerns xmlwf.
Today 1.4K readers · 1.8K views · 221 reads · all time 220K views