CVE-2022-31836
JSON

9.8critical

Path Traversal in Beego

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
1.69% (higher than 77% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
mitre
Also known as
GHSA-95f9-94vc-665hGO-2022-0569

Description

The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.

Affected

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

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
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.

GitHub Advisory Database

The leafInfo.match() function in Beego v2.0.3 and below uses path.join() to deal with wildcardvalues which can lead to cross directory risk.

Go Vulnerability Database

The leafInfo.match() function uses path.join() to deal with wildcard values which can lead to cross directory risk.

NVD (es)

La función leafInfo.match() en Beego versiones v2.0.3 y versiones anteriores usa path.join() para tratar con valores comodín que pueden conllevar a un riesgo entre directorios

References

Sources

SourceRecordLicence
CVE ListCVE-2022-31836 changed 2024-08-03CVE Terms of Use
GitHub Advisory DatabaseGHSA-95f9-94vc-665h changed 2026-07-08CC-BY-4.0
Go Vulnerability DatabaseGO-2022-0569 changed 2024-05-20CC-BY-4.0
NVDCVE-2022-31836 changed 2026-06-17Public domain