Go: Unchecked Return Value
CVE-2022-23806 is a critical-severity unchecked return value vulnerability in Go, with a CVSS 3.1 base score of 9.1 out of 10. It can be exploited remotely over the network by an unauthenticated attacker, without any action from a user. The record lists versions 1.16.14, 1.17.7 as the first without the flaw, so updating Go to one of those releases or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 3.07% chance of exploitation within 30 days, higher than 88% of scored CVEs.
Critical severity: a successful attack would have severe impact.
What to do
- Update Go to 1.16.14 or 1.17.7, whichever matches your release line, or a later version.
- Read the advisory on groups.google.com for workarounds and exact fixed builds.
- Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.
Affected products and versions
| Vendor | Product | Affected versions | Fixed in |
|---|---|---|---|
| Go | Go | before 1.16.14; 1.17.0 up to, but not including, 1.17.7 | 1.16.14, 1.17.7 |
| NetApp | Beegfs Csi Driver | Not specified in the record | Not stated |
| NetApp | Cloud Insights Telegraf Agent | Not specified in the record | Not stated |
| NetApp | Kubernetes Monitoring Operator | Not specified in the record | Not stated |
| NetApp | Storagegrid | Not specified in the record | Not stated |
| Debian | Debian Linux | 9.0 | Not stated |
Version data comes from NVD's product matching. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- NoneNo account or login is needed.
- User interaction
- NoneNo action by a victim is required.
- Scope
- UnchangedImpact stays within the vulnerable component.
- Confidentiality
- NoneNo data is disclosed.
- Integrity
- HighData or code can be modified at will.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H. Scored by NVD.
| Scoring system | Score | Severity | Scored by |
|---|---|---|---|
| CVSS 3.1 | 9.1 | Critical | NVD |
| CVSS 2.0 | 6.4 | Medium | NVD |
Official description
Curve.IsOnCurve in crypto/elliptic in Go before 1.16.14 and 1.17.x before 1.17.7 can incorrectly return true in situations with a big.Int value that is not a valid field element.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Unchecked Return Value
The product does not check the return value from a method or function.
How developers prevent this class of flaw
- Check the results of all functions that return a value and verify that the value is expected.
- For any pointers that could have been modified or provided from a function that can return NULL, check the pointer for NULL before use. When working with a multithreaded or otherwise asynchronous environment, ensure that proper locking APIs are used to lock before the check, and unlock when it has finished.
- Ensure that you account for all possible return values from the function.
Timeline
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Advisories
- groups.google.com/g/golang-announce/c/SUsQn0aSgPQRelease Notes
Third-party and government advisories
- lists.debian.org/debian-lts-announce/2022/04/msg00017.htmlMailing List, Third Party Advisory
- lists.debian.org/debian-lts-announce/2022/04/msg00018.htmlMailing List, Third Party Advisory
- security.gentoo.org/glsa/202208-02Third Party Advisory
- security.netapp.com/advisory/ntap-20220225-0006/Third Party Advisory
- oracle.com/security-alerts/cpujul2022.htmlThird Party Advisory
Other references
Other vulnerabilities in Go
- 7.8 High severity
- 7.5 High severity
- 7.5 High severity
- 7.5 High severity
- 7.1 High severity
- 8.8 High severity
Recent Unchecked Return Value vulnerabilities
- 8.8 High severity
Spotted an error? Tell us.