CVE-2021-29923
golang: net: incorrect parsing of extraneous zero characters at the beginning of an IP address octet
Overview
Description
Go before 1.17 does not properly consider extraneous zero characters at the beginning of an IP address octet, which (in some situations) allows attackers to bypass access control that is based on IP addresses, because of unexpected octal interpretation. This affects net.ParseIP and net.ParseCIDR.
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
- High
- Availability
- None
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Affected packages · 1
| Ecosystem | Package | Vulnerable | Fixed in |
|---|---|---|---|
| Bitnami | golang | <1.17.0 | 1.17.0 |
Open a package to see all its vulnerabilities.
Operating systems · 46 fixes
Azure Linux 1 release · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.0 | python-tensorboard | 0:2.16.2-2.azl3 |
Oracle Linux 1 release · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 | golang +6 | 1.15.14-1.module+el8.4.0+20307+d24cc4c6 |
| 8 | go-toolset | 1.15.14-2.module+el8.4.0+20307+d24cc4c6 |
| 8 | delve | 1.5.0-2.0.1.module+el8.4.0+20021+8a86d991 |
Photon OS 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 4.0 | go | 1.17.2-1.ph4 |
| 4.0 | kubernetes-dashboard | 2.7.0-1.ph4 |
Red Hat 8 releases · 20 packages
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| heketi +2 | eol | — | |
| etcd +10 | wont fix | — | |
| 7 | atomic-openshift +12 | eol | — |
| 7 | buildah +8 | eol | — |
| 7 | go-toolset-1-15-golang +6 | 0:1.15.14-2.el7_9 | RHSA-2021:3431 |
| 7 | cri-o | 0:1.22.1-17.rhaos4.9.git3029b1d.el7 | RHSA-2022:0557 |
25 more rows
alpine 4 releases · 1 package
| Release | Package | Fixed in |
|---|---|---|
| 3.22 | go | 1.17-r0 |
| 3.23 | go | 1.17-r0 |
| 3.24 | go | 1.17-r0 |
| edge | go | 1.17-r0 |
debian 3 releases · 3 packages
| Release | Package | Fixed in |
|---|---|---|
| 10 | golang-1-11 | affected |
| 11 | golang-1-15 | affected |
| 9 | golang-1-7 +1 | affected |
rocky 1 release · 2 packages
| Release | Package | Fixed in |
|---|---|---|
| 8 (go-toolset:rhel8) | go-toolset +7 | 1.15.14-2.module+el8.4.0+646+fc1a61b2 |
| 8 (go-toolset:rhel8) | delve | 1.5.0-2.module+el8.4.0+396+d2d16ae3 |
References
- access.redhat.com https://access.redhat.com/errata/RHSA-2021:3585
- access.redhat.com https://access.redhat.com/security/cve/CVE-2021-29923
- bugzilla.redhat.com https://bugzilla.redhat.com/show_bug.cgi?id=1992006
- creativecommons.org https://creativecommons.org/licenses/by/4.0/
- cve.mitre.org https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-29923
- defcon.org https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- errata.rockylinux.org https://errata.rockylinux.org/RLSA-2021:3585
- github.com https://github.com/golang/go/issues/30999
- github.com https://github.com/golang/go/issues/43389
- github.com https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-016.md
Show all 20 references
- go-review.googlesource.com https://go-review.googlesource.com/c/go/+/325829/
- golang.org https://golang.org/pkg/net/#ParseCIDR
- linux.oracle.com https://linux.oracle.com/cve/CVE-2021-29923.html
- linux.oracle.com https://linux.oracle.com/errata/ELSA-2021-3585.html
- lists.fedoraproject.org https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4CHKSFMHZVOBCZSSVRE3UEYNKARTBMTM/
- nvd.nist.gov https://nvd.nist.gov/vuln/detail/CVE-2021-29923
- security.gentoo.org https://security.gentoo.org/glsa/202208-02
- sick.codes https://sick.codes/sick-2021-016/
- www.cve.org https://www.cve.org/CVERecord?id=CVE-2021-29923
- www.oracle.com https://www.oracle.com/security-alerts/cpujan2022.html
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.