CVE-2022-2879
golang: archive/tar: github.com/vbatts/tar-split: unbounded memory consumption when reading headers
Overview
Description
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.
Source: OX vulnerability database
Severity
7.5 · HIGH
CVSS 3.1 base score, scored by NVD.
- Attack vector
- Network
- Attack complexity
- Low
- Privileges required
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Weakness: CWE-770
Affected packages · 2
Operating systems · 400 fixes
Azure Linux 1 release · 7 packages
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | ig | 0:0.29.0-1.azl3 |
| 3.0 | skopeo | 0:1.14.4-1.azl3 |
| 3.0 | buildah | 0:1.41.4-2.azl3 |
| 3.0 | containerized-data-importer | 0:1.57.0-3.azl3 |
| 3.0 | libcontainers-common | 0:20240213-2.azl3 |
| 3.0 | moby-engine | 0:25.0.3-3.azl3 |
1 more row
Oracle Linux 2 releases · 26 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | udica | 0.2.6-20.module+el8.9.0+90147+a4870853 |
| 8 | fuse-overlayfs | 1.13-1.module+el8.10.0+90298+77a9814d |
| 8 | crun | 1.14.3-2.module+el8.10.0+90298+77a9814d |
| 8 | go-toolset | 1.19.4-1.module+el8.7.0+20922+47ac84ba |
| 8 | golang +6 | 1.19.4-2.0.1.module+el8.7.0+20922+47ac84ba |
| 8 | oci-seccomp-bpf-hook | 1.2.10-1.module+el8.10.0+90298+77a9814d |
25 more rows
Photon OS 2 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.19.2-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
| 5.0 | falco | 0.32.2-6.0601037001.ph5 |
| 5.0 | go | 1.26.3-1.ph5 |
Red Hat 8 releases · 101 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| go-toolset-7-golang +3 | eol | — | |
| 7 | buildah +3 | affected | — |
| 7 | golang +2 | eol | — |
| 7 | go-toolset-1-18 +10 | 0:1.18.9-1.el7_9 | RHSA-2023:0445 |
| 8 | toolbox | 0:0.1.0-1.rhaos4.12.el8 | RHSA-2022:7398 |
| 8 | toolbox | 0:0.1.1-3.rhaos4.12.el8 | RHSA-2023:0727 |
188 more rows
SUSE Linux Enterprise 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| 15.4 | go1-18-openssl +2 | 1.18.10.1-150000.1.9.1 | SUSE-SU-2023:2312-1 |
| 15.4 | go1-18 +2 | 1.18.7-150000.1.34.1 | SUSE-SU-2022:3668-1 |
| 15.4 | go1-19 +2 | 1.19.2-150000.1.12.1 | SUSE-SU-2022:3669-1 |
alma 4 releases · 23 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | weldr-client | 35.9-2.el8 |
| 8 | osbuild-composer +3 | 75-1.el8.alma |
| 8 (container-tools:4.0) | toolbox +1 | 0.0.99.4-5.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | udica | 0.2.6-4.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | slirp4netns | 1.1.8-3.module_el8.9.0+3627+db8ec155 |
| 8 (container-tools:4.0) | oci-seccomp-bpf-hook | 1.2.5-2.module_el8.8.0+3468+16b86c82 |
20 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.19.2-r0 |
| 3.23 | go | 1.19.2-r0 |
| 3.24 | go | 1.19.2-r0 |
| edge | go | 1.19.2-r0 |
amazon linux 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 2023 | golist +2 | 0.10.1-11.amzn2023.0.3 |
| 2023 | golang +7 | 1.19.3-2.amzn2023.0.2 |
chainguard 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | affected |
| 11 | golang-1-15 | affected |
| 12 | golang-1-19 | 1.19.2-1 |
echo 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| golang-1-19 | 1.19.2-1 |
openSUSE 1 release · 3 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Tumbleweed | go1-18 +2 | 1.18.7-1.1 | openSUSE-SU-2024:12391-1 |
| Tumbleweed | go1-19 +2 | 1.19.2-1.1 | openSUSE-SU-2024:12392-1 |
| Tumbleweed | docker-compose | 2.12.0-1.1 | openSUSE-SU-2024:12421-1 |
rocky 4 releases · 21 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (container-tools:4.0) | udica | 0.2.6-4.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | slirp4netns | 1.1.8-3.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | oci-seccomp-bpf-hook | 1.2.5-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | fuse-overlayfs | 1.9-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | runc | 1:1.1.5-2.module+el8.9.0+1445+07728297 |
| 8 (container-tools:4.0) | buildah +1 | 1:1.24.6-7.module+el8.9.0+1445+07728297 |
97 more rows
root.io debian 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 12 | rootio-golang-1-19 | 1.19.2-1 |
seal Red Hat 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 7 | python-jinja2 +1 | 2.7.2-4.el7+sp999 |
ubuntu 5 releases · 6 packages
| Release | Package | Fixed in |
|---|---|---|
| 18.04 | golang-1-18 | 1.18.1-1ubuntu1~18.04.4 |
| 18.04-ESM | golang-1-10 +2 | affected |
| 18.04-ESM | golang-1-13 | 1.13.8-1ubuntu1~18.04.4+esm1 |
| 18.04-ESM | golang-1-16 | 1.16.2-0ubuntu1~18.04.2+esm1 |
| 18.04-ESM | golang-1-18 | 1.18.1-1ubuntu1~18.04.4 |
| 20.04 | golang-1-13 | 1.13.8-1ubuntu1.2 |
9 more rows
wolfi 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| kubeflow-katib | 0.19.0-r40 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2023:2204
- access.redhat.com https://access.redhat.com/security/cve/CVE-2022-2879
- bugzilla.redhat.com https://bugzilla.redhat.com/2124669
- bugzilla.redhat.com https://bugzilla.redhat.com/2132867
- bugzilla.redhat.com https://bugzilla.redhat.com/2132868
- bugzilla.redhat.com https://bugzilla.redhat.com/2132872
- bugzilla.redhat.com https://bugzilla.redhat.com/2161274
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2132867
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2132868
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2132872
Show all 33 references
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2139718
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=2149313
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2879
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-2880
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2022-41715
- errata.almalinux.org https://errata.almalinux.org/9/ALSA-2023-2204.html
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2023:0446
- github.com https://github.com/golang/go/commit/0a723816cd205576945fa57fbdde7e6532d59d08 (go1.18.7)
- github.com https://github.com/golang/go/commit/4fa773cdefd20be093c84f731be7d4febf5536fa (go1.19.2)
- github.com https://github.com/golang/go/issues/54853
- github.com https://github.com/vbatts/tar-split/releases/tag/v0.12.1
- go.dev https://go.dev/cl/439355
- go.dev https://go.dev/issue/54853
- groups.google.com https://groups.google.com/g/golang-announce/c/xtuG5faxtaU
- groups.google.com https://groups.google.com/g/golang-announce/c/xtuG5faxtaU?pli=1
- linux.oracle.com https://linux.oracle.com/cve/CVE-2022-2879.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2024-2988.html
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2022-2879
- pkg.go.dev https://pkg.go.dev/vuln/GO-2022-1037
- security.gentoo.org https://security.gentoo.org/glsa/202311-09
- ubuntu.com https://ubuntu.com/security/notices/USN-6038-1
- ubuntu.com https://ubuntu.com/security/notices/USN-6038-2
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2022-2879
OX Radar and Response Center
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.