Vulnerability · Published Aug 7, 2021 · Assigned by mitre
CVE-2021-29923
High 7.5
In plain English
A high-severity security flaw in the go package (Alpine). There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 3.7% (higher than 90% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.
Severity (CVSS NVD)7.5High
Exploit odds (30 days)3.7%top 10.1% of all CVEs
Exploited in the wildNo reportsnot in CISA KEV
Attack toolingNoneno public tooling known
Official 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.
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.20 | go | 1.17-r0 | ALPINE-CVE-2021-29923 |
| Alpine:v3.21 | go | 1.17-r0 | ALPINE-CVE-2021-29923 |
| Alpine:v3.22 | go | 1.17-r0 | ALPINE-CVE-2021-29923 |
| Alpine:v3.23 | go | 1.17-r0 | ALPINE-CVE-2021-29923 |
| Alpine:v3.24 | go | 1.17-r0 | ALPINE-CVE-2021-29923 |
| Rocky Linux:8 | delve | 0:1.5.0-2.module+el8.4.0+396+d2d16ae3 | RLSA-2021:3585 |
| Rocky Linux:8 | go-toolset | 0:1.15.14-2.module+el8.4.0+646+fc1a61b2 | RLSA-2021:3585 |
| Rocky Linux:8 | golang | 0:1.15.14-2.module+el8.4.0+646+fc1a61b2 | RLSA-2021:3585 |
Affected products (as reported)
References
- https://golang.org/pkg/net/#ParseCIDR x_refsource_MISC
- https://www.oracle.com/security-alerts/cpujan2022.html x_refsource_MISC
- https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudis x_refsource_MISC
- https://github.com/golang/go/issues/43389 x_refsource_MISC
- https://github.com/golang/go/issues/30999 x_refsource_MISC
- https://go-review.googlesource.com/c/go/+/325829/ x_refsource_MISC
- https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-016.md x_refsource_MISC
- FEDORA-2022-17d004ed71 vendor-advisory, x_refsource_FEDORA
- GLSA-202208-02 vendor-advisory, x_refsource_GENTOO