Bug 1203186 (CVE-2022-32190) - VUL-0: CVE-2022-32190: go1.19: net/url: JoinPath does not strip relative path components in all circumstances
Summary: VUL-0: CVE-2022-32190: go1.19: net/url: JoinPath does not strip relative path...
Status: RESOLVED FIXED
Alias: CVE-2022-32190
Product: SUSE Security Incidents
Classification: Novell Products
Component: Incidents (show other bugs)
Version: unspecified
Hardware: Other Other
: P3 - Medium : Normal
Target Milestone: ---
Assignee: Security Team bot
QA Contact: Security Team bot
URL: https://smash.suse.de/issue/341667/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-09-06 23:24 UTC by Jeff Kowalczyk
Modified: 2024-04-19 14:05 UTC (History)
3 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeff Kowalczyk 2022-09-06 23:24:10 UTC
JoinPath and URL.JoinPath would not remove ../ path components appended to a relative path. For example, JoinPath("https://go.dev", "../go") returned the URL https://go.dev/../go, despite the JoinPath documentation stating that ../ path elements are cleaned from the result.

Thanks to @q0jt for reporting this issue.

This is CVE-2022-32190 and Go issue https://go.dev/issue/54385.

net/url JoinPath() is new in go1.19. go1.18 and earlier are not affected.
Comment 1 OBSbugzilla Bot 2022-09-07 01:50:06 UTC
This is an autogenerated message for OBS integration:
This bug (1203186) was mentioned in
https://build.opensuse.org/request/show/1001534 Factory / go1.19
Comment 3 Swamp Workflow Management 2022-09-21 16:24:58 UTC
SUSE-SU-2022:3326-1: An update that solves two vulnerabilities and has one errata is now available.

Category: security (important)
Bug References: 1200441,1203185,1203186
CVE References: CVE-2022-27664,CVE-2022-32190
JIRA References: 
Sources used:
openSUSE Leap 15.4 (src):    go1.19-1.19.1-150000.1.9.1
openSUSE Leap 15.3 (src):    go1.19-1.19.1-150000.1.9.1
SUSE Linux Enterprise Module for Development Tools 15-SP4 (src):    go1.19-1.19.1-150000.1.9.1
SUSE Linux Enterprise Module for Development Tools 15-SP3 (src):    go1.19-1.19.1-150000.1.9.1

NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
Comment 7 Robert Frohl 2024-04-19 14:05:18 UTC
done