{"id":"GHSA-qx32-f6g6-fcfr","summary":"Access control bypass in beego","details":"The route lookup process in beego prior to 1.12.9 and 2.x prior to 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).","aliases":["CVE-2022-31259","GO-2022-0463"],"modified":"2026-07-08T06:27:50.220219676Z","published":"2022-05-22T00:00:32Z","database_specific":{"cwe_ids":["CWE-284"],"severity":"CRITICAL","github_reviewed":true,"github_reviewed_at":"2022-05-25T20:35:48Z","nvd_published_at":"2022-05-21T19:15:00Z"},"references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-31259"},{"type":"WEB","url":"https://github.com/beego/beego/issues/4946"},{"type":"WEB","url":"https://github.com/beego/beego/pull/4954"},{"type":"WEB","url":"https://github.com/beego/beego/pull/4958"},{"type":"WEB","url":"https://github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009"},{"type":"WEB","url":"https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-qx32-f6g6-fcfr"},{"type":"PACKAGE","url":"https://github.com/beego/beego"},{"type":"WEB","url":"https://github.com/beego/beego/tree/v2.0.2"},{"type":"WEB","url":"https://pkg.go.dev/vuln/GO-2022-0463"}],"affected":[{"package":{"name":"github.com/beego/beego/v2","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego/v2"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"2.0.3"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qx32-f6g6-fcfr/GHSA-qx32-f6g6-fcfr.json"}},{"package":{"name":"github.com/beego/beego","ecosystem":"Go","purl":"pkg:golang/github.com/beego/beego"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"},{"fixed":"1.12.9"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-qx32-f6g6-fcfr/GHSA-qx32-f6g6-fcfr.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}