portage-ng / portage / sys-apps / file / 5.47-r3
portage-ng glsa
14 advisories reference sys-apps/file · none place version 5.47-r3 in a vulnerable range
▸ GLSA 202409-06 file: Stack Buffer Overread this version unaffected normal remote 2024-09-22

A vulnerability has been discovered in file, which could lead to a denial of service.

Announced
2024-09-22
Revised
2024-09-22
Access
remote
Bugs
#918554
Advisory
https://security.gentoo.org/glsa/202409-06

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.42>= 5.42

Background

The file utility attempts to identify a file’s format by scanning binary data for patterns.

Description

Multiple vulnerabilities have been discovered in file. Please review the CVE identifiers referenced below for details.

Impact

File has an stack-based buffer over-read in file_copystr in funcs.c.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.42"

References

▸ GLSA 202003-24 file: Heap-based buffer overflow this version unaffected normal local, remote 2020-03-15

A heap-based buffer overflow in file might allow remote attackers to execute arbitrary code.

Announced
2020-03-15
Revised
2020-03-15
Access
local, remote
Bugs
#698610
Advisory
https://security.gentoo.org/glsa/202003-24

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.37-r1>= 5.37-r1

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

It was discovered that file incorrectly handled certain malformed files.

Impact

A remote attacker could entice a user to process a specially crafted file via libmagic or file, possibly resulting in execution of arbitrary code with the privileges of the process or a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.37-r1"

References

▸ GLSA 201806-08 file: Denial of service this version unaffected normal remote 2018-06-23

A vulnerability in file could lead to a Denial of Service condition.

Announced
2018-06-23
Revised
2018-06-23
Access
remote
Bugs
#657930
Advisory
https://security.gentoo.org/glsa/201806-08

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.33-r2>= 5.33-r2

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

File does not properly utilize the do_core_note function in readelf.c in libmagic.a.

Impact

A remote attacker could send a specially crafted ELF file possibly resulting in a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.33-r2"

References

▸ GLSA 201710-02 file: Stack-based buffer overflow this version unaffected normal remote 2017-10-08

A stack-based buffer overflow was found in file, possibly resulting in the execution of arbitrary code.

Announced
2017-10-08
Revised
2017-10-08
Access
remote
Bugs
#629872
Advisory
https://security.gentoo.org/glsa/201710-02

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.32>= 5.32

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

An issue discovered in file allows attackers to write 20 bytes to the stack buffer via a specially crafted .notes section.

Impact

A remote attacker, by using a specially crafted .notes section in an ELF binary, could execute arbitrary code or cause a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.32"

References

▸ GLSA 201701-42 file: Multiple vulnerabilities this version unaffected normal remote 2017-01-17

Multiple vulnerabilities have been found in file, the worst of which could allow remote attackers to execute arbitrary code.

Announced
2017-01-17
Revised
2017-01-17
Access
remote
Bugs
#526544 #538660 #539106 #579306
Advisory
https://security.gentoo.org/glsa/201701-42

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.23>= 5.23

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

Multiple vulnerabilities have been discovered in file. Please review the CVE identifiers referenced below for details.

Impact

A remote attacker could entice a user or automated system to process a specially crafted input file, possibly resulting in execution of arbitrary code with the privileges of the process, a Denial of Service condition or have other unspecified impacts.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.23"

References

▸ GLSA 201503-08 file: Denial of service this version unaffected normal local, remote 2015-03-16

Vulnerabilities in file could allow a context-dependent attack to create a Denial of Service condition.

Announced
2015-03-16
Revised
2015-03-16
Access
local, remote
Bugs
#503582 #532768
Advisory
https://security.gentoo.org/glsa/201503-08

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.22>= 5.22

Background

The file utility attempts to identify a file’s format by scanning binary data for patterns.

Description

Multiple issues with the ELF parser used by the file utility have been detected and fixed.

Impact

A context-dependent attacker can cause Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.22"

References

▸ GLSA 201412-48 file: Denial of service this version unaffected normal local, remote 2014-12-27

A vulnerability in file could allow a context-dependent attack to create a Denial of Service condition.

Announced
2014-12-27
Revised
2014-12-27
Access
local, remote
Bugs
#532686
Advisory
https://security.gentoo.org/glsa/201412-48

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.21>= 5.21

Background

The file utility attempts to identify a file’s format by scanning binary data for patterns.

Description

An issue with the ELF parser used by the file utility can cause a resource consumption when reading a specially-crafted ELF binary.

Impact

A context-dependent attacker may be able to cause Denial of Service.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.21"

References

▸ GLSA 201408-08 file: Denial of service this version unaffected normal local, remote 2014-08-26

A vulnerability in file could result in Denial of Service.

Announced
2014-08-26
Revised
2014-08-29 (revision 6)
Access
local, remote
Bugs
#505534
Advisory
https://security.gentoo.org/glsa/201408-08

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.15>= 5.15

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

