{"id":"GO-2022-0463","revision":"91963b8ddcd040bdbcf9ee65a395e00f","records":[{"revision":"91963b8ddcd040bdbcf9ee65a395e00f","observedAt":"2026-10-24T13:19:41.952+00:00","statement":{"source":"osv","id":"GO-2022-0463","aliases":["CVE-2022-31259","GHSA-qx32-f6g6-fcfr"],"title":"Access control bypass due to broad route matching in github.com/beego/beego and beego/v2","description":"Routes in the beego HTTP router can match unintended patterns. This overly-broad matching may permit an attacker to bypass access controls.\n\nFor example, the pattern \"/a/b/:name\" can match the URL \"/a.xml/b/\". This may bypass access control applied to the prefix \"/a/\".","state":0,"publishedAt":"2022-07-01T20:06:59+00:00","modifiedAt":"2024-06-03T20:51:31+00:00","affected":[{"ecosystem":"Go","name":"github.com/astaxie/beego","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/beego/beego","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"1.12.9"}]}],"versions":[],"rawVersionEvidence":null},{"ecosystem":"Go","name":"github.com/beego/beego/v2","ranges":[{"type":"SEMVER","events":[{"kind":"introduced","version":"0"},{"kind":"fixed","version":"2.0.3"}]}],"versions":[],"rawVersionEvidence":null}],"metrics":[],"references":["https://github.com/beego/beego/pull/4958","https://github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd","https://github.com/beego/beego/issues/4946","https://github.com/beego/beego/pull/4954"],"sourceUrl":"https://osv.dev/vulnerability/GO-2022-0463","license":"OSV · upstream source license applies","key":"osv:GO-2022-0463","identifiers":["GO-2022-0463","CVE-2022-31259","GHSA-qx32-f6g6-fcfr"]},"retained":false,"historicalAffected":[]}],"coverage":[]}