Security features bypass in Go programming language - CVE-2022-32148

 

Security features bypass in Go programming language - CVE-2022-32148

Published: August 3, 2022


Vulnerability identifier: #VU66066
CSH Severity: Medium
CVSS v4 BT: 2.7 [CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:U/U:Green]
CVE-ID: CVE-2022-32148
CWE-ID: CWE-254
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

The vulnerability allows a remote attacker to bypass certain security restrictions.

The vulnerability exists due to unexpected behavior of httputil.ReverseProxy.ServeHTTP. When the method is 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.


Affected software

Go programming language
Gentoo Linux
Amazon Linux AMI
Oracle Linux
SUSE Linux Enterprise Server for SAP Applications 15
SUSE Linux Enterprise High Performance Computing 15
SUSE Linux Enterprise High Performance Computing ESPOS 15
SUSE Linux Enterprise High Performance Computing LTSS 15
SUSE Linux Enterprise Real Time 15
SUSE Linux Enterprise Server 15
SUSE Linux Enterprise Desktop 15
SUSE Manager Proxy
SUSE Manager Retail Branch Server
SUSE Manager Server
Fedora
SUSE Linux Enterprise Storage
SUSE Enterprise Storage
Red Hat Enterprise Linux for x86_64
Red Hat Enterprise Linux for ARM 64
Anolis OS
Red Hat Enterprise Linux for IBM z Systems
Red Hat Enterprise Linux for Power, little endian
Red Hat Enterprise Linux for x86_64 - Extended Update Support
Red Hat Enterprise Linux Server - AUS
Red Hat Enterprise Linux for IBM z Systems - Extended Update Support
Red Hat Enterprise Linux for Power, little endian - Extended Update Support
Red Hat Enterprise Linux Server - TUS
Red Hat Enterprise Linux for ARM 64 - Extended Update Support
Oracle Solaris
SUSE Linux Enterprise Server for SAP
SUSE Linux Enterprise Server
SUSE Linux Enterprise High Performance Computing
SUSE Linux Enterprise Desktop
SUSE Linux Enterprise Server 15 SP3 LTSS
SUSE Linux Enterprise Server for SAP Applications
SUSE Linux Enterprise Module for Development Tools
Development Tools Module
openSUSE Leap
Ubuntu
openEuler
Custom Metrics Autoscaler Operator for Red Hat OpenShift
Submariner
Gatekeeper Operator
VolSync
Red Hat Application Interconnect
IBM MQ Operator
IBM Spectrum Copy Data Management
Ansible Automation Platform
IBM Watson Assistant for IBM Cloud Pak for Data
OpenShift Logging
Red Hat Migration Toolkit for Applications
IBM Spectrum Protect Plus Container Backup and Restore for Kubernetes
IBM Spectrum Protect Plus Container Backup and Restore for OpenShift
Red Hat OpenStack for IBM Power
Red Hat OpenStack
Operations Dashboard
WebSphere Automation
IBM Cloud Pak for Multicloud Management Monitoring
Red Hat Advanced Cluster Management for Kubernetes
IBM Watson Discovery for IBM Cloud Pak for Data
App Connect Enterprise Certified Container
IBM Spectrum Protect Plus
IBM Robotic Process Automation
openshift-serverless-clients (Red Hat package)
go-toolset-1.17 (Red Hat package)
go-toolset-1.17-golang (Red Hat package)
Red Hat Enterprise Linux Server for Power LE - Update Services for SAP Solutions
golang-1.13-src (Ubuntu package)
golang-1.16-src (Ubuntu package)
golang-1.16-go (Ubuntu package)
golang-1.13-go (Ubuntu package)
golang-1.16 (Ubuntu package)
golang-1.13 (Ubuntu package)
toolbox-tests
toolbox
udica
containernetworking-plugins
golist
crun
fzf
runc
skupper-cli (Red Hat package)
slirp4netns
containers-common
oci-seccomp-bpf-hook
skopeo
skopeo-tests
fuse-overlayfs
delve
golang-devel
golang-help
golang
go-toolset
go-toolset (Red Hat package)
golang (Red Hat package)
golang-race
golang-tests
golang-bin
golang-docs
golang-misc
golang-src
go1.17
go1.17-race
go1.17-doc
golang-1.18-go (Ubuntu package)
golang-1.18-src (Ubuntu package)
golang-1.18 (Ubuntu package)
go1.18-doc
go1.18
go1.18-race
go1.18-openssl-doc
go1.18-openssl-race
go1.18-openssl
buildah-tests
buildah
cri-tools (Red Hat package)
cri-o (Red Hat package)
golang-github-cpuguy83-md2man
conmon
git-lfs (Red Hat package)
git-lfs
ignition (Red Hat package)
container-selinux
podman-tests
podman-remote
podman-plugins
podman-docker
podman-catatonit
podman
grafana-pcp (Red Hat package)
etcd (Red Hat package)
etcd
crit
criu
python3-criu
python-sushy (Red Hat package)
libslirp-devel
libslirp
openshift (Red Hat package)
kubevirt (Red Hat package)
grafana (Red Hat package)
grafana
grafana-debuginfo
cockpit-podman
Red Hat Developer Tools
OpenShift Developer Tools and Services
IBM CICS TX Standard
Secondary Scheduler Operator for Red Hat OpenShift (OSSO)
OpenShift API for Data Protection (OADP)
Migration Toolkit for Containers
Red Hat OpenShift Container Platform
OpenShift Serverless Client
QRadar Suite
Splunk Enterprise
Multicluster Engine for Kubernetes
OpenShift Service Mesh
Node Maintenance Operator
Red Hat OpenShift Serverless
OpenShift Virtualization
IBM Cloud Pak System
IBM Watson Machine Learning Accelerator
ObjectScale
Dell EMC Streaming Data Platform
Storage Ceph
Dell PowerProtect Cyber Recovery
watsonx.data
Cloud Pak for Data
Red Hat Ceph Storage

