Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/beego/beego/v2/server/web
  4. ›
  5. CVE-2022-31259

CVE-2022-31259: Access control bypass in beego

May 22, 2022 (updated February 9, 2023)

The route lookup process in beego through 1.12.4 and 2.x through 2.0.2 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).

References

  • beego.vip/
  • github.com/advisories/GHSA-qx32-f6g6-fcfr
  • github.com/beego/beego/commit/228576173a236c81a2122923fcf8099ad294e009
  • github.com/beego/beego/commit/64cf44d725c8cc35d782327d333df9cbeb1bf2dd
  • github.com/beego/beego/issues/4946
  • github.com/beego/beego/pull/4954
  • github.com/beego/beego/pull/4958
  • github.com/beego/beego/tree/v2.0.2
  • nvd.nist.gov/vuln/detail/CVE-2022-31259
  • pkg.go.dev/vuln/GO-2022-0463

Code Behaviors & Features

Detect and mitigate CVE-2022-31259 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 2.0.3

Fixed versions

  • v2.0.3

Solution

Upgrade to version 2.0.3 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Source file

go/github.com/beego/beego/v2/server/web/CVE-2022-31259.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:33 +0000.