Advisory

GHSA-95f9-94vc-665h

Also known as: CVE-2022-31836, GO-2022-0569

Summary

Path Traversal in Beego

Details

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.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2022-07-06 00:00 UTC
Modified
2026-07-08 06:27 UTC

Affected packages and fixes

github.com/beego/beego

Go · All systems

Affected

  • introduced 0, fixed 1.12.11 (semver)

Fixed versions

1.12.11

Fix

github.com/beego/beego/v2

Go · All systems

Affected

  • introduced 2.0.0, fixed 2.0.4 (semver)

Fixed versions

2.0.4

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences