Live threats

All CVEs / Beego

CVE-2022-31836Beego

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
1.4%
probability of exploitation in 30 days · percentile 72
Auth required
No
Published
Jul 5, 2022
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-22
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Beego.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
Go github.com/astaxie/beego all no fixed version —
Go github.com/beego/beego < 1.12.11 1.12.11 go get github.com/beego/beego@v1.12.11
Go github.com/beego/beego < 1.12.11 1.12.11 go get github.com/beego/beego@v1.12.11
Go github.com/beego/beego/v2 ≥ 2.0.0 < 2.0.4 2.0.4 go get github.com/beego/beego/v2@v2.0.4
Go github.com/beego/beego/v2 ≥ 2.0.0 < 2.0.4 2.0.4 go get github.com/beego/beego/v2@v2.0.4

Per OSV / GitHub Advisories (GO-2022-0569, GHSA-95f9-94vc-665h). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
beegobeego≤ 2.0.3

Official sources

References

Links published by the sources. Open them with care.