# CVE-2022-31836: Path Traversal in Beego

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.69%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-07-05T00:00:00.000Z
- Modified: 2026-07-08T06:27:57.223Z
- Also known as: GHSA-95f9-94vc-665h, GO-2022-0569
- Weaknesses: CWE-22
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- github.com/beego/beego (Go): before 1.12.11
- github.com/beego/beego/v2 (Go): from 2.0.0 before 2.0.4
- github.com/astaxie/beego (Go): all versions
- beego beego: up to 2.0.3

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://github.com/beego/beego/issues/4961> (exploit, issue-tracking, patch, third-party-advisory, web)
- <https://github.com/advisories/GHSA-95f9-94vc-665h> (advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2022-31836> (advisory)
- <https://github.com/beego/beego/pull/5025> (fix, web)
- <https://github.com/beego/beego/pull/5025/commits/ea5ae58d40589d249cf577a053e490509de2bf57> (fix, web)
- <https://github.com/beego/beego> (package)
- <https://pkg.go.dev/vuln/GO-2022-0569> (web)

## Sources

- CVE List: [CVE-2022-31836](https://www.cve.org/CVERecord?id=CVE-2022-31836), CVE Terms of Use, modified 2024-08-03
- GitHub Advisory Database: [GHSA-95f9-94vc-665h](https://github.com/advisories/GHSA-95f9-94vc-665h), CC-BY-4.0, modified 2026-07-08
- Go Vulnerability Database: [GO-2022-0569](https://pkg.go.dev/vuln/GO-2022-0569), CC-BY-4.0, modified 2024-05-20
- NVD: [CVE-2022-31836](https://nvd.nist.gov/vuln/detail/CVE-2022-31836), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31836 · Whole record: https://cve.day/CVE-2022-31836.json · Rebuilt by cve.day 2026-11-25T22:58:12.712Z
