{"id":"CVE-2022-31836","aliases":["EUVD-2022-6301","GHSA-95f9-94vc-665h","GO-2022-0569"],"status":"published","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.","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-11","score":0.01663,"percentile":0.77015,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-22"],"published":"2022-07-05T00:00:00Z","modified":"2026-10-28T02:30:46Z","fixes":[{"ecosystem":"Go","package":"github.com/beego/beego","fixed_in":["1.12.11"],"sources":["ghsa","osv"]},{"ecosystem":"Go","package":"github.com/beego/beego/v2","fixed_in":["2.0.4"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"Go","package":"github.com/beego/beego","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12.11"}]}]},{"source":"ghsa","ecosystem":"Go","package":"github.com/beego/beego/v2","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"2.0.0"},{"fixed":"2.0.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/beego/beego","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.12.11"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/beego/beego/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.4"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/astaxie/beego","ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/beego/beego","ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.12.11"}]}]},{"source":"osv","ecosystem":"Go","package":"github.com/beego/beego/v2","ranges":[{"type":"SEMVER","events":[{"introduced":"2.0.0"},{"fixed":"2.0.4"}]}]}],"products":[{"vendor":"beego","product":"beego"}],"references":[{"url":"https://github.com/beego/beego/issues/4961","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report","web"]},{"url":"https://github.com/advisories/GHSA-95f9-94vc-665h","tags":["x_transferred","advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31836","tags":["advisory"]},{"url":"https://github.com/beego/beego/pull/5025","tags":["web","fix"]},{"url":"https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57","tags":["web","fix"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0569","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31836.json","tags":["advisory"]},{"url":"https://github.com/beego/beego","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2022-31836","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.","status":"published","published":"2022-07-05T00:00:00Z","modified":"2024-08-03T07:26:01.106Z","updated_at":"2026-11-02T14:34:35.279735Z"}],"euvd":[{"id":"EUVD-2022-6301","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.","status":"published","published":"2022-07-05T00:00:00Z","modified":"2024-08-03T07:26:01Z","updated_at":"2026-11-03T03:25:32.982782Z"}],"ghsa":[{"id":"GHSA-95f9-94vc-665h","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.","status":"published","published":"2022-07-06T00:00:28Z","modified":"2023-08-28T23:44:11Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:37:01.345964Z"}],"nvd":[{"id":"CVE-2022-31836","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.","status":"published","published":"2022-07-05T15:15:08.75Z","modified":"2026-06-17T04:46:22.427Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"primary"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T14:07:22.966735Z"}],"osv":[{"id":"GHSA-95f9-94vc-665h","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.","status":"published","published":"2022-07-06T00:00:28Z","modified":"2026-07-08T06:27:57.223872458Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"cwes":["CWE-22"],"updated_at":"2026-11-02T15:46:43.123867Z"},{"id":"CVE-2022-31836","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.","status":"published","published":"2022-07-05T00:00:00Z","modified":"2026-10-28T02:30:46.177906771Z","updated_at":"2026-11-02T15:44:25.860945Z"},{"id":"GO-2022-0569","title":"Path traversal in github.com/beego/beego and beego/v2","description":"The leafInfo.match() function uses path.join() to deal with wildcard values which can lead to cross directory risk.","status":"published","published":"2022-08-23T13:24:17Z","modified":"2024-05-20T16:03:47Z","updated_at":"2026-11-02T15:47:00.918515Z"}]}}
