CVE-2021-29923
JSON

7.5high

Go before 1.17 does not properly consider extraneous zero characters at the beginning of an IP address octet, which (in some situations) al…

Severity
7.5high CVSS:3.1 by NVD
Exploit likelihood
3.74% (higher than 90% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
BIT-GOLANG-2021-29923

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

Product or packageVersionsReported by
Unspecified productn/aCVE List
golang gobefore 1.17NVD
oracle timesten_in-memory_databasebefore 21.1.1.1.0NVD
fedoraproject fedora36NVD
golang (Bitnami)before 1.17.0Bitnami Vulnerability Database

All scores

NVD7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
NVD5.0medium CVSS:2.0AV:N/AC:L/Au:N/C:N/I:P/A:N
Bitnami Vulnerability Databasehigh rating

What each source says

CVE List

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.

NVD (es)

Go versiones anteriores a 1.17, no considera apropiadamente los caracteres cero extraños al principio de un octeto de dirección IP, lo que (en algunas situaciones) permite a atacantes omitir el control de acceso que es basado en las direcciones IP, debido a una interpretación octal inesperada. Esto afecta a net.ParseIP y net.ParseCIDR

References

https://golang.org/pkg/net/#ParseCIDRadvisory, vendor-advisory
https://www.oracle.com/security-alerts/cpujan2022.htmladvisory, patch, third-party-advisory
https://defcon.org/html/defcon-29/dc-29-speakers.html#kaoudisadvisory, third-party-advisory
https://github.com/golang/go/issues/43389advisory, issue-tracking, third-party-advisory
https://github.com/golang/go/issues/30999advisory, exploit, issue-tracking, third-party-advisory
https://go-review.googlesource.com/c/go/+/325829/advisory, patch, third-party-advisory
https://github.com/sickcodes/security/blob/master/advisories/SICK-2021-016.mdadvisory, exploit, third-party-advisory
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/4CHKSFMHZVOBCZSSVRE3UEYNKARTBMTM/vendor-advisory, web
https://security.gentoo.org/glsa/202208-02advisory, third-party-advisory, vendor-advisory
https://nvd.nist.gov/vuln/detail/CVE-2021-29923web

Sources

SourceRecordLicence
CVE ListCVE-2021-29923 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-29923 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2021-29923 changed 2026-09-08Apache-2.0