CVE-2022-32148
Medium
Description
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.
SeverityMedium
CVSS6.5
Exploit probability—
ProductGo
PublishedAug 10, 2022
First seenAug 10, 2022
Weakness typeCWE-200Sensitive information exposure
How to fix
Update
- golang go1.17.12, 1.18.4 or later
- stdlib1.17.12, 1.18.4 or later
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| golang go | v < 1.17.12, 1.18.0 ≤ v < 1.18.4 | 1.17.12, 1.18.4 |
| stdlibGo | v < 1.17.12, 1.18.0-0 ≤ v < 1.18.4 | 1.17.12, 1.18.4 |
Check your version
Choose the product and enter the version you run to see whether it falls in the affected range.
In the Intelligence 360 plan
Attack Surface Management
See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.