# CVE-2022-31836: GO-2022-0569 - Path traversal in github.com/beego/beego and beego/v2

Source: https://junglewise.ai/threats/cve-2022-31836-path-traversal-in-beego  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-08-23  
License: CC BY 4.0 with a link back

CVE-2022-31836 · Severity: low · CVSS 3.1 · Published 2022-08-23

Path traversal in github.com/beego/beego and beego/v2

Technologies: [github.com/astaxie/beego (Go)](https://junglewise.ai/threats/technologies/github-com-astaxie-beego), [github.com/beego/beego (Go)](https://junglewise.ai/threats/technologies/github-com-beego-beego), [github.com/beego/beego/v2 (Go)](https://junglewise.ai/threats/technologies/github-com-beego-beego-v2). Vendors: [Go](https://junglewise.ai/threats/vendors/go).

## Quick answers

**Is CVE-2022-31836 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-31836 being exploited in the wild.

**How severe is CVE-2022-31836?** Low severity, with a CVSS score of 3.1, published 23 August 2022.

**Which products and versions are affected?** github.com/astaxie/beego (Go) SEMVER:introduced=0; github.com/beego/beego (Go) SEMVER:introduced=0,fixed=1.12.11; github.com/beego/beego/v2 (Go) SEMVER:introduced=2.0.0,fixed=2.0.4.

**Is there a fix for CVE-2022-31836?** Yes. github.com/beego/beego (Go): upgrade to 1.12.11 or later; github.com/beego/beego/v2 (Go): upgrade to 2.0.4 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-31836?** Check whether you run github.com/astaxie/beego (Go), github.com/beego/beego (Go) or github.com/beego/beego/v2 (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- github.com/beego/beego (Go): upgrade to 1.12.11 or later

  ```sh
  go get github.com/beego/beego@v1.12.11
  ```

- github.com/beego/beego/v2 (Go): upgrade to 2.0.4 or later

  ```sh
  go get github.com/beego/beego/v2@v2.0.4
  ```


## Affected products

- github.com/astaxie/beego (Go) SEMVER:introduced=0
- github.com/beego/beego (Go) SEMVER:introduced=0,fixed=1.12.11
- github.com/beego/beego/v2 (Go) SEMVER:introduced=2.0.0,fixed=2.0.4

## Identifiers

- CVE-2022-31836
- GHSA-95f9-94vc-665h
- GO-2022-0569

## Related threats

- [Beego allows Reflected/Stored XSS in Beego's RenderForm() Function Due to Unescaped User Input](https://junglewise.ai/threats/cve-2025-30223-beego-allows-reflected-stored-xss-in-beego-s-renderform-function)
- [GO-2024-3331 - Beego has Collision Hazards of MD5 in Cache Key Filenames in github.com/beego/beego](https://junglewise.ai/threats/cve-2024-55885-beego-has-collision-hazards-of-md5-in-cache-key-filenames)
- [GO-2024-3016 - Beego privilege escalation vulnerability via sendMail in github.com/beego/beego/v2](https://junglewise.ai/threats/cve-2024-40464-beego-privilege-escalation-vulnerability)
- [Beego privilege escalation vulnerability](https://junglewise.ai/threats/cve-2024-40465-beego-privilege-escalation-vulnerability)
- [GO-2022-0572 - Access control bypass via incorrect route lookup in github.com/beego/beego and beego/v2](https://junglewise.ai/threats/cve-2021-30080-access-control-bypass-in-beego)
