portage-ng / portage / app-arch / cpio / 2.14
portage-ng glsa
5 advisories reference app-arch/cpio · none place version 2.14 in a vulnerable range
▸ GLSA 202407-07 cpio: Arbitrary Code Execution this version unaffected normal local 2024-07-01

A vulnerability has been discovered in cpio, which can lead to arbitrary code execution.

Announced
2024-07-01
Revised
2024-07-01
Access
local
Bugs
#807088
Advisory
https://security.gentoo.org/glsa/202407-07

Affected packages

PackageArchVulnerableUnaffected
app-arch/cpio*< 2.13-r1>= 2.13-r1

Background

cpio is a file archival tool which can also read and write tar files.

Description

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

Impact

GNU cpio allows attackers to execute arbitrary code via a crafted pattern file, because of a dstring.c ds_fgetstr integer overflow that triggers an out-of-bounds heap write. NOTE: it is unclear whether there are common cases where the pattern file, associated with the -E option, is untrusted data.

Workaround

There is no known workaround at this time.

Resolution

All cpio users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.13-r1"

References

▸ GLSA 201502-11 GNU cpio: Multiple vulnerabilities this version unaffected normal remote 2015-02-15

Two vulnerabilities have been found in GNU cpio, the worst of which could result in execution of arbitrary code.

Announced
2015-02-15
Revised
2015-02-15
Access
remote
Bugs
#530512 #536010
Advisory
https://security.gentoo.org/glsa/201502-11

Affected packages

PackageArchVulnerableUnaffected
app-arch/cpio*< 2.11-r3>= 2.11-r3

Background

GNU cpio copies files into or out of a cpio or tar archive.

Description

Two vulnerabilities have been discovered in GNU cpio:

  • The list_file function in GNU cpio contains a heap-based buffer overflow vulnerability (CVE-2014-9112)
  • A directory traversal vulnerability has been found in GNU cpio (CVE-2015-1197)

Impact

A remote attacker may be able to entice a user to open a specially crafted archive using GNU cpio, possibly resulting in execution of arbitrary code, a Denial of Service condition, or overwriting arbitrary files.

Workaround

There is no known workaround at this time.

Resolution

All GNU cpio users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.11-r3"

References

▸ GLSA 201311-21 cpio: Arbitrary code execution this version unaffected normal remote 2013-11-28

A heap-based buffer overflow in cpio might allow a remote rmt server to execute arbitrary code or cause a Denial of Service condition.

Announced
2013-11-28
Revised
2013-11-28
Access
remote
Bugs
#314663
Advisory
https://security.gentoo.org/glsa/201311-21

Affected packages

PackageArchVulnerableUnaffected
app-arch/cpio*< 2.11>= 2.11

Background

GNU cpio copies files into or out of a cpio or tar archive.

Description

Cpio contains a heap-based buffer overflow in the rmt_read__ function in lib/rtapelib.c.

Impact

A remote server could sending more data than was requested, related to archive filenames that contain a : (colon) character, possibly resulting in execution of arbitrary code or a Denial of Service condition.

Workaround

There is no known workaround at this time.

Resolution

All cpio users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.11"

References

▸ GLSA 200711-18 Cpio: Buffer overflow this version unaffected normal remote 2007-11-14

GNU cpio contains a buffer overflow vulnerability, possibly resulting in a Denial of Service.

Announced
2007-11-14
Revised
2007-11-14
Access
remote
Bugs
#196978
Advisory
https://security.gentoo.org/glsa/200711-18

Affected packages

PackageArchVulnerableUnaffected
app-arch/cpio*< 2.9-r1>= 2.9-r1

Background

GNU cpio copies files into or out of a cpio or tar archive.

Description

A buffer overflow vulnerability in the safer_name_suffix() function in GNU cpio has been discovered.

Impact

A remote attacker could entice a user to open a specially crafted archive file resulting in a stack-based buffer overflow, possibly crashing the application. It is disputed whether the execution of arbitrary code is possible.

Workaround

There is no known workaround at this time.

Resolution

All GNU cpio users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.9-r1"

References

▸ GLSA 200506-16 cpio: Directory traversal vulnerability this version unaffected normal local 2005-06-20

cpio contains a flaw which may allow a specially crafted cpio archive to extract files to an arbitrary directory.

Announced
2005-06-20
Revised
2005-06-20
Access
local
Bugs
#90619
Advisory
https://security.gentoo.org/glsa/200506-16

Affected packages

PackageArchVulnerableUnaffected
app-arch/cpio*< 2.6-r3>= 2.6-r3

Background

cpio is a file archival tool which can also read and write tar files.

Description

A vulnerability has been found in cpio that can potentially allow a cpio archive to extract its files to an arbitrary directory of the creator's choice.

Impact

An attacker could create a malicious cpio archive which would create files in arbitrary locations on the victim's system. This issue could also be used in conjunction with a previous race condition vulnerability (CAN-2005-1111) to change permissions on files owned by the victim.

Workaround

There is no known workaround at this time.

Resolution

All cpio users should upgrade to the latest version:

# emerge --sync
# emerge --ask --oneshot --verbose ">=app-arch/cpio-2.6-r3"

References