GitHub Advisoryadvisory · Go

GHSA-95f9-94vc-665h Path Traversal in Beego

CRITICAL Published 2022-07-06 Modified 2023-08-28 Official page ↗
Aliases
CVE-2022-31836
Ecosystem
Go
Packages
github.com/beego/beego, github.com/beego/beego/v2
Severity
Critical
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Weaknesses
CWE-22
Reviewed
2022-07-06

Affected packages

• Go github.com/beego/beego: < 1.12.11 → fixed in 1.12.11 • Go github.com/beego/beego/v2: >= 2.0.0, < 2.0.4 → fixed in 2.0.4

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.

Related

Alias · CVE (1)

  • CVE-2022-31836 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. vulnerability

Weakness · CWE (1)

  • CWE-22 Improper Limitation of a Pathname to a Restricted Directory weakness

References