Lucene search

K
cve[email protected]CVE-2022-2879
HistoryOct 14, 2022 - 3:15 p.m.

CVE-2022-2879

2022-10-1415:15:17
CWE-770
web.nvd.nist.gov
319
3
cve-2022-2879
unbounded memory allocation
reader.read
resource exhaustion
panic
nvd

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

7.6 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

58.9%

Reader.Read does not set a limit on the maximum size of file headers. A maliciously crafted archive could cause Read to allocate unbounded amounts of memory, potentially causing resource exhaustion or panics. After fix, Reader.Read limits the maximum size of header blocks to 1 MiB.

Affected configurations

NVD
Node
golanggoRange<1.18.7
OR
golanggoRange1.19.01.19.2

CNA Affected

[
  {
    "vendor": "Go standard library",
    "product": "archive/tar",
    "collectionURL": "https://pkg.go.dev",
    "packageName": "archive/tar",
    "versions": [
      {
        "version": "0",
        "lessThan": "1.18.7",
        "status": "affected",
        "versionType": "semver"
      },
      {
        "version": "1.19.0-0",
        "lessThan": "1.19.2",
        "status": "affected",
        "versionType": "semver"
      }
    ],
    "programRoutines": [
      {
        "name": "Reader.next"
      },
      {
        "name": "parsePAX"
      },
      {
        "name": "Writer.writePAXHeader"
      },
      {
        "name": "Reader.Next"
      },
      {
        "name": "Writer.WriteHeader"
      }
    ],
    "defaultStatus": "unaffected"
  }
]

Social References

More

7.5 High

CVSS3

Attack Vector

NETWORK

Attack Complexity

LOW

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

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

7.6 High

AI Score

Confidence

High

0.002 Low

EPSS

Percentile

58.9%