Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/astaxie/beego/session
  4. ›
  5. CVE-2022-31836

CVE-2022-31836: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

July 5, 2022 (updated February 24, 2023)

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.

References

  • github.com/beego/beego/issues/4961
  • nvd.nist.gov/vuln/detail/CVE-2022-31836

Code Behaviors & Features

Detect and mitigate CVE-2022-31836 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions up to 2.0.3

Fixed versions

  • v2.0.4

Solution

Upgrade to version 2.0.4 or above

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')

Source file

go/github.com/astaxie/beego/session/CVE-2022-31836.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:14:28 +0000.