CVEfocus › CVE database › CVE-2022-32148

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

CVSS 6.5 MediumEPSS 1.2% (higher than 68% of CVEs)Published 2022-08-09Updated 2026-03-06Assigner: Go

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat, Rocky Linux, Ubuntu: see the table below for the fixed version per release.

Ubuntu has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

157Fixed
3Fix pending
23Will not fix
1Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 22.04golang-1.13Fixed1.13.8-1ubuntu2.22.04.2UBUNTU-CVE-2022-32148
Ubuntu 22.04golang-1.18Fixed1.18.1-1ubuntu1.1UBUNTU-CVE-2022-32148
Ubuntu 20.04golang-1.13Fixed1.13.8-1ubuntu1.2UBUNTU-CVE-2022-32148
Ubuntu 20.04golang-1.16Fixed1.16.2-0ubuntu1~20.04.1UBUNTU-CVE-2022-32148
Ubuntu 20.04golang-1.18Fixed1.18.1-1ubuntu1~20.04.2UBUNTU-CVE-2022-32148
Ubuntu 18.04golang-1.13Fix pending1.13.8-1ubuntu1~18.04.4+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-32148
Ubuntu 18.04golang-1.16Fix pending1.16.2-0ubuntu1~18.04.2+esm1 (Ubuntu Pro)UBUNTU-CVE-2022-32148
Ubuntu 18.04golang-1.18Fixed1.18.1-1ubuntu1~18.04.4UBUNTU-CVE-2022-32148
Ubuntu 16.04golang-1.13Fix pending1.13.8-1ubuntu1~16.04.3+esm3 (Ubuntu Pro)UBUNTU-CVE-2022-32148
Debian 12golang-1.19Fixed1.19~rc1-1DEBIAN-CVE-2022-32148
Red Hat Enterprise Linux 9buildahWill not fix
Will not fix
Red Hat Enterprise Linux 9buildah-testsWill not fix
Will not fix
Red Hat Enterprise Linux 9conmonNot affected
Red Hat Enterprise Linux 9git-lfsFixed0:3.2.0-1.el9RHSA-2023:2357
Red Hat Enterprise Linux 9go-toolsetFixed
Affected
0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golangFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-binFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-docsFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-miscFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-raceFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-srcFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9golang-testsFixed0:1.17.12-1.el9_0RHSA-2022:5799
Red Hat Enterprise Linux 9grafanaFixed0:7.5.15-3.el9RHSA-2022:8057
Red Hat Enterprise Linux 9grafana-pcpFixed0:3.2.0-3.el9RHSA-2022:8250
Red Hat Enterprise Linux 9ignitionWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-edgeWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-grubWill not fix
Will not fix
Red Hat Enterprise Linux 9ignition-validateWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 9osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 9podmanWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-catatonitWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-dockerWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-gvproxyWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-pluginsWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-remoteWill not fix
Will not fix
Red Hat Enterprise Linux 9podman-testsWill not fix
Will not fix
Red Hat Enterprise Linux 9skopeoWill not fix
Will not fix
Red Hat Enterprise Linux 9skopeo-testsWill not fix
Will not fix
Red Hat Enterprise Linux 8aardvark-dnsFixed2:1.5.0-2.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8buildahFixed0:1.19.9-6.module+el8.7.0+16212+65e1b35fRHSA-2023:2802
Red Hat Enterprise Linux 8buildah-testsFixed0:1.19.9-6.module+el8.7.0+16212+65e1b35fRHSA-2023:2758
Red Hat Enterprise Linux 8cockpit-podmanFixed0:46-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8conmonFixed2:2.0.26-3.module+el8.7.0+16212+65e1b35fRHSA-2023:2758
Red Hat Enterprise Linux 8container-selinuxFixed2:2.189.0-1.module+el8.7.0+16212+65e1b35fRHSA-2023:2802
Red Hat Enterprise Linux 8containernetworking-pluginsFixed0:0.9.1-1.module+el8.7.0+16212+65e1b35fRHSA-2023:2758
Red Hat Enterprise Linux 8containers-commonFixed2:1-63.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8critFixed0:3.15-3.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8criuFixed0:3.15-1.module+el8.7.0+16212+65e1b35fRHSA-2023:2802
Red Hat Enterprise Linux 8criu-develFixed0:3.15-3.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8criu-libsFixed0:3.15-3.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8crunFixed0:1.8.1-2.module+el8.8.0+18418+f0e540feRHSA-2022:7529
Red Hat Enterprise Linux 8delveFixed0:1.7.2-1.module+el8.6.0+12972+ebab5911RHSA-2022:5775
Red Hat Enterprise Linux 8fuse-overlayfsFixed0:1.10-1.module+el8.8.0+18060+3f21f2ccRHSA-2022:7529
Red Hat Enterprise Linux 8git-lfsFixed0:2.13.3-3.el8_6RHSA-2022:7129
Red Hat Enterprise Linux 8go-toolsetFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golangFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-binFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-docsFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-miscFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-raceFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-srcFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8golang-testsFixed0:1.17.12-1.module+el8.6.0+16014+a372c00bRHSA-2022:5775
Red Hat Enterprise Linux 8grafanaFixed0:7.5.15-3.el8RHSA-2022:7519
Red Hat Enterprise Linux 8grafana-pcpFixed0:3.2.0-2.el8RHSA-2022:7648
Red Hat Enterprise Linux 8libslirpFixed0:4.4.0-1.module+el8.8.0+17821+de1b53f1RHSA-2022:7529
Red Hat Enterprise Linux 8libslirp-develFixed0:4.4.0-1.module+el8.8.0+17821+de1b53f1RHSA-2022:7529
Red Hat Enterprise Linux 8netavarkFixed2:1.5.0-4.module+el8.8.0+18060+3f21f2ccRHSA-2023:2802
Red Hat Enterprise Linux 8oci-seccomp-bpf-hookFixed0:1.2.8-1.module+el8.8.0+18060+3f21f2ccRHSA-2022:7529
Red Hat Enterprise Linux 8osbuild-composerWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-coreWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-dnf-jsonWill not fix
Will not fix
Red Hat Enterprise Linux 8osbuild-composer-workerWill not fix
Will not fix
Red Hat Enterprise Linux 8podmanFixed2:4.0.2-20.module+el8.8.0+18201+6ad7332cRHSA-2023:2758
Red Hat Enterprise Linux 8podman-catatonitFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-dockerFixed0:3.0.1-13.module+el8.7.0+16212+65e1b35fRHSA-2023:2758
Red Hat Enterprise Linux 8podman-gvproxyFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-pluginsFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8podman-remoteFixed2:4.0.2-20.module+el8.8.0+18201+6ad7332cRHSA-2022:7529
Red Hat Enterprise Linux 8podman-testsFixed3:4.4.1-8.module+el8.8.0+18438+15d3aa65RHSA-2023:2802
Red Hat Enterprise Linux 8python-podmanFixed0:4.0.0-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8python3-criuFixed0:3.15-3.module+el8.8.0+18060+3f21f2ccRHSA-2022:7529
Red Hat Enterprise Linux 8python3-podmanFixed0:4.0.0-1.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
Red Hat Enterprise Linux 8runcFixed1:1.1.4-1.module+el8.8.0+18060+3f21f2ccRHSA-2022:7529
Red Hat Enterprise Linux 8skopeoFixed2:1.11.2-0.2.module+el8.8.0+18251+ad5b274cRHSA-2023:2802
Red Hat Enterprise Linux 8skopeo-testsFixed2:1.6.2-6.module+el8.8.0+17821+de1b53f1RHSA-2022:7529
Red Hat Enterprise Linux 8slirp4netnsFixed0:1.1.8-1.module+el8.7.0+16212+65e1b35fRHSA-2023:2758
Red Hat Enterprise Linux 8toolboxFixed0:0.0.99.3-7.module+el8.8.0+18119+e3deee03RHSA-2022:7529
Red Hat Enterprise Linux 8toolbox-testsFixed0:0.0.99.3-7.module+el8.8.0+18115+45021590RHSA-2023:2758
Red Hat Enterprise Linux 8udicaFixed0:0.2.6-3.module+el8.8.0+17821+de1b53f1RHSA-2023:2758
AlmaLinux 9git-lfsFixed3.2.0-1.el9ALSA-2023:2357
AlmaLinux 9golangFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-binFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-docsFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-miscFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-raceFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-srcFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9golang-testsFixed1.17.12-1.el9_0ALSA-2022:5799
AlmaLinux 9grafanaFixed7.5.15-3.el9ALSA-2022:8057
AlmaLinux 9grafana-pcpFixed3.2.0-3.el9ALSA-2022:8250
AlmaLinux 8aardvark-dnsFixed2:1.0.1-37.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8buildahFixed1:1.24.6-5.module_el8.8.0+3468+16b86c82ALSA-2022:7529
AlmaLinux 8buildah-testsFixed1:1.24.6-5.module_el8.8.0+3468+16b86c82ALSA-2022:7529
AlmaLinux 8cockpit-podmanFixed46-1.module_el8.7.0+3344+5bcd850fALSA-2023:2758
AlmaLinux 8conmonFixed2:2.0.26-3.module_el8.7.0+3297+1eb250cfALSA-2023:2758
AlmaLinux 8container-selinuxFixed2:2.189.0-1.module_el8.7.0+3406+a17c4180ALSA-2023:2802
AlmaLinux 8containernetworking-pluginsFixed0.9.1-1.module_el8.6.0+2876+9ed4eae2ALSA-2023:2802
AlmaLinux 8containers-commonFixed2:1-63.module_el8.8.0+3568+e8578284ALSA-2022:7529
AlmaLinux 8critFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux 8criuFixed3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2022:7529
AlmaLinux 8criu-develFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2758
AlmaLinux 8criu-libsFixed3.15-3.module_el8.7.0+3407+95aa0ca9ALSA-2023:2802
AlmaLinux 8crunFixed0.18-3.module_el8.6.0+3136+bfcd65b6ALSA-2023:2802
AlmaLinux 8delveFixed1.7.2-1.module_el8.6.0+2736+ec10aba8ALSA-2022:5775
AlmaLinux 8fuse-overlayfsFixed1.9-1.module_el8.7.0+3344+5bcd850fALSA-2023:2758
AlmaLinux 8git-lfsFixed2.13.3-3.el8_6ALSA-2022:7129
AlmaLinux 8go-toolsetFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golangFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-binFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-docsFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-miscFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-raceFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-srcFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8golang-testsFixed1.17.12-1.module_el8.6.0+3065+e17ed2d4ALSA-2022:5775
AlmaLinux 8grafanaFixed7.5.15-3.el8ALSA-2022:7519
AlmaLinux 8grafana-pcpFixed3.2.0-2.el8ALSA-2022:7648
AlmaLinux 8libslirpFixed4.3.1-1.module_el8.6.0+3136+bfcd65b6ALSA-2023:2802
AlmaLinux 8libslirp-develFixed4.3.1-1.module_el8.6.0+3136+bfcd65b6ALSA-2022:7529
AlmaLinux 8netavarkFixed2:1.5.0-4.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8oci-seccomp-bpf-hookFixed1.2.8-1.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8podmanFixed2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2022:7529
AlmaLinux 8podman-catatonitFixed2:4.0.2-20.module_el8.8.0+3468+16b86c82ALSA-2022:7529
AlmaLinux 8podman-dockerFixed3.0.1-13.module_el8.7.0+3297+1eb250cfALSA-2023:2758
AlmaLinux 8podman-gvproxyFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2023:2802
AlmaLinux 8podman-pluginsFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2022:7529
AlmaLinux 8podman-remoteFixed3.0.1-13.module_el8.7.0+3297+1eb250cfALSA-2023:2758
AlmaLinux 8podman-testsFixed3:4.4.1-8.module_el8.8.0+3568+e8578284ALSA-2022:7529
AlmaLinux 8python3-criuFixed3.15-3.module_el8.6.0+2877+8e437bf5ALSA-2023:2802
AlmaLinux 8python3-podmanFixed4.4.1-1.module_el8.8.0+3470+252b1910ALSA-2023:2802
AlmaLinux 8runcFixed1.0.0-73.rc95.module_el8.6.0+3136+bfcd65b6ALSA-2023:2802
AlmaLinux 8skopeoFixed1:1.2.4-2.module_el8.7.0+3297+1eb250cfALSA-2023:2802
AlmaLinux 8skopeo-testsFixed2:1.6.2-6.module_el8.8.0+3468+16b86c82ALSA-2023:2758
AlmaLinux 8slirp4netnsFixed1.1.8-1.module_el8.6.0+3136+bfcd65b6ALSA-2022:7529
AlmaLinux 8toolboxFixed0.0.99.3-7.module_el8.8.0+3470+252b1910ALSA-2022:7529
AlmaLinux 8toolbox-testsFixed0.0.99.3-1.module_el8.6.0+3136+bfcd65b6ALSA-2023:2758
AlmaLinux 8udicaFixed0.2.6-3.module_el8.6.0+2886+d33c3efbALSA-2022:7529
Rocky Linux 9go-toolsetFixed0:1.17.12-1.el9_0RLSA-2022:5799
Rocky Linux 9golangFixed0:1.17.12-1.el9_0RLSA-2022:5799
Rocky Linux 9grafanaFixed0:7.5.15-3.el9RLSA-2022:8057
Rocky Linux 9grafana-pcpFixed0:3.2.0-3.el9RLSA-2022:8250
Rocky Linux 8buildahFixed0:1.19.9-6.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux 8cockpit-podmanFixed0:29-2.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux 8conmonFixed2:2.0.26-3.module+el8.4.0+556+40122d08RLSA-2022:7529
Rocky Linux 8container-selinuxFixed2:2.189.0-1.module+el8.6.0+1054+50b00ff4RLSA-2022:7529
Rocky Linux 8containernetworking-pluginsFixed0:0.9.1-1.module+el8.5.0+709+440d5e7eRLSA-2022:7529
Rocky Linux 8criuFixed0:3.15-1.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux 8crunFixed0:0.18-3.module+el8.6.0+783+10209741RLSA-2022:7529
Rocky Linux 8delveFixed0:1.7.2-1.module+el8.6.0+824+8e984c20RLSA-2022:5775
Rocky Linux 8fuse-overlayfsFixed0:1.4.0-2.module+el8.5.0+709+440d5e7eRLSA-2022:7529
Rocky Linux 8git-lfsFixed0:2.13.3-3.el8_6RLSA-2022:7129
Rocky Linux 8go-toolsetFixed0:1.17.12-1.module+el8.6.0+993+4fde2340RLSA-2022:5775
Rocky Linux 8golangFixed0:1.17.12-1.module+el8.6.0+993+4fde2340RLSA-2022:5775
Rocky Linux 8grafanaFixed0:7.5.15-3.el8RLSA-2022:7519
Rocky Linux 8grafana-pcpFixed0:3.2.0-2.el8RLSA-2022:7648
Rocky Linux 8libslirpFixed0:4.4.0-1.module+el8.9.0+1445+07728297RLSA-2022:7529
Rocky Linux 8oci-seccomp-bpf-hookFixed0:1.2.0-3.module+el8.7.0+1076+9b1c11c1RLSA-2023:2802
Rocky Linux 8podmanFixed0:3.0.1-13.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux 8runcFixed0:1.0.0-73.rc95.module+el8.5.0+769+55ca48e8RLSA-2022:7529
Rocky Linux 8skopeoFixed1:1.2.4-2.module+el8.7.0+1076+9b1c11c1RLSA-2022:7529
Rocky Linux 8slirp4netnsFixed0:1.1.8-1.module+el8.5.0+709+440d5e7eRLSA-2022:7529
Rocky Linux 8toolboxFixed0:0.0.99.3-1.module+el8.5.0+734+8397cf81RLSA-2022:7529
Rocky Linux 8udicaFixed0:0.2.4-1.module+el8.4.0+556+40122d08RLSA-2022:7529
Alpine Linux 3.24goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.23goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.22goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.21goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.20goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.19goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.18goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.17goFixed1.18.4-r0ALPINE-CVE-2022-32148
Alpine Linux 3.16goFixed1.18.4-r0ALPINE-CVE-2022-32148
Go librarystdlibFixed1.17.12GO-2022-0520

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.