{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2022-31259","id":"CVE-2022-31259","title":"Access control bypass in beego","description":"The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).","descriptionLong":"The route lookup process in beego before 1.12.9 and 2.x before 2.0.3 allows attackers to bypass access control. When a /p1/p2/:name route is configured, attackers can access it by appending .xml in various places (e.g., p1.xml instead of p1).","published":"2022-05-21T00:00:00.000Z","updated":"2026-10-28T02:30:53.508194887Z","reserved":"2022-05-21T00: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":6.8,"vector":"AV:N/AC:M/Au:N/C:P/I:P/A:P","rating":"medium","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/v2","purl":"pkg:golang/github.com/beego/beego/v2","ranges":["<2.0.3"],"fixed":["2.0.3"],"advisory":"GHSA-qx32-f6g6-fcfr"},{"ecosystem":"Go","name":"github.com/beego/beego","purl":"pkg:golang/github.com/beego/beego","ranges":["<1.12.9"],"fixed":["1.12.9"],"advisory":"GHSA-qx32-f6g6-fcfr"},{"ecosystem":"Go","name":"github.com/astaxie/beego","purl":"pkg:golang/github.com/astaxie/beego","ranges":["all versions"],"fixed":[],"advisory":"GO-2022-0463"}],"cwes":["CWE-284"],"aliases":["GHSA-qx32-f6g6-fcfr","GO-2022-0463"],"references":[{"url":"https://github.com/beego/beego/issues/4946","tags":["x_transferred","Exploit","Issue Tracking","Patch","Third Party Advisory","report","web"]},{"url":"https://beego.vip","tags":["x_transferred","Product","web"]},{"url":"https://github.com/beego/beego/tree/v2.0.2","tags":["x_transferred","Release Notes","Third Party Advisory","web"]},{"url":"https://github.com/advisories/GHSA-qx32-f6g6-fcfr","tags":["x_transferred","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/31xxx/CVE-2022-31259.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31259","tags":["advisory"]},{"url":"https://github.com/beego/beego/pull/4954","tags":["web"]},{"url":"https://github.com/beego/beego/pull/4958","tags":["web","fix"]},{"url":"https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009","tags":["web"]},{"url":"https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd","tags":["web","fix"]},{"url":"https://github.com/beego/beego","tags":["package"]},{"url":"https://pkg.go.dev/vuln/GO-2022-0463","tags":["web"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.22158,"epssPercentile":0.97721,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2022-31259","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31259","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2022-31259","ok":true,"note":"3 packages"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-qx32-f6g6-fcfr","ok":true,"note":"GHSA-qx32-f6g6-fcfr"},{"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-31259","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":["EPSS 22% with CVSS 9.8"],"attention":null}