Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cloudwego/hertz/pkg/protocol
  4. ›
  5. CVE-2022-40082

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

September 29, 2022 (updated February 9, 2023)

Hertz v0.3.0 ws discovered to contain a path traversal vulnerability via the normalizePath function.

References

  • github.com/advisories/GHSA-c9qr-f6c8-rgxf
  • github.com/cloudwego/hertz/issues/228
  • github.com/cloudwego/hertz/pull/229
  • nvd.nist.gov/vuln/detail/CVE-2022-40082
  • pkg.go.dev/vuln/GO-2022-1027

Code Behaviors & Features

Detect and mitigate CVE-2022-40082 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 before 0.3.1

Fixed versions

  • v0.3.1

Solution

Upgrade to version 0.3.1 or above.

Impact 7.5 HIGH

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

Learn more about CVSS

Weakness

  • CWE-22: Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
  • CWE-352: Cross-Site Request Forgery (CSRF)

Source file

go/github.com/cloudwego/hertz/pkg/protocol/CVE-2022-40082.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.