Security mailing lists by PureSourceCode

CVE-2022-31259

CRITICAL 9.8CVSS 3.1

Access control bypass in beego

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
21 May 2022
Last modified
8 Jul 2026
Assigned by
cve@mitre.org
NVD status
Modified
Weakness
CWE-284
Also known as
GHSA-qx32-f6g6-fcfrGO-2022-0463
Sources
NVDJSONOSV GHSA-qx32-f6g6-fcfrJSONOSV GO-2022-0463JSON

Scores

SourceScored byVersionScoreVector / decision
NVD nvd@nist.gov (Primary) CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
OSV GitHub CVSS 3.1 CRITICAL 9.8 CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD nvd@nist.gov (Primary) CVSS 2.0 MEDIUM 6.8 AV:N/AC:M/Au:N/C:P/I:P/A:P

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
NVD beego beego
cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*
<= 1.12.4
NVD beego beego
cpe:2.3:a:beego:beego:*:*:*:*:*:*:*:*
>= 2.0.0, <= 2.0.2
OSV Go github.com/beego/beego/v2 < 2.0.3 2.0.3
OSV Go github.com/beego/beego < 1.12.9 1.12.9
OSV Go github.com/astaxie/beego all versions

References

History

  • 25 Nov 2026 20:34 UTC · NVD: first stored (published 21 May 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 1 Jul 2022)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 22 May 2022)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.