BEGIN regular expression in the awk script detector in magic/Magdir/commands uses multiple wildcards with unlimited repetitions.

Impact

A context-dependent attacker could entice a user to open a specially crafted file, possibly resulting in a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.15"

References

▸ GLSA 201403-03 file: Denial of service this version unaffected normal remote 2014-03-13

A vulnerability in file could result in Denial of Service.

Announced
2014-03-13
Revised
2014-03-13
Access
remote
Bugs
#501574
Advisory
https://security.gentoo.org/glsa/201403-03

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.17>= 5.17

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

A flaw was found in the way the file utility determines the type of a file.

Impact

A remote attacker could entice a user to open a specially crafted file, possibly resulting in a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.17"

References

▸ GLSA 201209-14 file: Denial of service this version unaffected normal remote 2012-09-26

A vulnerability in file could result in Denial of Service.

Announced
2012-09-26
Revised
2012-09-26
Access
remote
Bugs
#427368
Advisory
https://security.gentoo.org/glsa/201209-14

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 5.11>= 5.11

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

Multiple out-of-bounds read errors and invalid pointer dereference errors have been found in cdf.c.

Impact

A remote attacker could entice a user to open a specially crafted Composite Document File (CDF) using file, possibly resulting in a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-5.11"

References

▸ GLSA 200705-25 file: Integer overflow this version unaffected high remote 2007-05-31

An integer overflow vulnerability has been reported in file allowing for the user-assisted execution of arbitrary code.

Announced
2007-05-31
Revised
2007-06-01 (revision 2)
Access
remote
Bugs
#179583
Advisory
https://security.gentoo.org/glsa/200705-25

Affected packages

PackageArchVulnerableUnaffected
sys-apps/filex86 ppc hppa< 4.21>= 4.21

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

Colin Percival from FreeBSD reported that the previous fix for the file_printf() buffer overflow introduced a new integer overflow.

Impact

A remote attacker could entice a user to run the file program on an overly large file (more than 1Gb) that would trigger an integer overflow on 32-bit systems, possibly leading to the execution of arbitrary code with the rights of the user running file.

Workaround

There is no known workaround at this time.

Resolution

Since file is a system package, all Gentoo users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-4.21"

References

▸ GLSA 200704-13 File: Denial of service this version unaffected normal remote 2007-04-17

A vulnerability has been discovered in file allowing for a denial of service.

Announced
2007-04-17
Revised
2007-09-17 (revision 2)
Access
remote
Bugs
#174217
Advisory
https://security.gentoo.org/glsa/200704-13

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*= 4.21>= 4.21-r1

Background

file is a utility that identifies a file format by scanning binary data for patterns.

Description

Conor Edberg discovered an error in the way file processes a specific regular expression.

Impact

A remote attacker could entice a user to open a specially crafted file, using excessive CPU ressources and possibly leading to a Denial of Service. Note that this vulnerability could be also triggered through an automatic file scanner like amavisd-new.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-4.20-r1"

References

▸ GLSA 200703-26 file: Integer underflow this version unaffected high remote 2007-03-30

A buffer underflow vulnerability has been reported in file allowing for the user-assisted execution of arbitrary code.

Announced
2007-03-30
Revised
2007-03-30
Access
remote
Bugs
#171452
Advisory
https://security.gentoo.org/glsa/200703-26

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 4.20>= 4.20

Background

file is a utility that guesses a file format by scanning binary data for patterns.

Description

Jean-Sebastien Guay-Leroux reported an integer underflow in file_printf function.

Impact

A remote attacker could entice a user to run the "file" program on a specially crafted file that would trigger a heap-based buffer overflow possibly leading to the execution of arbitrary code with the rights of the user running "file". Note that this vulnerability could be also triggered through an automatic file scanner like amavisd-new.

Workaround

There is no known workaround at this time.

Resolution

Since file is a system package, all Gentoo users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-4.20"

References

▸ GLSA 200412-07 file: Arbitrary code execution this version unaffected normal remote 2004-12-13

The code for parsing ELF headers in file contains a flaw which may allow an attacker to execute arbitrary code.

Announced
2004-12-13
Revised
2006-05-22 (revision 2)
Access
remote
Bugs
#72521
Advisory
https://security.gentoo.org/glsa/200412-07

Affected packages

PackageArchVulnerableUnaffected
sys-apps/file*< 4.12>= 4.12

Background

file is a utility used to identify the type of a file.

Description

A possible stack overflow has been found in the ELF header parsing code of file.

Impact

An attacker may be able to create a specially crafted ELF file which, when processed with file, may allow the execution of arbitrary code.

Workaround

There is no known workaround at this time.

Resolution

All file users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=sys-apps/file-4.12"

References