Live threats

All CVEs / Golang

CVE-2022-32148Golang Go

Medium 6.5 No auth needed

Priority
54
CVSS 3.1
6.5
EPSS
1.2%
probability of exploitation in 30 days · percentile 68
Auth required
No
Published
Aug 10, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
SSVC (CISA)
Exploitation: none · Automatable: yes · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N

What happens

Improper exposure of client IP addresses in net/http before Go 1.17.12 and Go 1.18.4 can be triggered by calling httputil.ReverseProxy.ServeHTTP with a Request.Header map containing a nil value for the X-Forwarded-For header, which causes ReverseProxy to set the client IP as the value of the X-Forwarded-For header.

Original NVD text.

What to do

  1. Apply the vendor's security update for Go.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go stdlib < 1.17.12 1.17.12 go get stdlib@v1.17.12
Go stdlib ≥ 1.18.0-0 < 1.18.4 1.18.4 go get stdlib@v1.18.4

Per OSV / GitHub Advisories (GO-2022-0520). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
golanggo< 1.17.12
golanggo≥ 1.18.0 < 1.18.4

Official advisories

Also: Red Hat (+11)

Vendor, CERT and distribution advisories that name this CVE. Original titles.

Official sources

References

Links published by the sources. Open them with care.