{"id":"GHSA-95f9-94vc-665h","revision":"3398560d02a44faa95b3b8b6db79b4e3","records":[{"revision":"3398560d02a44faa95b3b8b6db79b4e3","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GHSA-95f9-94vc-665h","aliases":["CVE-2022-31836","GO-2022-0569"],"title":"Path Traversal in Beego","description":"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.","state":0,"publishedAt":"2022-07-06T00:00:28+00:00","modifiedAt":"2026-07-08T06:27:57.2238725+00:00","affected":[{"ecosystem":"Go","name":"github.com/beego/beego","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.11"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/beego/beego/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"2.0.0"},{"kind":"fixed","version":"2.0.4"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[{"system":"CVSS_V3","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":null,"severity":null},{"system":"Publisher rating","vector":null,"score":null,"severity":"CRITICAL"}],"references":["https://nvd.nist.gov/vuln/detail/CVE-2022-31836","https://github.com/beego/beego/issues/4961","https://github.com/beego/beego/pull/5025","https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57","https://github.com/advisories/GHSA-95f9-94vc-665h","https://github.com/beego/beego","https://pkg.go.dev/vuln/GO-2022-0569"],"sourceUrl":"https://github.com/advisories/GHSA-95f9-94vc-665h","license":"GitHub Advisory Database · CC-BY-4.0","key":"osv:GHSA-95f9-94vc-665h","identifiers":["GHSA-95f9-94vc-665h","CVE-2022-31836","GO-2022-0569"]},"retained":false,"historicalAffected":[]}],"coverage":[]}