CVE-2022-31259
JSON

9.8critical

Access control bypass in beego

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
22.2% (higher than 97% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-qx32-f6g6-fcfrGO-2022-0463

Description

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).

Affected

Product or packageVersionsReported by
Unspecified productn/aCVE List
github.com/beego/beego/v2 (Go)before 2.0.3GitHub Advisory Database, Go Vulnerability Database
github.com/beego/beego (Go)before 1.12.9GitHub Advisory Database, Go Vulnerability Database
github.com/astaxie/beego (Go)all versionsGo Vulnerability Database
beego beegoup to 1.12.4, from 2.0.0 up to 2.0.2NVD

All scores

GitHub9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD6.8medium CVSS:2.0AV:N/AC:M/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

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).

GitHub Advisory Database

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).

Go Vulnerability Database

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/".

NVD (es)

El proceso de búsqueda de rutas en beego versiones hasta 1.12.4 y versiones2.x hasta 2.0.2, permite a atacantes omitir el control de acceso. Cuando es configurada una ruta /p1/p2/:name, los atacantes pueden acceder a ella al añadir .xml en varios lugares (por ejemplo, p1.xml en lugar de p1)

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31259 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-qx32-f6g6-fcfr changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0463 changed 2024-06-03CC-BY-4.0
NVDCVE-2022-31259 changed 2026-06-17Public domain