{"id":"CVE-2022-31836","aliases":["CVE-2022-31836","GHSA-95f9-94vc-665h","GO-2022-0569"],"related":[],"kind":"vulnerability","state":"published","title":"Path Traversal in Beego","summary":"The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.","source":"cvelist"},{"lang":"en","text":"The `leafInfo.match()` function in Beego v2.0.3 and below uses `path.join()` to deal with wildcardvalues which can lead to cross directory risk.","format":"markdown","source":"ghsa"},{"lang":"en","text":"The leafInfo.match() function uses path.join() to deal with wildcard values which can lead to cross directory risk.","format":"markdown","source":"go"},{"lang":"es","text":"La función leafInfo.match() en Beego versiones v2.0.3 y versiones anteriores usa path.join() para tratar con valores comodín que pueden conllevar a un riesgo entre directorios","source":"nvd"}],"published":"2022-07-05T00:00:00.000Z","modified":"2026-07-08T06:27:57.223Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:2.0","vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","score":7.5,"rating":"HIGH"}],"cwes":["CWE-22"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.11"}],"ecosystem":"Go","package":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.4"}],"ecosystem":"Go","package":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0","status":"affected"}],"ecosystem":"Go","package":"github.com/astaxie/beego","purl":"pkg:golang/github.com/astaxie/beego","source":"go"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"1.12.11"}],"ecosystem":"Go","package":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","source":"go"},{"ranges":[{"type":"semver","introduced":"2.0.0","status":"affected","fixed":"2.0.4"}],"ecosystem":"Go","package":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","source":"go"},{"ranges":[{"status":"affected","lastAffected":"2.0.3"}],"vendor":"beego","product":"beego","cpe":"cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/beego/beego/issues/4961","tags":["exploit","issue-tracking","patch","third-party-advisory","web","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/advisories/GHSA-95f9-94vc-665h","tags":["advisory","x-transferred"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31836","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/beego/beego/pull/5025","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57","tags":["fix","web"],"sources":["ghsa","go"]},{"url":"https://github.com/beego/beego","tags":["package"],"sources":["ghsa"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0569","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-31836","url":"https://www.cve.org/CVERecord?id=CVE-2022-31836","licence":"CVE Terms of Use","modified":"2024-08-03T07:26:01.106Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-95f9-94vc-665h","url":"https://github.com/advisories/GHSA-95f9-94vc-665h","licence":"CC-BY-4.0","modified":"2026-07-08T06:27:57.223Z"},{"source":"go","name":"Go Vulnerability Database","id":"GO-2022-0569","url":"https://pkg.go.dev/vuln/GO-2022-0569","licence":"CC-BY-4.0","modified":"2024-05-20T16:03:47.000Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-31836","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31836","licence":"Public domain","modified":"2026-06-17T04:46:22.427Z"}],"updatedAt":"2026-11-25T22:58:12.712Z","epss":{"score":0.01689,"percentile":0.7774,"date":"2026-12-01T12:00:22.000Z"}}