{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-31836","id":"CVE-2022-31836","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.","descriptionLong":"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.","published":"2022-07-05T00:00:00.000Z","updated":"2026-10-28T02:30:46.177906771Z","reserved":"2022-05-31T00:00:00.000Z","status":"Modified","rejected":false,"assigner":"mitre","metric":{"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","rating":"critical","source":"NVD"},"metrics":[{"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","rating":"critical","source":"NVD"},{"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","rating":"critical","source":"GitHub"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","rating":"high","source":"NVD"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"Go","name":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","ranges":["<1.12.11"],"fixed":["1.12.11"],"advisory":"GHSA-95f9-94vc-665h"},{"ecosystem":"Go","name":"github.com/beego/beego/v2","purl":"pkg:golang/github.com/beego/beego/v2","ranges":[">=2.0.0 <2.0.4"],"fixed":["2.0.4"],"advisory":"GHSA-95f9-94vc-665h"},{"ecosystem":"Go","name":"github.com/astaxie/beego","purl":"pkg:golang/github.com/astaxie/beego","ranges":["all versions"],"fixed":[],"advisory":"GO-2022-0569"}],"cwes":["CWE-22"],"aliases":["GHSA-95f9-94vc-665h","GO-2022-0569"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31836.json","tags":["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://github.com/beego/beego","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0569","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.01663,"epssPercentile":0.77218,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-31836","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31836","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-31836","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-95f9-94vc-665h","ok":true,"note":"GHSA-95f9-94vc-665h"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2022-31836","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}