Lucene search

K
amazonAmazonALAS2-2023-1972
HistoryMar 02, 2023 - 10:35 p.m.

Medium: cpio

2023-03-0222:35:00
alas.aws.amazon.com
35
gnu cpio
arbitrary code execution
integer overflow
out-of-bounds heap write
amazon linux 2
advisory
update
red hat
mitre
unix

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS3

7.8

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

AI Score

8.2

Confidence

High

EPSS

0.003

Percentile

65.1%

Issue Overview:

GNU cpio through 2.13 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. (CVE-2021-38185)

Affected Packages:

cpio

Note:

This advisory is applicable to Amazon Linux 2 (AL2) Core repository. Visit this FAQ section for the difference between AL2 Core and AL2 Extras advisories.

Issue Correction:
Run yum update cpio to update your system.

New Packages:

aarch64:  
    cpio-2.12-11.amzn2.aarch64  
    cpio-debuginfo-2.12-11.amzn2.aarch64  
  
i686:  
    cpio-2.12-11.amzn2.i686  
    cpio-debuginfo-2.12-11.amzn2.i686  
  
src:  
    cpio-2.12-11.amzn2.src  
  
x86_64:  
    cpio-2.12-11.amzn2.x86_64  
    cpio-debuginfo-2.12-11.amzn2.x86_64  

Additional References

Red Hat: CVE-2021-38185

Mitre: CVE-2021-38185

CVSS2

6.8

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

PARTIAL

Integrity Impact

PARTIAL

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:P/I:P/A:P

CVSS3

7.8

Attack Vector

LOCAL

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

REQUIRED

Scope

UNCHANGED

Confidentiality Impact

HIGH

Integrity Impact

HIGH

Availability Impact

HIGH

CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H

AI Score

8.2

Confidence

High

EPSS

0.003

Percentile

65.1%