cve.bz

CVE-2022-32190 golang go: Path traversal

7.5 highEPSS 2.3%Fix available

High (7.5) in golang go. EPSS 2.3% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.19.1.

On this page
JoinPath and URL.JoinPath do not remove ../ path elements appended to a relative path. For example, JoinPath("https://go.dev", "../go") returns the URL "https://go.dev/../go", despite the JoinPath documentation stating that ../ path elements are removed from the result.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
EPSS
2.3% (unchanged from 2.3% a week ago; 2.2% 30 days ago) estimated probability of exploitation activity in the next 30 days; 84th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-22 Improper Limitation of a Pathname to a Restricted Directory (Path traversal)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-32190 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-32190?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-32190?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-32190 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library net/urlfrom 1.19.0-0 before 1.19.1

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2022-0988Gostdlib>=1.19.0-0 <1.19.11.19.1

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12golang-1.191.19.1-1DEBIAN-CVE-2022-32190
Red Hatcontainer_native_virtualization:4.13::el7kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.13.0-1469.el7RHSA-2023:3204
Red Hatcontainer_native_virtualization:4.13::el8kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.13.0-1469.el8RHSA-2023:3204
Red Hatcontainer_native_virtualization:4.13::el9kubevirt, kubevirt-virtctl, kubevirt-virtctl-redistributable0:4.13.0-1469.el9RHSA-2023:3204
Red Hatopenshift:4.12::el8ansible-runner, python3-ansible-runner0:1.4.6-2.el8arRHSA-2022:7398
Red Hatopenshift:4.12::el8ansible-runner-http0:1.0.0-2.el8arRHSA-2022:7398
Red Hatopenshift:4.12::el8atomic-openshift-service-idler0:4.12.0-202301312133.p0.ga0f9090.assembly.stream.el8RHBA-2023:0568
Red Hatopenshift:4.12::el8bootupd, rust-bootupd, bootupd-debuginfo and 1 more0:0.2.5-3.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8buildah, buildah-tests, buildah-debuginfo and 2 more1:1.23.4-3.rhaos4.12.el8RHBA-2023:0568
Red Hatopenshift:4.12::el8buildah, buildah-tests, buildah-debuginfo and 2 more1:1.23.4-5.1.rhaos4.12.el8RHSA-2023:3613
Red Hatopenshift:4.12::el8butane, butane-debuginfo, butane-debugsource and 1 more0:0.16.0-2.rhaos4.12.el8RHSA-2022:7398
Red Hatopenshift:4.12::el8conmon, conmon-debuginfo, conmon-debugsource2:2.1.2-4.rhaos4.12.el8RHSA-2023:3613
Red Hatopenshift:4.12::el8conmon-rs0:0.4.0-2.rhaos4.12.git.el8RHSA-2022:7398
222 more for Red Hat in the JSON and on Red Hat's page.
SUSELinux Enterprise Module for Development Tools 15 SP3, Linux Enterprise Module for Development Tools 15 SP4go1.191.19.1-150000.1.9.1SUSE-SU-2022:3326-1
openSUSELeap 15.3, Leap 15.4go1.191.19.1-150000.1.9.1SUSE-SU-2022:3326-1
openSUSETumbleweedgo1.191.19.1-1.1openSUSE-SU-2024:12310-1
Alpinev3.16go1.18.6-r0ALPINE-CVE-2022-32190
Alpinev3.17, v3.18, v3.19 and 5 morego1.19.1-r0ALPINE-CVE-2022-32190

From the distributions' data via OSV.dev: the Debian Security Tracker; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Moderate.

Red Hat's statement

The vulnerable functions, JoinPath and URL.JoinPath was introduced in upstream go1.19, whereas, RHEL ships go1.17 and go1.18 versions, which does not contain the vulnerable code. Hence, packages shipped with RHEL-8, RHEL-9 are not affected.

All Y stream releases of OpenShift Container Platform 4 run on RHEL-8 or RHEL-9, so OCP 4 is also not affected.

ProductPackageStateAdvisory
Migration Toolkit for Virtualization 2.4migration-toolkit-virtualization/mtv-controller-rhel9:2.4.3-5Fixed 2023-10-25RHBA-2023:6109
OADP-1.1-RHEL-8oadp/oadp-velero-rhel8:1.1.1-20Fixed 2022-11-28RHSA-2022:8634
OSSO-1.1-RHEL-8openshift-secondary-scheduler-operator/secondary-scheduler-operator-rhel8:v1.1-26Fixed 2023-05-18RHSA-2023:0584
Red Hat Ceph Storage 6.1rhceph/rhceph-6-dashboard-rhel9:6-75Fixed 2023-06-15RHSA-2023:3642
Red Hat Migration Toolkit for Containers 1.7rhmtc/openshift-velero-plugin-rhel8:v1.7.7-3Fixed 2023-02-09RHSA-2023:0693
Red Hat OpenShift Container Platform 4.12atomic-openshift-service-idler-0:4.12.0-202301312133.p0.ga0f9090.assembly.stream.el8Fixed 2023-02-08RHBA-2023:0568
Red Hat OpenShift Container Platform 4.12buildah-1:1.23.4-3.rhaos4.12.el8Fixed 2023-02-08RHBA-2023:0568
Red Hat OpenShift Container Platform 4.12containers-common-2:1-32.rhaos4.12.el8Fixed 2023-02-08RHBA-2023:0568
Red Hat OpenShift Container Platform 4.12kernel-0:4.18.0-372.43.1.el8_6Fixed 2023-02-08RHBA-2023:0568
Red Hat OpenShift Container Platform 4.12kernel-rt-0:4.18.0-372.41.1.rt7.198.el8_6Fixed 2023-02-08RHBA-2023:0568
Custom Metric Autoscaler operator for Red Hat Openshiftcustom-metrics-autoscaler/custom-metrics-autoscaler-rhel8Not affected
mirror registry for Red Hat OpenShiftmirror-registry-containerAffected
Node HealthCheck Operatorworkload-availability/node-healthcheck-rhel8-operatorAffected
Node Maintenance Operatorworkload-availability/node-maintenance-rhel8-operatorAffected
OpenShift Developer Tools and ServiceshelmFix deferred
OpenShift Developer Tools and ServicesodoAffected
OpenShift Pipelinesopenshift-pipelines-clientWill not fix
OpenShift Serverlessopenshift-serverless-1/client-kn-rhel8Will not fix
OpenShift Serverlessopenshift-serverless-clientsWill not fix
OpenShift Service Mesh 2openshift-golang-builder-containerNot affected
448 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2022-32190.

Attack patterns (CAPEC)

  • CAPEC-64 Using Slashes and URL Encoding Combined to Bypass Validation Logic Likelihood: High · Severity: High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-78 Using Escaped Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-79 Using Slashes in Alternate Encoding Likelihood: High · Severity: High
  • CAPEC-126 Path Traversal Likelihood: High · Severity: Very High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON