CyberSecBulletin
CVE-2022-23806NVD status: Modified

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.

Patch this week

Critical severity: a successful attack would have severe impact.

What to do

  1. Update Go to 1.16.14 or 1.17.7, whichever matches your release line, or a later version.
  2. Read the advisory on groups.google.com for workarounds and exact fixed builds.
  3. Until you can update, restrict network access to the affected service so it is not reachable from untrusted networks.

Affected products and versions

VendorProductAffected versionsFixed in
GoGobefore 1.16.14; 1.17.0 up to, but not including, 1.17.71.16.14, 1.17.7
NetAppBeegfs Csi DriverNot specified in the recordNot stated
NetAppCloud Insights Telegraf AgentNot specified in the recordNot stated
NetAppKubernetes Monitoring OperatorNot specified in the recordNot stated
NetAppStoragegridNot specified in the recordNot stated
DebianDebian Linux9.0Not 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 systemScoreSeverityScored by
CVSS 3.19.1CriticalNVD
CVSS 2.06.4MediumNVD

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.

More Unchecked Return Value vulnerabilities (CWE-252)

Timeline

  1. CVE record published.
  2. Record last changed materially (score, affected products, status or references).

References

Third-party and government advisories

Other vulnerabilities in Go

All Go vulnerabilities

Recent Unchecked Return Value vulnerabilities

Spotted an error? Tell us.