How to mitigate CVE-2022-32148

Install updates from vendor's website.

Go programming language - addressed in versions 1.17.12, 1.18.4
Submariner - update to 0.13.0
Gatekeeper Operator - update to 0.2
VolSync - update to 0.5.0
openshift-serverless-clients (Red Hat package) - update to 1.3.1-4.el8
Secondary Scheduler Operator for Red Hat OpenShift (OSSO) - update to 1.1.0
OpenShift API for Data Protection (OADP) - update to 1.0.4
IBM MQ Operator - addressed in versions 1.3.8, 2.0.3
Migration Toolkit for Containers - addressed in versions 1.7.6, 1.7.7, 1.7.8
QRadar Suite - update to 1.10.18.0
go-toolset-1.17 (Red Hat package) - update to 1.17.12-1.el7_9
go-toolset-1.17-golang (Red Hat package) - update to 1.17.12-1.el7_9
Multicluster Engine for Kubernetes - update to 2.1
IBM Spectrum Copy Data Management - update to 2.2.18
OpenShift Service Mesh - addressed in versions 2.3.1, 2.4.0
IBM Cloud Pak System - update to 2.3.3.6
IBM Watson Assistant for IBM Cloud Pak for Data - update to 4.7.0
Node Maintenance Operator - update to 4.11.1
Red Hat OpenShift Container Platform - addressed in versions 4.11.17, 4.12.0
OpenShift Logging - addressed in versions 5.4.5, 5.5.1
Red Hat Migration Toolkit for Applications - update to 6.1.0
Splunk Enterprise - addressed in versions 8.2.12, 9.0.6, 9.1.1
IBM Spectrum Protect Plus Container Backup and Restore for Kubernetes - update to 10.1.12.2
IBM Spectrum Protect Plus Container Backup and Restore for OpenShift - update to 10.1.12.2
Operations Dashboard - addressed in versions 2020.4.1-13, 2022.2.1-2
golang-1.13-src (Ubuntu package) - addressed in versions Ubuntu Pro, 1.13.8-1ubuntu1.2, 1.13.8-1ubuntu2.22.04.2
golang-1.16-src (Ubuntu package) - addressed in versions Ubuntu Pro, 1.16.2-0ubuntu1~20.04.1
golang-1.16-go (Ubuntu package) - addressed in versions Ubuntu Pro, 1.16.2-0ubuntu1~20.04.1
golang-1.13-go (Ubuntu package) - addressed in versions Ubuntu Pro, 1.13.8-1ubuntu1.2, 1.13.8-1ubuntu2.22.04.2
golang-1.16 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.16.2-0ubuntu1~20.04.1
golang-1.13 (Ubuntu package) - addressed in versions Ubuntu Pro, 1.13.8-1ubuntu1.2, 1.13.8-1ubuntu2.22.04.2
toolbox-tests - update to 0.0.99.3-1.0.1
toolbox - update to 0.0.99.3-1.0.1
udica - update to 0.2.4-1.0.1
containernetworking-plugins - update to 0.9.1-1.0.1
golist - update to 0.10.1-11
crun - update to 0.18-3.0.1
fzf - update to 0.29.0-2.fc35
runc - update to 1.0.0-73.rc95.0.1
skupper-cli (Red Hat package) - update to 1.0.2-2.el8
slirp4netns - update to 1.1.8-1.0.1
containers-common - addressed in versions 1-2, 1-4
oci-seccomp-bpf-hook - update to 1.2.0-3.0.1
containers-common - update to 1.2.4-2.0.1
skopeo - update to 1.2.4-2.0.1
skopeo-tests - update to 1.2.4-2.0.1
ObjectScale - update to 1.4.0
fuse-overlayfs - update to 1.4.0-2.0.1
WebSphere Automation - update to 1.5.2
Dell EMC Streaming Data Platform - update to 1.7.0
delve - update to 1.7.2-1
golang-devel - update to 1.15.7-14
golang-help - update to 1.15.7-14
golang - update to 1.15.7-14
go-toolset - update to 1.17.12-1
golang - update to 1.17.12-1.el7
go-toolset (Red Hat package) - update to 1.17.12-1.el9_0
golang (Red Hat package) - update to 1.17.12-1.el9_0
golang-race - update to 1.17.12-1.0.1
golang-tests - update to 1.17.12-1.0.1
golang-bin - update to 1.17.12-1.0.1
golang - update to 1.17.12-1.0.1
golang-docs - update to 1.17.12-1.0.1
golang-misc - update to 1.17.12-1.0.1
golang-src - update to 1.17.12-1.0.1
go1.17 - update to 1.17.13-150000.1.42.1
go1.17-race - update to 1.17.13-150000.1.42.1
go1.17-doc - update to 1.17.13-150000.1.42.1
golang-1.18-go (Ubuntu package) - addressed in versions 1.18.1-1ubuntu1.1, 1.18.1-1ubuntu1~18.04.4, 1.18.1-1ubuntu1~20.04.2
golang-1.18-src (Ubuntu package) - addressed in versions 1.18.1-1ubuntu1.1, 1.18.1-1ubuntu1~18.04.4, 1.18.1-1ubuntu1~20.04.2
golang-1.18 (Ubuntu package) - addressed in versions 1.18.1-1ubuntu1.1, 1.18.1-1ubuntu1~18.04.4, 1.18.1-1ubuntu1~20.04.2
go1.18-doc - update to 1.18.5-150000.1.25.1
go1.18 - update to 1.18.5-150000.1.25.1
go1.18-race - update to 1.18.5-150000.1.25.1
golang - addressed in versions 1.18.6-1.42, 1.19.3-2
go1.18-openssl-doc - update to 1.18.10.1-150000.1.9.1
go1.18-openssl-race - update to 1.18.10.1-150000.1.9.1
go1.18-openssl - update to 1.18.10.1-150000.1.9.1
buildah-tests - update to 1.19.9-6.0.1
buildah - update to 1.19.9-6.0.1
Red Hat OpenShift Serverless - update to 1.24.0
OpenShift Serverless Client - update to 1.24.0
cri-tools (Red Hat package) - update to 1.24.2-7.el8
cri-o (Red Hat package) - update to 1.24.3-6.rhaos4.11.gitc4567c0.el8
watsonx.data - update to 2.0.1
golang-github-cpuguy83-md2man - update to 2.0.2-22
conmon - update to 2.0.26-3.0.1
IBM Cloud Pak for Multicloud Management Monitoring - update to 2.3 Fix Pack 6
Red Hat Advanced Cluster Management for Kubernetes - update to 2.6.0
git-lfs (Red Hat package) - addressed in versions 2.13.3-3.el8_6, 3.2.0-1.el9
git-lfs - update to 2.13.3-3.0.1
ignition (Red Hat package) - update to 2.14.0-5.rhaos4.11.el8
container-selinux - update to 2.189.0-1.0.1
podman-tests - update to 3.0.1-15.0.1
podman-remote - update to 3.0.1-15.0.1
podman-plugins - update to 3.0.1-15.0.1
podman-docker - update to 3.0.1-15.0.1
podman-catatonit - update to 3.0.1-15.0.1
podman - update to 3.0.1-15.0.1
grafana-pcp (Red Hat package) - addressed in versions 3.2.0-2.el8, 3.2.0-3.el9
etcd (Red Hat package) - update to 3.3.23-12.el8ost
etcd - update to 3.4.14-11
crit - update to 3.15-1.0.1
criu - update to 3.15-1.0.1
python3-criu - update to 3.15-1.0.1
python-sushy (Red Hat package) - update to 4.1.3-0.20221107175431.1da4385.el8
libslirp-devel - update to 4.3.1-1.0.1
libslirp - update to 4.3.1-1.0.1
IBM Watson Discovery for IBM Cloud Pak for Data - update to 4.6.2
Cloud Pak for Data - update to 4.8.5
openshift (Red Hat package) - update to 4.11.0-202211091106.p0.g5658434.assembly.stream.el8
OpenShift Virtualization - update to 4.12.0
kubevirt (Red Hat package) - addressed in versions 4.12.0-1057.el7, 4.12.0-1057.el8
App Connect Enterprise Certified Container - addressed in versions 5.0.1, 6.0.0
Storage Ceph - update to 6.1
Red Hat Ceph Storage - update to 6.1
grafana (Red Hat package) - addressed in versions 7.5.15-3.el8, 7.5.15-3.el9
grafana - update to 7.5.15-6
grafana-debuginfo - update to 7.5.15-6
IBM Spectrum Protect Plus - update to 10.1.15
IBM CICS TX Standard - update to 11.1.0.0 ifix6
Dell PowerProtect Cyber Recovery - addressed in versions 19.14.0.2, 19.15.0.1
IBM Robotic Process Automation - update to 21.0.5
cockpit-podman - update to 29-2.0.1

External References

Related Security Bulletins