CVE-2022-31259
Access control bypass due to broad route matching in github.com/beego/beego and beego/v2
9.8
CRITICAL
CVSS 3.1
EPSS 0.15%
Description
Routes in the beego HTTP router can match unintended patterns. This overly-broad matching may permit an attacker to bypass access controls. For example, the pattern "/a/b/:name" can match the URL "/a.xml/b/". This may bypass access control applied to the prefix "/a/".
How to fix CVE-2022-31259
To remediate CVE-2022-31259, upgrade the affected package to a fixed version below.
- —no fix listed
- —upgrade to 1.12.9 or later
- —upgrade to 1.12.9 or later
- —upgrade to 2.0.3 or later
- —upgrade to 2.0.3 or later
Is CVE-2022-31259 being exploited?
Low — EPSS is 0.2%, meaning exploitation activity has not been observed at scale.
Affected packages (5)
- from 0
- from 0, < 1.12.9
- from 0, < 1.12.9
- from 0, < 2.0.3
- from 0, < 2.0.3
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | CRITICAL9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |