Where
-Infinity
0
Severity
4
Buffer Overflow

cdfreadpropertyinfo in cdf.c in file through 5.37 does not restrict the number of CDFVECTOR elements, which allows a heap-based buffer overflow (4-byte out-of-bounds write).

Reference: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=16780

Upstream patch: https://github.com/file/file/commit/46a8443f76cec4b41ec736eca396984c74664f84

First published (updated )
Severity
1

A flaw was found in file. The docorenote function in readelf.c in libmagic.a in file 5.33 allows remote attackers to cause a denial of service (out-of-bounds read and application crash) via a crafted ELF file.

References: https://github.com/file/file/commit/a642587a9c9e2dd7feacdf513c3643ce26ad3c22

First published (updated )
Severity
4

A flaw was found in the way file uses cdfreadpropertyinfo function when checks stream offsets for certain Composite Document Format (CDF).

Upstream commit: https://github.com/file/file/commit/93e063ee374b6a75729df9e7201fb511e47e259d

Acknowledgements:

This issue was discovered by Francisco Alonso of Red Hat Product Security.

First published (updated )
Severity
4

A flaw was found in the way file uses cdfcountchain() function to processes maxsector for certain Composite Document Format (CDF) files.

Upstream commit: https://github.com/file/file/commit/40bade80cbe2af1d0b2cd0420cebd5d5905a2382

Acknowledgements:

This issue was discovered by Francisco Alonso of Red Hat Product Security.

First published (updated )
Severity
4

Invalid pointer dereference flaws were found in the way file, utility for determining of file types processed header section for certain Composite Document Format (CDF) files. A remote attacker could provide a specially-crafted CDF file, which once inspected by the file utility of the victim would lead to file executable crash.

First published (updated )
Severity
5.1
Integer Overflow
AV:N/AC:H/Au:N/C:P/I:P/A:P

Integer overflow in the "file" program 4.20, when running on 32-bit systems, as used in products including The Sleuth Kit, might allow user-assisted attackers to execute arbitrary code via a large file that triggers an overflow that bypasses an assert() statement. NOTE: this issue is due to an incorrect patch for CVE-2007-1536.

First published (updated )
Severity
9.3
Buffer Overflow
AV:N/AC:M/Au:N/C:C/I:C/A:C

Integer underflow in the fileprintf function in the "file" program before 4.20 allows user-assisted attackers to execute arbitrary code via a file that triggers a heap-based buffer overflow.

First published (updated )
Severity
10
Buffer Overflow
AV:N/AC:L/Au:N/C:C/I:C/A:C

Stack-based buffer overflow in the ELF header parsing code in file before 4.12 allows attackers to execute arbitrary code via a crafted ELF file.

First published (updated )
Severity
4.6
Buffer Overflow
AV:L/AC:L/Au:N/C:P/I:P/A:P

Buffer overflow in tryelf() in readelf.c of the file command allows attackers to execute arbitrary code as the user running file, possibly via a large entity size value in an ELF header (elfhdr.eshentsize).

First published (updated )

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203