CVE-2022-32190 (GCVE-0-2022-32190)

Vulnerability from cvelistv5 – Published: 2022-09-13 17:08 – Updated: 2024-08-03 07:32
VLAI?
Summary
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 ?
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 net/url Affected: 1.19.0-0 , < 1.19.1 (semver)
Create a notification for this product.
Credits
@q0jt
Show details on NVD website

{
  "containers": {
    "adp": [
      {
        "providerMetadata": {
          "dateUpdated": "2024-08-03T07:32:56.001Z",
          "orgId": "af854a3a-2127-422b-91ae-364da2661108",
          "shortName": "CVE"
        },
        "references": [
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://groups.google.com/g/golang-announce/c/x49AQzIVX-s"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://go.dev/issue/54385"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://go.dev/cl/423514"
          },
          {
            "tags": [
              "x_transferred"
            ],
            "url": "https://pkg.go.dev/vuln/GO-2022-0988"
          }
        ],
        "title": "CVE Program Container"
      }
    ],
    "cna": {
      "affected": [
        {
          "collectionURL": "https://pkg.go.dev",
          "defaultStatus": "unaffected",
          "packageName": "net/url",
          "product": "net/url",
          "programRoutines": [
            {
              "name": "URL.JoinPath"
            },
            {
              "name": "JoinPath"
            }
          ],
          "vendor": "Go standard library",
          "versions": [
            {
              "lessThan": "1.19.1",
              "status": "affected",
              "version": "1.19.0-0",
              "versionType": "semver"
            }
          ]
        }
      ],
      "credits": [
        {
          "lang": "en",
          "value": "@q0jt"
        }
      ],
      "descriptions": [
        {
          "lang": "en",
          "value": "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."
        }
      ],
      "problemTypes": [
        {
          "descriptions": [
            {
              "description": "CWE-22: Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
              "lang": "en"
            }
          ]
        }
      ],
      "providerMetadata": {
        "dateUpdated": "2023-06-12T19:05:24.713Z",
        "orgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
        "shortName": "Go"
      },
      "references": [
        {
          "url": "https://groups.google.com/g/golang-announce/c/x49AQzIVX-s"
        },
        {
          "url": "https://go.dev/issue/54385"
        },
        {
          "url": "https://go.dev/cl/423514"
        },
        {
          "url": "https://pkg.go.dev/vuln/GO-2022-0988"
        }
      ],
      "title": "Failure to strip relative path components in net/url"
    }
  },
  "cveMetadata": {
    "assignerOrgId": "1bb62c36-49e3-4200-9d77-64a1400537cc",
    "assignerShortName": "Go",
    "cveId": "CVE-2022-32190",
    "datePublished": "2022-09-13T17:08:57",
    "dateReserved": "2022-05-31T00:00:00",
    "dateUpdated": "2024-08-03T07:32:56.001Z",
    "state": "PUBLISHED"
  },
  "dataType": "CVE_RECORD",
  "dataVersion": "5.1",
  "vulnerability-lookup:meta": {
    "fkie_nvd": {
      "configurations": "[{\"nodes\": [{\"operator\": \"OR\", \"negate\": false, \"cpeMatch\": [{\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:golang:go:1.19.0:-:*:*:*:*:*:*\", \"matchCriteriaId\": \"897B57CA-3B3C-4481-AB48-0DC0F9F7E88D\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:golang:go:1.19.0:beta1:*:*:*:*:*:*\", \"matchCriteriaId\": \"B24A1D2C-FF92-4C87-8377-41386988C5B4\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:golang:go:1.19.0:rc1:*:*:*:*:*:*\", \"matchCriteriaId\": \"724EF8B4-9AA2-45CB-B55B-4697CC6D8353\"}, {\"vulnerable\": true, \"criteria\": \"cpe:2.3:a:golang:go:1.19.0:rc2:*:*:*:*:*:*\", \"matchCriteriaId\": \"438A873A-3DAC-47BD-9919-2DFAC5C1F767\"}]}]}]",
      "descriptions": "[{\"lang\": \"en\", \"value\": \"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.\"}, {\"lang\": \"es\", \"value\": \"JoinPath y URL.JoinPath no eliminan los elementos de ruta ../ anexados a una ruta relativa. Por ejemplo, JoinPath(\\\"https://go.dev\\\", \\\"../go\\\") devuelve la URL \\\"https://go.dev/../go\\\", a pesar de que la documentaci\\u00f3n de JoinPath indica que los elementos de ruta ../ son eliminados del resultado\"}]",
      "id": "CVE-2022-32190",
      "lastModified": "2024-11-21T07:05:53.640",
      "metrics": "{\"cvssMetricV31\": [{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"cvssData\": {\"version\": \"3.1\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\", \"baseScore\": 7.5, \"baseSeverity\": \"HIGH\", \"attackVector\": \"NETWORK\", \"attackComplexity\": \"LOW\", \"privilegesRequired\": \"NONE\", \"userInteraction\": \"NONE\", \"scope\": \"UNCHANGED\", \"confidentialityImpact\": \"HIGH\", \"integrityImpact\": \"NONE\", \"availabilityImpact\": \"NONE\"}, \"exploitabilityScore\": 3.9, \"impactScore\": 3.6}]}",
      "published": "2022-09-13T18:15:14.507",
      "references": "[{\"url\": \"https://go.dev/cl/423514\", \"source\": \"security@golang.org\", \"tags\": [\"Patch\", \"Release Notes\"]}, {\"url\": \"https://go.dev/issue/54385\", \"source\": \"security@golang.org\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Vendor Advisory\"]}, {\"url\": \"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s\", \"source\": \"security@golang.org\", \"tags\": [\"Mailing List\", \"Third Party Advisory\"]}, {\"url\": \"https://pkg.go.dev/vuln/GO-2022-0988\", \"source\": \"security@golang.org\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Vendor Advisory\"]}, {\"url\": \"https://go.dev/cl/423514\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Patch\", \"Release Notes\"]}, {\"url\": \"https://go.dev/issue/54385\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Vendor Advisory\"]}, {\"url\": \"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Mailing List\", \"Third Party Advisory\"]}, {\"url\": \"https://pkg.go.dev/vuln/GO-2022-0988\", \"source\": \"af854a3a-2127-422b-91ae-364da2661108\", \"tags\": [\"Issue Tracking\", \"Patch\", \"Vendor Advisory\"]}]",
      "sourceIdentifier": "security@golang.org",
      "vulnStatus": "Modified",
      "weaknesses": "[{\"source\": \"nvd@nist.gov\", \"type\": \"Primary\", \"description\": [{\"lang\": \"en\", \"value\": \"CWE-22\"}]}]"
    },
    "nvd": "{\"cve\":{\"id\":\"CVE-2022-32190\",\"sourceIdentifier\":\"security@golang.org\",\"published\":\"2022-09-13T18:15:14.507\",\"lastModified\":\"2024-11-21T07:05:53.640\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"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.\"},{\"lang\":\"es\",\"value\":\"JoinPath y URL.JoinPath no eliminan los elementos de ruta ../ anexados a una ruta relativa. Por ejemplo, JoinPath(\\\"https://go.dev\\\", \\\"../go\\\") devuelve la URL \\\"https://go.dev/../go\\\", a pesar de que la documentaci\u00f3n de JoinPath indica que los elementos de ruta ../ son eliminados del resultado\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N\",\"baseScore\":7.5,\"baseSeverity\":\"HIGH\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"NONE\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":3.9,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-22\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:golang:go:1.19.0:-:*:*:*:*:*:*\",\"matchCriteriaId\":\"897B57CA-3B3C-4481-AB48-0DC0F9F7E88D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:golang:go:1.19.0:beta1:*:*:*:*:*:*\",\"matchCriteriaId\":\"B24A1D2C-FF92-4C87-8377-41386988C5B4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:golang:go:1.19.0:rc1:*:*:*:*:*:*\",\"matchCriteriaId\":\"724EF8B4-9AA2-45CB-B55B-4697CC6D8353\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:golang:go:1.19.0:rc2:*:*:*:*:*:*\",\"matchCriteriaId\":\"438A873A-3DAC-47BD-9919-2DFAC5C1F767\"}]}]}],\"references\":[{\"url\":\"https://go.dev/cl/423514\",\"source\":\"security@golang.org\",\"tags\":[\"Patch\",\"Release Notes\"]},{\"url\":\"https://go.dev/issue/54385\",\"source\":\"security@golang.org\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Vendor Advisory\"]},{\"url\":\"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s\",\"source\":\"security@golang.org\",\"tags\":[\"Mailing List\",\"Third Party Advisory\"]},{\"url\":\"https://pkg.go.dev/vuln/GO-2022-0988\",\"source\":\"security@golang.org\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Vendor Advisory\"]},{\"url\":\"https://go.dev/cl/423514\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Patch\",\"Release Notes\"]},{\"url\":\"https://go.dev/issue/54385\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Vendor Advisory\"]},{\"url\":\"https://groups.google.com/g/golang-announce/c/x49AQzIVX-s\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Mailing List\",\"Third Party Advisory\"]},{\"url\":\"https://pkg.go.dev/vuln/GO-2022-0988\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Vendor Advisory\"]}]}}"
  }
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.


Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…