PT-2022-21118 · Go+9 · Go+9
Christian Mehlmauer
·
Published
2022-07-12
·
Updated
2026-03-06
·
CVE-2022-32148
CVSS v3.1
7.5
High
| Vector | AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
Name of the Vulnerable Software and Affected Versions
Go versions prior to 1.17.12
Go versions prior to 1.18.4
Description
The issue is related to the improper exposure of client IP addresses. This can be triggered by calling
httputil.ReverseProxy.ServeHTTP with a Request.Header map containing a nil value for the X-Forwarded-For header. As a result, ReverseProxy sets the client IP as the value of the X-Forwarded-For header, contrary to its documentation.Recommendations
For Go versions prior to 1.17.12, update to Go 1.17.12 or later to resolve the issue.
For Go versions prior to 1.18.4, update to Go 1.18.4 or later to resolve the issue.
As a temporary workaround, consider avoiding the use of a nil value for the
X-Forwarded-For header in the Request.Header map when calling httputil.ReverseProxy.ServeHTTP.Exploit
Fix
Found an issue in the description? Have something to add? Feel free to write us 👾
Related Identifiers
Affected Products
Alt Linux
Almalinux
Centos
Debian
Go
Linuxmint
Red Hat
Rocky Linux
Suse
Ubuntu