CVE-2021-29923
publishedgolang: net: incorrect parsing of extraneous zero characters at the beginning of an IP address octet
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| n/a | — | n/an/a | Affected | Not stated | mitre |
| Alpine Linux | edge | go | Fixed | 1.17-r0 | Package fix record |
| Oracle Linux | 8 | delvex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.5.0-2.0.1.module+el8.4.0+20021+8a86d991 | ELSA-2021-3585 |
| Red Hat Enterprise Linux | RHEL-8 | delvesrc | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:3585 |
| Rocky Linux | 8 | delvesrc | Listed in advisory | Not stated | RLSA-2021:3585 |
| Alpine Linux | v3.15 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.16 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.17 | go | Fixed | 1.17-r0 | Package fix record |
Show 60 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Alpine Linux | v3.18 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.19 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.20 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.21 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.22 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.23 | go | Fixed | 1.17-r0 | Package fix record |
| Alpine Linux | v3.24 | go | Fixed | 1.17-r0 | Package fix record |
| Oracle Linux | 8 | go-toolsetaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-2.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | go-toolsetx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-2.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golangaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golangx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-binaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-binx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-docsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-docsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-miscaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-miscx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-racex86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-srcaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-srcx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-testsaarch64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Oracle Linux | 8 | golang-testsx86_64 · go-toolset · ol8 is enabled | Advisory build | 0:1.15.14-1.module+el8.4.0+20307+d24cc4c6 | ELSA-2021-3585 |
| Red Hat Enterprise Linux | RHEL-8 | delvex86_64 | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debuginfox86_64 | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | delve-debugsourcex86_64 | Advisory build | 1.5.0-2.module+el8.4.0+8864+58b0fcdb | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetaarch64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetppc64le | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsets390x | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetsrc | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | go-toolsetx86_64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golangaarch64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golangppc64le | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golangs390x | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golangsrc | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golangx86_64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binaarch64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binppc64le | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-bins390x | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-binx86_64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-docsnoarch | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-miscnoarch | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-racex86_64 | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-srcnoarch | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Red Hat Enterprise Linux | RHEL-8 | golang-testsnoarch | Advisory build | 1.15.14-2.module+el8.4.0+12542+e3fec473 | RHSA-2021:3585 |
| Rocky Linux | 8 | delvex86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | delve-debuginfox86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | delve-debugsourcex86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | go-toolsetaarch64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | go-toolsetsrc | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | go-toolsetx86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golangaarch64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golangsrc | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golangx86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-binaarch64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-binx86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-docsnoarch | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-miscnoarch | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-racex86_64 | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-srcnoarch | Listed in advisory | Not stated | RLSA-2021:3585 |
| Rocky Linux | 8 | golang-testsnoarch | Listed in advisory | Not stated | RLSA-2021:3585 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| n/a | n/a | n/a (affected) | mitre · cna |
Weaknesses
1- n/a
References
9- https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis
- https://github.com/golang/go/issues/30999
- https://github.com/golang/go/issues/43389
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-016.md
- https://go-review.googlesource.com/c/go/+/325829/
- https://golang.org/pkg/net/#ParseCIDR
- FEDORA-2022-17d004ed71 https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4CHKSFMHZVOBCZSSVRE3UEYNKARTBMTM/
- GLSA-202208-02 https://security.gentoo.org/glsa/202208-02
- https://www.oracle.com/security-alerts/cpujan2022.html
Provider assertions
2mitre · cna
CVE · adp
CVE Program Container
Provenance
- Schema
- 5.1
- Searchable
- yes
- Content hash
- f84afca7e79cd081331b159d98908ec48639e31262f0177552bd90001b68289a
- Ingested
- 23 Sep 2026, 07:53:55 UTC
- Source record
- Official CVE record