cve.bz

CVE-2022-2879 golang go

7.5 highEPSS 2.0%Fix available

High (7.5) in golang go. EPSS 2.0% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.18.7, 1.19.2.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
EPSS
2.0% (unchanged from 2.0% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 81st percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-770 Allocation of Resources Without Limits or Throttling
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-2879 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-2879?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-2879?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-2879 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library archive/tarbefore 1.18.7
Go standard library archive/tarfrom 1.19.0-0 before 1.19.2

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-1037Gostdlib<1.18.7
>=1.19.0-0 <1.19.2
1.18.7, 1.19.2

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.191.19.2-1DEBIAN-CVE-2022-2879
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2022-2879
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2022-2879
Ubuntu18.04:LTSgolang-1.181.18.1-1ubuntu1~18.04.4UBUNTU-CVE-2022-2879 USN-6038-1
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2022-2879
Ubuntu20.04:LTSgolang-1.131.13.8-1ubuntu1.2UBUNTU-CVE-2022-2879 USN-6038-2
Ubuntu20.04:LTSgolang-1.14no fix listedUBUNTU-CVE-2022-2879
Ubuntu20.04:LTSgolang-1.161.16.2-0ubuntu1~20.04.1UBUNTU-CVE-2022-2879 USN-6038-2
Ubuntu20.04:LTSgolang-1.181.18.1-1ubuntu1~20.04.2UBUNTU-CVE-2022-2879 USN-6038-1
Ubuntu22.04:LTSgolang-1.131.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-2879 USN-6038-2
Ubuntu22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2022-2879
Ubuntu22.04:LTSgolang-1.181.18.1-1ubuntu1.1UBUNTU-CVE-2022-2879 USN-6038-1
UbuntuPro:16.04:LTSgolang-1.131.13.8-1ubuntu1~16.04.3+esm3UBUNTU-CVE-2022-2879 USN-6038-2
3 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatdevtools:2022go-toolset-1.18, go-toolset-1.18-build, go-toolset-1.18-golang and 8 more0:1.18.9-1.el7_9RHSA-2023:0445
Red Hatenterprise_linux:8::appstreamaardvark-dns2:1.10.0-1.module+el8.10.0+21209+52deeb51RHSA-2024:2988
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more1:1.24.6-7.module+el8.9.0+20656+56f336b9RHSA-2024:0121
Red Hatenterprise_linux:8::appstreambuildah, buildah-tests, buildah-debuginfo and 2 more2:1.33.6-2.module+el8.10.0+21371+46937eceRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcockpit-podman0:46-1.module+el8.9.0+20656+56f336b9RHSA-2024:0121
Red Hatenterprise_linux:8::appstreamcockpit-podman0:84.1-1.module+el8.10.0+21373+0d273fdfRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource2:2.1.4-2.module+el8.9.0+20656+56f336b9RHSA-2024:0121
Red Hatenterprise_linux:8::appstreamconmon, conmon-debuginfo, conmon-debugsource3:2.1.10-1.module+el8.10.0+21077+98b84d8aRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.205.0-3.module+el8.9.0+20656+56f336b9RHSA-2024:0121
Red Hatenterprise_linux:8::appstreamcontainer-selinux2:2.229.0-2.module+el8.10.0+21196+3f0abbcaRHSA-2024:2988
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.1.1-6.module+el8.9.0+20875+8dd9d5d2RHSA-2024:0121
Red Hatenterprise_linux:8::appstreamcontainernetworking-plugins, containernetworking-plugins-debuginfo, containernetworking-plugins-debugsource1:1.4.0-2.module+el8.10.0+21366+f9cb49f8RHSA-2024:2988
272 more for Red Hat in the JSON and on Red Hat's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The opportunity for a Denial of Service is limited to the golang runtime. In the case of OpenShift Container Platform, this would be restricted within each individual container. There are multiple layers of guide rails (Golang’s Garbage Collector; OpenShift’s resource constraints imposed at the container and cluster levels) which would require a malicious user to continue submitting attacks for there to be any enduring impact. They would also need access to external server resources to be able to send a massive volume of requests to cause a significant impact on server operations.

This flaw additionally affects the github.com/vbatts/tar-split library and was fixed in v0.12.1.

ProductPackageStateAdvisory
OADP-1.1-RHEL-8oadp/oadp-velero-rhel8:1.1.2-16Fixed 2023-03-09RHSA-2023:1174
OpenShift Custom Metrics Autoscaler 2custom-metrics-autoscaler-tech-preview/custom-metrics-autoscaler-rhel8:2.8.2-143Fixed 2023-03-06RHSA-2023:1042
Openshift Serverless 1 on RHEL 8openshift-serverless-clients-0:1.6.1-1.el8Fixed 2023-02-09RHSA-2023:0708
Red Hat Developer Toolsgo-toolset-1.18-0:1.18.9-1.el7_9Fixed 2023-01-25RHSA-2023:0445
Red Hat Developer Toolsgo-toolset-1.18-golang-0:1.18.9-1.el7_9Fixed 2023-01-25RHSA-2023:0445
Red Hat Enterprise Linux 8go-toolset:rhel8-8070020230116141618.ded9a3e2Fixed 2023-01-25RHSA-2023:0446
Red Hat Enterprise Linux 8osbuild-composer-0:75-1.el8Fixed 2023-05-16RHSA-2023:2780
Red Hat Enterprise Linux 8weldr-client-0:35.9-2.el8Fixed 2023-05-16RHSA-2023:2780
Red Hat Enterprise Linux 8container-tools:4.0-8090020231207142256.d7b6f4b7Fixed 2024-01-10RHSA-2024:0121
Red Hat Enterprise Linux 8container-tools:rhel8-8100020240227110532.82888897Fixed 2024-05-22RHSA-2024:2988
OpenShift Developer Tools and ServiceshelmFix deferred
OpenShift Developer Tools and ServicesodoAffected
Red Hat Advanced Cluster Management for Kubernetes 2rhacm2/prometheus-rhel9Affected
Red Hat Advanced Cluster Security 3advanced-cluster-security/rhacs-main-rhel8Affected
Red Hat AMQ Broker 7amq-broker-rhel8-operator-containerAffected
Red Hat Ansible Automation Platform 2openshift-clientsAffected
Red Hat Application Interconnect 1.0skupper-cliAffected
Red Hat Ceph Storage 3golangOut of support scope
Red Hat Enterprise Linux 8container-tools:3.0/buildahWill not fix
Red Hat Enterprise Linux 8container-tools:3.0/podmanAffected
458 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-2879.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-770 (20).

References

Check your stackJSON