Search

Find a vulnerability

Search criteria Use this form to refine search results.
Full-text search supports keyword queries with ranking and filtering.
You can combine vendor, product, and sources to narrow results.
Enable “Apply ordering” to sort by date instead of relevance.

    12 vulnerabilities found for path/filepath by Go standard library

    CVE-2024-8244 (GCVE-0-2024-8244)

    Vulnerability from cvelistv5 – Published: 2025-08-06 15:32 – Updated: 2025-11-03 19:47
    VLAI
    Title
    Walk/WalkDir in path/filepath susceptible to symlink race
    Summary
    The filepath.Walk and filepath.WalkDir functions are documented as not following symbolic links, but both functions are susceptible to a TOCTOU (time of check/time of use) race condition where a portion of the path being walked is replaced with a symbolic link while the walk is in progress.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition
    Assigner
    Go
    Impacted products
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "HIGH",
                  "attackVector": "NETWORK",
                  "availabilityImpact": "NONE",
                  "baseScore": 3.7,
                  "baseSeverity": "LOW",
                  "confidentialityImpact": "LOW",
                  "integrityImpact": "NONE",
                  "privilegesRequired": "NONE",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-8244",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-11-03T19:47:22.354639Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-11-03T19:47:26.652Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "affected",
              "packageName": "path/filepath",
              "product": "path/filepath",
              "vendor": "Go standard library"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "The filepath.Walk and filepath.WalkDir functions are documented as not following symbolic links, but both functions are susceptible to a TOCTOU (time of check/time of use) race condition where a portion of the path being walked is replaced with a symbolic link while the walk is in progress."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2025-08-06T15:32:27.357Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/70007"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2025-9999"
            }
          ],
          "title": "Walk/WalkDir in path/filepath susceptible to symlink race"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2024-8244",
        "datePublished": "2025-08-06T15:32:27.357Z",
        "dateReserved": "2024-08-27T19:41:45.564Z",
        "dateUpdated": "2025-11-03T19:47:26.652Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2023-45284 (GCVE-0-2023-45284)

    Vulnerability from cvelistv5 – Published: 2023-11-09 16:30 – Updated: 2024-09-03 19:00
    VLAI
    Title
    Incorrect detection of reserved device names on Windows in path/filepath
    Summary
    On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as "COM1 ", and reserved names "COM" and "LPT" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now correctly reports these names as non-local.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-41 - Improper Resolution of Path Equivalence
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
    Create a notification for this product.
    golang go Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
        cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-02T20:21:15.204Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/63713"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/540277"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2023-2186"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "affected": [
              {
                "cpes": [
                  "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "product": "go",
                "vendor": "golang",
                "versions": [
                  {
                    "lessThan": "1.20.11",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "1.21.4",
                    "status": "affected",
                    "version": "1.21.0-0",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "LOW",
                  "attackVector": "NETWORK",
                  "availabilityImpact": "NONE",
                  "baseScore": 5.3,
                  "baseSeverity": "MEDIUM",
                  "confidentialityImpact": "NONE",
                  "integrityImpact": "LOW",
                  "privilegesRequired": "NONE",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2023-45284",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-09-03T18:55:41.107810Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-09-03T19:00:47.531Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "IsLocal"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.4",
                  "status": "affected",
                  "version": "1.21.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as \"COM1 \", and reserved names \"COM\" and \"LPT\" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now correctly reports these names as non-local."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-41: Improper Resolution of Path Equivalence",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-11-09T16:30:15.250Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/63713"
            },
            {
              "url": "https://go.dev/cl/540277"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2023-2186"
            }
          ],
          "title": "Incorrect detection of reserved device names on Windows in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2023-45284",
        "datePublished": "2023-11-09T16:30:15.250Z",
        "dateReserved": "2023-10-06T17:06:26.220Z",
        "dateUpdated": "2024-09-03T19:00:47.531Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2023-45283 (GCVE-0-2023-45283)

    Vulnerability from cvelistv5 – Published: 2023-11-09 16:30 – Updated: 2025-02-13 17:13
    VLAI
    Title
    Insecure parsing of Windows paths with a \??\ prefix in path/filepath
    Summary
    The filepath package does not recognize paths with a \??\ prefix as special. On Windows, a path beginning with \??\ is a Root Local Device path equivalent to a path beginning with \\?\. Paths with a \??\ prefix may be used to access arbitrary locations on the system. For example, the path \??\c:\x is equivalent to the more common path c:\x. Before fix, Clean could convert a rooted path such as \a\..\??\b into the root local device path \??\b. Clean will now convert this to .\??\b. Similarly, Join(\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \??\b. Join will now convert this to \.\??\b. In addition, with fix, IsAbs now correctly reports paths beginning with \??\ as absolute, and VolumeName correctly reports the \??\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \?, resulting in filepath.Clean(\?\c:) returning \?\c: rather than \?\c:\ (among other effects). The previous behavior has been restored.
    Severity
    No CVSS data available.
    CWE
    • CWE-41 - Improper Resolution of Path Equivalence
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
    Create a notification for this product.
    Go standard library internal/safefilepath Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
    Create a notification for this product.
    Go standard library path/filepath Affected: 1.20.11 , < 1.20.12 (semver)
    Affected: 1.21.4 , < 1.21.5 (semver)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-02T20:21:15.278Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/63713"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/540277"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/64028"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/541175"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2023-2185"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "http://www.openwall.com/lists/oss-security/2023/12/05/2"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://security.netapp.com/advisory/ntap-20231214-0008/"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Clean"
                },
                {
                  "name": "volumeNameLen"
                },
                {
                  "name": "join"
                },
                {
                  "name": "Abs"
                },
                {
                  "name": "Base"
                },
                {
                  "name": "Dir"
                },
                {
                  "name": "EvalSymlinks"
                },
                {
                  "name": "Glob"
                },
                {
                  "name": "IsLocal"
                },
                {
                  "name": "Join"
                },
                {
                  "name": "Rel"
                },
                {
                  "name": "Split"
                },
                {
                  "name": "VolumeName"
                },
                {
                  "name": "Walk"
                },
                {
                  "name": "WalkDir"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.4",
                  "status": "affected",
                  "version": "1.21.0-0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "internal/safefilepath",
              "platforms": [
                "windows"
              ],
              "product": "internal/safefilepath",
              "programRoutines": [
                {
                  "name": "fromFS"
                },
                {
                  "name": "FromFS"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.4",
                  "status": "affected",
                  "version": "1.21.0-0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "volumeNameLen"
                },
                {
                  "name": "Abs"
                },
                {
                  "name": "Base"
                },
                {
                  "name": "Clean"
                },
                {
                  "name": "Dir"
                },
                {
                  "name": "EvalSymlinks"
                },
                {
                  "name": "Glob"
                },
                {
                  "name": "IsLocal"
                },
                {
                  "name": "Join"
                },
                {
                  "name": "Rel"
                },
                {
                  "name": "Split"
                },
                {
                  "name": "VolumeName"
                },
                {
                  "name": "Walk"
                },
                {
                  "name": "WalkDir"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.12",
                  "status": "affected",
                  "version": "1.20.11",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.5",
                  "status": "affected",
                  "version": "1.21.4",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "The filepath package does not recognize paths with a \\??\\ prefix as special. On Windows, a path beginning with \\??\\ is a Root Local Device path equivalent to a path beginning with \\\\?\\. Paths with a \\??\\ prefix may be used to access arbitrary locations on the system. For example, the path \\??\\c:\\x is equivalent to the more common path c:\\x. Before fix, Clean could convert a rooted path such as \\a\\..\\??\\b into the root local device path \\??\\b. Clean will now convert this to .\\??\\b. Similarly, Join(\\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \\??\\b. Join will now convert this to \\.\\??\\b. In addition, with fix, IsAbs now correctly reports paths beginning with \\??\\ as absolute, and VolumeName correctly reports the \\??\\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \\?, resulting in filepath.Clean(\\?\\c:) returning \\?\\c: rather than \\?\\c:\\ (among other effects). The previous behavior has been restored."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-41: Improper Resolution of Path Equivalence",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-12-14T10:06:32.436Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/63713"
            },
            {
              "url": "https://go.dev/cl/540277"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
            },
            {
              "url": "https://go.dev/issue/64028"
            },
            {
              "url": "https://go.dev/cl/541175"
            },
            {
              "url": "https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2023-2185"
            },
            {
              "url": "http://www.openwall.com/lists/oss-security/2023/12/05/2"
            },
            {
              "url": "https://security.netapp.com/advisory/ntap-20231214-0008/"
            }
          ],
          "title": "Insecure parsing of Windows paths with a \\??\\ prefix in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2023-45283",
        "datePublished": "2023-11-09T16:30:12.395Z",
        "dateReserved": "2023-10-06T17:06:26.220Z",
        "dateUpdated": "2025-02-13T17:13:59.471Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-41722 (GCVE-0-2022-41722)

    Vulnerability from cvelistv5 – Published: 2023-02-28 17:19 – Updated: 2025-03-07 17:58
    VLAI
    Title
    Path traversal on Windows in path/filepath
    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".
    Severity
    No CVSS data available.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal")
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.19.6 (semver)
    Affected: 1.20.0-0 , < 1.20.1 (semver)
    Create a notification for this product.
    Credits
    RyotaK (https://ryotak.net)
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T12:49:43.602Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/57274"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/468123"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2023-1568"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2022-41722",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-03-07T17:58:38.218567Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-03-07T17:58:57.055Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Clean"
                },
                {
                  "name": "Abs"
                },
                {
                  "name": "Dir"
                },
                {
                  "name": "EvalSymlinks"
                },
                {
                  "name": "Glob"
                },
                {
                  "name": "IsLocal"
                },
                {
                  "name": "Join"
                },
                {
                  "name": "Rel"
                },
                {
                  "name": "Walk"
                },
                {
                  "name": "WalkDir"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.19.6",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.20.1",
                  "status": "affected",
                  "version": "1.20.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "RyotaK (https://ryotak.net)"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\"."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-22: Improper Limitation of a Pathname to a Restricted\nDirectory (\"Path Traversal\")\n",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-06-12T19:05:50.152Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/57274"
            },
            {
              "url": "https://go.dev/cl/468123"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2023-1568"
            }
          ],
          "title": "Path traversal on Windows in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-41722",
        "datePublished": "2023-02-28T17:19:41.324Z",
        "dateReserved": "2022-09-28T17:00:06.610Z",
        "dateUpdated": "2025-03-07T17:58:57.055Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-30632 (GCVE-0-2022-30632)

    Vulnerability from cvelistv5 – Published: 2022-08-09 20:15 – Updated: 2024-08-03 06:56
    VLAI
    Title
    Stack exhaustion on crafted paths in path/filepath
    Summary
    Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators.
    Severity
    No CVSS data available.
    CWE
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.17.12 (semver)
    Affected: 1.18.0-0 , < 1.18.4 (semver)
    Create a notification for this product.
    Credits
    Juho Nurminen of Mattermost
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T06:56:13.251Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/417066"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.googlesource.com/go/+/ac68c6c683409f98250d34ad282b9e1b0c9095ef"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/53416"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2022-0522"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Glob"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.17.12",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.18.4",
                  "status": "affected",
                  "version": "1.18.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Juho Nurminen of Mattermost"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-674: Uncontrolled Recursion",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-06-12T19:04:36.688Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/cl/417066"
            },
            {
              "url": "https://go.googlesource.com/go/+/ac68c6c683409f98250d34ad282b9e1b0c9095ef"
            },
            {
              "url": "https://go.dev/issue/53416"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2022-0522"
            }
          ],
          "title": "Stack exhaustion on crafted paths in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-30632",
        "datePublished": "2022-08-09T20:15:37.000Z",
        "dateReserved": "2022-05-12T00:00:00.000Z",
        "dateUpdated": "2024-08-03T06:56:13.251Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-29804 (GCVE-0-2022-29804)

    Vulnerability from cvelistv5 – Published: 2022-08-09 00:00 – Updated: 2024-08-03 06:33
    VLAI
    Title
    Path traversal via Clean on Windows in path/filepath
    Summary
    Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.
    Severity
    No CVSS data available.
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.17.11 (semver)
    Affected: 1.18.0-0 , < 1.18.3 (semver)
    Create a notification for this product.
    Credits
    Unrud
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T06:33:42.804Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/401595"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/52476"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2022-0533"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Clean"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.17.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.18.3",
                  "status": "affected",
                  "version": "1.18.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Unrud"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-01-04T18:08:46.071Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/cl/401595"
            },
            {
              "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"
            },
            {
              "url": "https://go.dev/issue/52476"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2022-0533"
            }
          ],
          "title": "Path traversal via Clean on Windows in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-29804",
        "datePublished": "2022-08-09T00:00:00.000Z",
        "dateReserved": "2022-04-26T00:00:00.000Z",
        "dateUpdated": "2024-08-03T06:33:42.804Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2024-8244 (GCVE-0-2024-8244)

    Vulnerability from nvd – Published: 2025-08-06 15:32 – Updated: 2025-11-03 19:47
    VLAI
    Title
    Walk/WalkDir in path/filepath susceptible to symlink race
    Summary
    The filepath.Walk and filepath.WalkDir functions are documented as not following symbolic links, but both functions are susceptible to a TOCTOU (time of check/time of use) race condition where a portion of the path being walked is replaced with a symbolic link while the walk is in progress.
    SSVC
    Exploitation: none Automatable: no Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-367 - Time-of-check Time-of-use (TOCTOU) Race Condition
    Assigner
    Go
    Impacted products
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "HIGH",
                  "attackVector": "NETWORK",
                  "availabilityImpact": "NONE",
                  "baseScore": 3.7,
                  "baseSeverity": "LOW",
                  "confidentialityImpact": "LOW",
                  "integrityImpact": "NONE",
                  "privilegesRequired": "NONE",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2024-8244",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "no"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-11-03T19:47:22.354639Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-11-03T19:47:26.652Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "affected",
              "packageName": "path/filepath",
              "product": "path/filepath",
              "vendor": "Go standard library"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "The filepath.Walk and filepath.WalkDir functions are documented as not following symbolic links, but both functions are susceptible to a TOCTOU (time of check/time of use) race condition where a portion of the path being walked is replaced with a symbolic link while the walk is in progress."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-367: Time-of-check Time-of-use (TOCTOU) Race Condition",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2025-08-06T15:32:27.357Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/70007"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2025-9999"
            }
          ],
          "title": "Walk/WalkDir in path/filepath susceptible to symlink race"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2024-8244",
        "datePublished": "2025-08-06T15:32:27.357Z",
        "dateReserved": "2024-08-27T19:41:45.564Z",
        "dateUpdated": "2025-11-03T19:47:26.652Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2023-45284 (GCVE-0-2023-45284)

    Vulnerability from nvd – Published: 2023-11-09 16:30 – Updated: 2024-09-03 19:00
    VLAI
    Title
    Incorrect detection of reserved device names on Windows in path/filepath
    Summary
    On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as "COM1 ", and reserved names "COM" and "LPT" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now correctly reports these names as non-local.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-41 - Improper Resolution of Path Equivalence
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
    Create a notification for this product.
    golang go Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
        cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-02T20:21:15.204Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/63713"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/540277"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2023-2186"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "affected": [
              {
                "cpes": [
                  "cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*"
                ],
                "defaultStatus": "unaffected",
                "product": "go",
                "vendor": "golang",
                "versions": [
                  {
                    "lessThan": "1.20.11",
                    "status": "affected",
                    "version": "0",
                    "versionType": "semver"
                  },
                  {
                    "lessThan": "1.21.4",
                    "status": "affected",
                    "version": "1.21.0-0",
                    "versionType": "semver"
                  }
                ]
              }
            ],
            "metrics": [
              {
                "cvssV3_1": {
                  "attackComplexity": "LOW",
                  "attackVector": "NETWORK",
                  "availabilityImpact": "NONE",
                  "baseScore": 5.3,
                  "baseSeverity": "MEDIUM",
                  "confidentialityImpact": "NONE",
                  "integrityImpact": "LOW",
                  "privilegesRequired": "NONE",
                  "scope": "UNCHANGED",
                  "userInteraction": "NONE",
                  "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N",
                  "version": "3.1"
                }
              },
              {
                "other": {
                  "content": {
                    "id": "CVE-2023-45284",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2024-09-03T18:55:41.107810Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2024-09-03T19:00:47.531Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "IsLocal"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.4",
                  "status": "affected",
                  "version": "1.21.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "On Windows, The IsLocal function does not correctly detect reserved device names in some cases. Reserved names followed by spaces, such as \"COM1 \", and reserved names \"COM\" and \"LPT\" followed by superscript 1, 2, or 3, are incorrectly reported as local. With fix, IsLocal now correctly reports these names as non-local."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-41: Improper Resolution of Path Equivalence",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-11-09T16:30:15.250Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/63713"
            },
            {
              "url": "https://go.dev/cl/540277"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2023-2186"
            }
          ],
          "title": "Incorrect detection of reserved device names on Windows in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2023-45284",
        "datePublished": "2023-11-09T16:30:15.250Z",
        "dateReserved": "2023-10-06T17:06:26.220Z",
        "dateUpdated": "2024-09-03T19:00:47.531Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2023-45283 (GCVE-0-2023-45283)

    Vulnerability from nvd – Published: 2023-11-09 16:30 – Updated: 2025-02-13 17:13
    VLAI
    Title
    Insecure parsing of Windows paths with a \??\ prefix in path/filepath
    Summary
    The filepath package does not recognize paths with a \??\ prefix as special. On Windows, a path beginning with \??\ is a Root Local Device path equivalent to a path beginning with \\?\. Paths with a \??\ prefix may be used to access arbitrary locations on the system. For example, the path \??\c:\x is equivalent to the more common path c:\x. Before fix, Clean could convert a rooted path such as \a\..\??\b into the root local device path \??\b. Clean will now convert this to .\??\b. Similarly, Join(\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \??\b. Join will now convert this to \.\??\b. In addition, with fix, IsAbs now correctly reports paths beginning with \??\ as absolute, and VolumeName correctly reports the \??\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \?, resulting in filepath.Clean(\?\c:) returning \?\c: rather than \?\c:\ (among other effects). The previous behavior has been restored.
    Severity
    No CVSS data available.
    CWE
    • CWE-41 - Improper Resolution of Path Equivalence
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
    Create a notification for this product.
    Go standard library internal/safefilepath Affected: 0 , < 1.20.11 (semver)
    Affected: 1.21.0-0 , < 1.21.4 (semver)
    Create a notification for this product.
    Go standard library path/filepath Affected: 1.20.11 , < 1.20.12 (semver)
    Affected: 1.21.4 , < 1.21.5 (semver)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-02T20:21:15.278Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/63713"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/540277"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/64028"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/541175"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2023-2185"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "http://www.openwall.com/lists/oss-security/2023/12/05/2"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://security.netapp.com/advisory/ntap-20231214-0008/"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Clean"
                },
                {
                  "name": "volumeNameLen"
                },
                {
                  "name": "join"
                },
                {
                  "name": "Abs"
                },
                {
                  "name": "Base"
                },
                {
                  "name": "Dir"
                },
                {
                  "name": "EvalSymlinks"
                },
                {
                  "name": "Glob"
                },
                {
                  "name": "IsLocal"
                },
                {
                  "name": "Join"
                },
                {
                  "name": "Rel"
                },
                {
                  "name": "Split"
                },
                {
                  "name": "VolumeName"
                },
                {
                  "name": "Walk"
                },
                {
                  "name": "WalkDir"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.4",
                  "status": "affected",
                  "version": "1.21.0-0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "internal/safefilepath",
              "platforms": [
                "windows"
              ],
              "product": "internal/safefilepath",
              "programRoutines": [
                {
                  "name": "fromFS"
                },
                {
                  "name": "FromFS"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.4",
                  "status": "affected",
                  "version": "1.21.0-0",
                  "versionType": "semver"
                }
              ]
            },
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "volumeNameLen"
                },
                {
                  "name": "Abs"
                },
                {
                  "name": "Base"
                },
                {
                  "name": "Clean"
                },
                {
                  "name": "Dir"
                },
                {
                  "name": "EvalSymlinks"
                },
                {
                  "name": "Glob"
                },
                {
                  "name": "IsLocal"
                },
                {
                  "name": "Join"
                },
                {
                  "name": "Rel"
                },
                {
                  "name": "Split"
                },
                {
                  "name": "VolumeName"
                },
                {
                  "name": "Walk"
                },
                {
                  "name": "WalkDir"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.20.12",
                  "status": "affected",
                  "version": "1.20.11",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.21.5",
                  "status": "affected",
                  "version": "1.21.4",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "The filepath package does not recognize paths with a \\??\\ prefix as special. On Windows, a path beginning with \\??\\ is a Root Local Device path equivalent to a path beginning with \\\\?\\. Paths with a \\??\\ prefix may be used to access arbitrary locations on the system. For example, the path \\??\\c:\\x is equivalent to the more common path c:\\x. Before fix, Clean could convert a rooted path such as \\a\\..\\??\\b into the root local device path \\??\\b. Clean will now convert this to .\\??\\b. Similarly, Join(\\, ??, b) could convert a seemingly innocent sequence of path elements into the root local device path \\??\\b. Join will now convert this to \\.\\??\\b. In addition, with fix, IsAbs now correctly reports paths beginning with \\??\\ as absolute, and VolumeName correctly reports the \\??\\ prefix as a volume name. UPDATE: Go 1.20.11 and Go 1.21.4 inadvertently changed the definition of the volume name in Windows paths starting with \\?, resulting in filepath.Clean(\\?\\c:) returning \\?\\c: rather than \\?\\c:\\ (among other effects). The previous behavior has been restored."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-41: Improper Resolution of Path Equivalence",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-12-14T10:06:32.436Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/63713"
            },
            {
              "url": "https://go.dev/cl/540277"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/4tU8LZfBFkY"
            },
            {
              "url": "https://go.dev/issue/64028"
            },
            {
              "url": "https://go.dev/cl/541175"
            },
            {
              "url": "https://groups.google.com/g/golang-dev/c/6ypN5EjibjM/m/KmLVYH_uAgAJ"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2023-2185"
            },
            {
              "url": "http://www.openwall.com/lists/oss-security/2023/12/05/2"
            },
            {
              "url": "https://security.netapp.com/advisory/ntap-20231214-0008/"
            }
          ],
          "title": "Insecure parsing of Windows paths with a \\??\\ prefix in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2023-45283",
        "datePublished": "2023-11-09T16:30:12.395Z",
        "dateReserved": "2023-10-06T17:06:26.220Z",
        "dateUpdated": "2025-02-13T17:13:59.471Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-41722 (GCVE-0-2022-41722)

    Vulnerability from nvd – Published: 2023-02-28 17:19 – Updated: 2025-03-07 17:58
    VLAI
    Title
    Path traversal on Windows in path/filepath
    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".
    Severity
    No CVSS data available.
    SSVC
    Exploitation: none Automatable: yes Technical Impact: partial
    CISA Coordinator (v2.0.3)
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ("Path Traversal")
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.19.6 (semver)
    Affected: 1.20.0-0 , < 1.20.1 (semver)
    Create a notification for this product.
    Credits
    RyotaK (https://ryotak.net)
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T12:49:43.602Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/57274"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/468123"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2023-1568"
              }
            ],
            "title": "CVE Program Container"
          },
          {
            "metrics": [
              {
                "other": {
                  "content": {
                    "id": "CVE-2022-41722",
                    "options": [
                      {
                        "Exploitation": "none"
                      },
                      {
                        "Automatable": "yes"
                      },
                      {
                        "Technical Impact": "partial"
                      }
                    ],
                    "role": "CISA Coordinator",
                    "timestamp": "2025-03-07T17:58:38.218567Z",
                    "version": "2.0.3"
                  },
                  "type": "ssvc"
                }
              }
            ],
            "providerMetadata": {
              "dateUpdated": "2025-03-07T17:58:57.055Z",
              "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
              "shortName": "CISA-ADP"
            },
            "title": "CISA ADP Vulnrichment"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Clean"
                },
                {
                  "name": "Abs"
                },
                {
                  "name": "Dir"
                },
                {
                  "name": "EvalSymlinks"
                },
                {
                  "name": "Glob"
                },
                {
                  "name": "IsLocal"
                },
                {
                  "name": "Join"
                },
                {
                  "name": "Rel"
                },
                {
                  "name": "Walk"
                },
                {
                  "name": "WalkDir"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.19.6",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.20.1",
                  "status": "affected",
                  "version": "1.20.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "RyotaK (https://ryotak.net)"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "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\"."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-22: Improper Limitation of a Pathname to a Restricted\nDirectory (\"Path Traversal\")\n",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-06-12T19:05:50.152Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/issue/57274"
            },
            {
              "url": "https://go.dev/cl/468123"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/V0aBFqaFs_E"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2023-1568"
            }
          ],
          "title": "Path traversal on Windows in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-41722",
        "datePublished": "2023-02-28T17:19:41.324Z",
        "dateReserved": "2022-09-28T17:00:06.610Z",
        "dateUpdated": "2025-03-07T17:58:57.055Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-30632 (GCVE-0-2022-30632)

    Vulnerability from nvd – Published: 2022-08-09 20:15 – Updated: 2024-08-03 06:56
    VLAI
    Title
    Stack exhaustion on crafted paths in path/filepath
    Summary
    Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators.
    Severity
    No CVSS data available.
    CWE
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.17.12 (semver)
    Affected: 1.18.0-0 , < 1.18.4 (semver)
    Create a notification for this product.
    Credits
    Juho Nurminen of Mattermost
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T06:56:13.251Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/417066"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.googlesource.com/go/+/ac68c6c683409f98250d34ad282b9e1b0c9095ef"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/53416"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2022-0522"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Glob"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.17.12",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.18.4",
                  "status": "affected",
                  "version": "1.18.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Juho Nurminen of Mattermost"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Uncontrolled recursion in Glob in path/filepath before Go 1.17.12 and Go 1.18.4 allows an attacker to cause a panic due to stack exhaustion via a path containing a large number of path separators."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-674: Uncontrolled Recursion",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2023-06-12T19:04:36.688Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/cl/417066"
            },
            {
              "url": "https://go.googlesource.com/go/+/ac68c6c683409f98250d34ad282b9e1b0c9095ef"
            },
            {
              "url": "https://go.dev/issue/53416"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/nqrv9fbR0zE"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2022-0522"
            }
          ],
          "title": "Stack exhaustion on crafted paths in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-30632",
        "datePublished": "2022-08-09T20:15:37.000Z",
        "dateReserved": "2022-05-12T00:00:00.000Z",
        "dateUpdated": "2024-08-03T06:56:13.251Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }

    CVE-2022-29804 (GCVE-0-2022-29804)

    Vulnerability from nvd – Published: 2022-08-09 00:00 – Updated: 2024-08-03 06:33
    VLAI
    Title
    Path traversal via Clean on Windows in path/filepath
    Summary
    Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack.
    Severity
    No CVSS data available.
    CWE
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    Go
    Impacted products
    Vendor Product Version
    Go standard library path/filepath Affected: 0 , < 1.17.11 (semver)
    Affected: 1.18.0-0 , < 1.18.3 (semver)
    Create a notification for this product.
    Credits
    Unrud
    Show details on NVD website

    {
      "containers": {
        "adp": [
          {
            "providerMetadata": {
              "dateUpdated": "2024-08-03T06:33:42.804Z",
              "orgId": "af854a3a-2127-422b-91ae-364da2661108",
              "shortName": "CVE"
            },
            "references": [
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/cl/401595"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://go.dev/issue/52476"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"
              },
              {
                "tags": [
                  "x_transferred"
                ],
                "url": "https://pkg.go.dev/vuln/GO-2022-0533"
              }
            ],
            "title": "CVE Program Container"
          }
        ],
        "cna": {
          "affected": [
            {
              "collectionURL": "https://pkg.go.dev",
              "defaultStatus": "unaffected",
              "packageName": "path/filepath",
              "platforms": [
                "windows"
              ],
              "product": "path/filepath",
              "programRoutines": [
                {
                  "name": "Clean"
                }
              ],
              "vendor": "Go standard library",
              "versions": [
                {
                  "lessThan": "1.17.11",
                  "status": "affected",
                  "version": "0",
                  "versionType": "semver"
                },
                {
                  "lessThan": "1.18.3",
                  "status": "affected",
                  "version": "1.18.0-0",
                  "versionType": "semver"
                }
              ]
            }
          ],
          "credits": [
            {
              "lang": "en",
              "value": "Unrud"
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "Incorrect conversion of certain invalid paths to valid, absolute paths in Clean in path/filepath before Go 1.17.11 and Go 1.18.3 on Windows allows potential directory traversal attack."
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
                  "lang": "en"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2024-01-04T18:08:46.071Z",
            "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
            "shortName": "Go"
          },
          "references": [
            {
              "url": "https://go.dev/cl/401595"
            },
            {
              "url": "https://go.googlesource.com/go/+/9cd1818a7d019c02fa4898b3e45a323e35033290"
            },
            {
              "url": "https://go.dev/issue/52476"
            },
            {
              "url": "https://groups.google.com/g/golang-announce/c/TzIC9-t8Ytg/m/IWz5T6x7AAAJ"
            },
            {
              "url": "https://pkg.go.dev/vuln/GO-2022-0533"
            }
          ],
          "title": "Path traversal via Clean on Windows in path/filepath"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "assignerShortName": "Go",
        "cveId": "CVE-2022-29804",
        "datePublished": "2022-08-09T00:00:00.000Z",
        "dateReserved": "2022-04-26T00:00:00.000Z",
        "dateUpdated": "2024-08-03T06:33:42.804Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.1"
    }