PT-2003-1051 · Gnu · File
David Endler
·
Published
2003-03-05
·
Updated
2018-05-03
·
CVE-2003-0102
CVSS v2.0
4.6
Medium
| Vector | AV:L/AC:L/Au:N/C:P/I:P/A:P |
Name of the Vulnerable Software and Affected Versions
file versions 3.39
Description
The issue is related to a buffer overflow in the tryelf() function in readelf.c of the file command, which allows attackers to execute arbitrary code as the user running file. This can be achieved possibly via a large entity size value in an ELF header (elfhdr.e shentsize). The exploitation of this issue can lead to a violation of confidentiality, integrity, and availability of protected information and can be performed locally.
Recommendations
For file version 3.39, consider restricting access to the tryelf() function in readelf.c until a patch is available. As a temporary workaround, avoid using large entity size values in ELF headers to minimize the risk of exploitation.
Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
File