{"cve":"CVE-2022-31836","nvd":{"published":"2022-07-05T15:15:08.750","modified":"2026-06-17T04:46:22.427","status":"Modified","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.","cvss_v4":null,"cvss_v3":{"version":"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},"cwes":["CWE-22"],"references":["https://github.com/advisories/GHSA-95f9-94vc-665h","https://github.com/beego/beego/issues/4961","https://github.com/advisories/GHSA-95f9-94vc-665h","https://github.com/beego/beego/issues/4961"],"products":["beego:beego"],"source":"nvd","synced_at":"2026-10-19T21:33:44.859608815+00:00"},"epss":{"cve":"CVE-2022-31836","score":0.01663,"percentile":0.76708,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-95f9-94vc-665h","url":"https://osv.dev/vulnerability/GHSA-95f9-94vc-665h","summary":"Path Traversal in Beego","modified":"2026-07-08T06:27:57.223872458Z","packages":[{"ecosystem":"Go","name":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","ranges":["<1.12.11"],"fixed":["1.12.11"]},{"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"]}]},{"id":"GO-2022-0569","url":"https://osv.dev/vulnerability/GO-2022-0569","summary":"Path traversal in github.com/beego/beego and beego/v2","modified":"2024-05-20T16:03:47Z","packages":[{"ecosystem":"Go","name":"github.com/astaxie/beego","purl":"pkg:golang/github.com/astaxie/beego","ranges":["all versions"],"fixed":[]},{"ecosystem":"Go","name":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","ranges":["<1.12.11"],"fixed":["1.12.11"]},{"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"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}