{"id":"GHSA-95f9-94vc-665h","summary":"Path Traversal in Beego","details":"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.","aliases":["CVE-2022-31836","GO-2022-0569"],"modified":"2026-07-08T06:27:57.223872458Z","published":"2022-07-06T00:00:28Z","database_specific":{"nvd_published_at":"2022-07-05T15:15:00Z","cwe_ids":["CWE-22"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-07-06T20:01:19Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31836"},{"type":"WEB","url":"https://github.com/beego/beego/issues/4961"},{"type":"WEB","url":"https://github.com/beego/beego/pull/5025"},{"type":"WEB","url":"https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-95f9-94vc-665h"},{"type":"PACKAGE","url":"https://github.com/beego/beego"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0569"}],"affected":[{"package":{"name":"github.com/beego/beego","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.12.11"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-95f9-94vc-665h/GHSA-95f9-94vc-665h.json"}},{"package":{"name":"github.com/beego/beego/v2","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.4"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/07/GHSA-95f9-94vc-665h/GHSA-95f9-94vc-665h.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}