CVE-2022-32148: Exposure of client IP addresses in net/http

Published Jul 12, 2022
·
Updated

A flaw was found in net/http/httputil golang package. When httputil.ReverseProxy.ServeHTTP is called with a Request.Header map containing a nil value for the X-Forwarded-For header, ReverseProxy could set the client IP incorrectly. This issue may affect confidentiality.

Other sources

Exposure of client IP addresses in net/http

Microsoft

When httputil.ReverseProxy.ServeHTTP was called with a Request.Header map containing a nil value for the X-Forwarded-For header, ReverseProxy would set the client IP as the value of the X-Forwarded-For header, contrary to its documentation. In the more usual case where a Director function set the X-Forwarded-For header value to nil, ReverseProxy would leave the header unmodified as expected.

Red Hat

Affected Software

26 affected componentsFixes available
redhat/skupper-cli<0:1.0.2-2.el8
0:1.0.2-2.el8
redhat/openshift-serverless-clients<0:1.3.1-4.el8
0:1.3.1-4.el8
redhat/go-toolset<1.17-golang-0:1.17.12-1.el7_9
1.17-golang-0:1.17.12-1.el7_9
redhat/git-lfs<0:2.13.3-3.el8_6
0:2.13.3-3.el8_6
redhat/grafana<0:7.5.15-3.el8
0:7.5.15-3.el8
redhat/grafana-pcp<0:3.2.0-2.el8
0:3.2.0-2.el8
redhat/golang<0:1.17.12-1.el9_0
0:1.17.12-1.el9_0
redhat/grafana<0:7.5.15-3.el9
0:7.5.15-3.el9
redhat/grafana-pcp<0:3.2.0-3.el9
0:3.2.0-3.el9
redhat/git-lfs<0:3.2.0-1.el9
0:3.2.0-1.el9
redhat/cri-o<0:1.24.3-6.rhaos4.11.gitc4567c0.el8
0:1.24.3-6.rhaos4.11.gitc4567c0.el8
redhat/cri-o<0:1.25.1-5.rhaos4.12.git6005903.el8
0:1.25.1-5.rhaos4.12.git6005903.el8
redhat/cri-tools<0:1.25.0-2.el8
0:1.25.0-2.el8
redhat/ignition<0:2.14.0-5.rhaos4.12.el8
0:2.14.0-5.rhaos4.12.el8
redhat/etcd<0:3.3.23-12.el8
0:3.3.23-12.el8
redhat/kubevirt<0:4.12.0-1057.el7
0:4.12.0-1057.el7
redhat/kubevirt<0:4.12.0-1057.el8
0:4.12.0-1057.el8
debian/golang-1.15<=1.15.15-1~deb11u4
debian/golang-1.19
1.19.8-2
Golang Go<1.17.12
Golang Go>=1.18.0<1.18.4
IBM Concert Software<=1.0.0 - 1.0.1
redhat/golang<1.18.4
1.18.4
redhat/golang<1.17.12
1.17.12
Microsoft cbl2 golang 1.18.5-1
Microsoft cm1 golang 1.18.5-1

Event History

Jul 12, 2022
CVE Published
12:00 AM
Jul 14, 2022
Data Sourced
via Red Hat·09:21 PM
DescriptionSeverityAffected Software
Aug 9, 2022
CVE Published
via MITRE·08:18 PM
Data Sourced
via MITRE·08:18 PM
DescriptionWeakness
Aug 10, 2022
Data Sourced
via NVD·08:15 PM
RemedyDescriptionSeverityAffected Software
Aug 16, 2022
Data Sourced
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverityWeakness
Oct 10, 2024
Data Sourced
via Ubuntu·01:15 PM
RemedyDescriptionSeverityAffected Software
Data Sourced
via Launchpad·01:16 PM
Description
Oct 21, 2024
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the vulnerability ID?

The vulnerability ID is CVE-2022-32148.

2

What is the severity of CVE-2022-32148?

The severity of CVE-2022-32148 is medium (6.5).

3

What software versions are affected by CVE-2022-32148?

CVE-2022-32148 affects versions before Go 1.17.12 and Go 1.18.4.

4

How can the vulnerability be exploited?

The vulnerability can be exploited by calling httputil.ReverseProxy.ServeHTTP with a Request.Header map containing a nil value for the X-Forwarded-For header.

5

Is there a fix available for CVE-2022-32148?

Yes, the fix for CVE-2022-32148 is available in Go 1.17.12 and Go 1.18.4.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203