golang-1.19 — security advisory
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
- Products
- golang-1.19
- Affected versions
- Not specified
- Fixed versions
- 1.19.6-2
- CVEs
- CVE-2022-41722
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 30 Oct 2026, 15:21 UTC · Revision 1
Source evidence
A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as "a/../c:/b" into the valid path "c:\b". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path ".\c:\b".
osv:DEBIAN-CVE-2022-41722
golang-1.19
Fixed versions: 1.19.6-2
Complete source record
{
"id": "effd7b4e5201bcf9975f3d6b9cda52a3970310d6eaaa1d44c7a79f92b6a6676a",
"url": "https://osv.dev/vulnerability/DEBIAN-CVE-2022-41722",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "DEBIAN-CVE-2022-41722",
"summary": "A path traversal vulnerability exists in filepath.Clean on Windows. On Windows, the filepath.Clean function could transform an invalid path such as \"a/../c:/b\" into the valid path \"c:\\b\". This transformation of a relative (if invalid) path into an absolute path could enable a directory traversal attack. After fix, the filepath.Clean function transforms this path into the relative (but still invalid) path \".\\c:\\b\".",
"evidence": "osv:DEBIAN-CVE-2022-41722",
"products": [
{
"name": {
"value": "golang-1.19",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "1.19.6-2",
"evidence": "/affected/0/ranges"
}
],
"affected_versions": []
}
],
"severity": "high",
"structured": {
"id": "DEBIAN-CVE-2022-41722",
"aliases": [
"DEBIAN-CVE-2022-41722"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.19.6-2"
}
]
}
],
"package": {
"name": "golang-1.19",
"purl": "pkg:deb/debian/golang-1.19?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2022-41722.json"
},
"ecosystem_specific": {
"urgency": "unimportant"
}
}
],
"modified": "2026-10-15T08:02:53.979798306Z",
"provider": "osv",
"upstream": [
"CVE-2022-41722"
],
"references": [
"https://security-tracker.debian.org/tracker/CVE-2022-41722"
]
},
"related_cves": [
{
"value": "CVE-2022-41722",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 324531,
"published_at": "2023-02-28T18:15:09.887+00:00"
}