See how file project compares to other vendors in security performance
Accessibility. A privacy issue was addressed with improved private data redaction for log entries.
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).
docorenote in readelf.c in libmagic.a in file 5.35 has an out-of-bounds read because memcpy is misused.
dobidnote in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to fileprintf and filevprintf.
docorenote in readelf.c in libmagic.a in file 5.35 has a stack-based buffer over-read, related to fileprintable, a different vulnerability than CVE-2018-10360.
docorenote in readelf.c in libmagic.a in file 5.35 allows remote attackers to cause a denial of service (stack corruption and application crash) or possibly have unspecified other impact.
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
An issue in file() was introduced in commit 9611f31313a93aa036389c5f3b15eea53510d4d1 (Oct 2016) lets an attacker overwrite a fixed 20 bytes stack buffer with a specially crafted .notes section in an ELF binary. This was fixed in commit 35c94dc6acc418f1ad7f6241a6680e5327495793 (Aug 2017).
It was reported [1][2] that a malformed elf file can cause file urility to access invalid memory. Upstream fixes that correct this: https://github.com/file/file/commit/445c8fb0ebff85195be94cd9f7e1df89cade5c7f https://github.com/file/file/commit/e96f86b5311572be1360ee0bb05d4926f8df3189
[1]: http://mx.gw.com/pipermail/file/2014/001649.html [2]: http://bugs.gw.com/view.php?id=409
Out of bounds memory read was reported in file utility [1], which also affects PHP fileinfo module. Upstream fix that resolves this for file utility: https://github.com/file/file/commit/59e63838913eee47f5c120a6c53d4565af638158
PHP upstream fix: https://github.com/php/php-src/commit/ede59c8feb4b80e1b94e4abdaa0711051e2912ab
[1]: http://bugs.gw.com/view.php?id=398
Last updated 24 July 2024
It was reported [1] that file versions prior to 5.22 did not limit the number of ELF notes processed, which could lead to a local resource exhaustion.
Upstream fix: https://github.com/file/file/commit/ce90e05774dd77d86cfc8dfa6da57b32816841c4
This issue seems to be introduced here: https://github.com/file/file/commit/956a45ab1c54b11304b367056f41905e72a02380#diff-bc5c24ef9f39a5f4963ca28ecbc645b3L423 which ended up in 5.08 release.
[1]: http://mx.gw.com/pipermail/file/2014/001653.html
softmagic.c in file before 5.21 does not properly limit recursion, which allows remote attackers to cause a denial of service (CPU consumption or crash) via unspecified vectors.
The ELF parser (readelf.c) in file before 5.21 allows remote attackers to cause a denial of service (CPU consumption or crash) via a large number of (1) program or (2) section headers or (3) invalid capabilities.
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.
A flaw was found in the way file uses cdfcheckstreamoffset function when checks stream offsets for certain Composite Document Format (CDF).
Upstream commit: https://github.com/file/file/commit/36fadd29849b8087af9f4586f89dbf74ea45be67
Acknowledgements:
This issue was discovered by Francisco Alonso of Red Hat Product Security.
A flaw was found in the way file uses cdfcheckstreamoffset function when checks stream offsets for certain Composite Document Format (CDF).
Upstream commit: https://github.com/file/file/commit/36fadd29849b8087af9f4586f89dbf74ea45be67
Acknowledgements:
This issue was discovered by Francisco Alonso of Red Hat Product Security.
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.
A flaw was reported in the rules file uses to detect AWK scripts. A malicious input file could cause the file utility to use 100% CPU.
Upstream bug: http://bugs.gw.com/view.php?id=164 Upstream fix: https://github.com/file/file/commit/ef2329cf71acb59204dd981e2c6cce6c81fe467c
A flaw was found in the way the file utility determined the type of Portable Executable (PE) format files, the executable format used on Windows. A malicious PE file could cause the file utility to crash or, potentially, execute arbitrary code.
Upstream report: http://bugs.gw.com/view.php?id=313
Upstream fix: https://github.com/glensc/file/commit/447558595a3650db2886cd2f416ad0beba965801