Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. github.com/cloudfoundry/archiver/extractor
  4. ›
  5. CVE-2018-25046

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

December 28, 2022 (updated February 7, 2023)

Due to improper path santization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.

References

  • github.com/advisories/GHSA-32qh-8vg6-9g43
  • github.com/cloudfoundry/archiver/commit/09b5706aa9367972c09144a450bb4523049ee840
  • nvd.nist.gov/vuln/detail/CVE-2018-25046
  • pkg.go.dev/vuln/GO-2020-0025
  • snyk.io/research/zip-slip-vulnerability

Code Behaviors & Features

Detect and mitigate CVE-2018-25046 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.0.0-20180523222229-09b5706aa936

Fixed versions

  • v0.0.0-20180523222229-09b5706aa936

Solution

Upgrade to version 0.0.0-20180523222229-09b5706aa936 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/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/cloudfoundry/archiver/extractor/CVE-2018-25046.yml

Spotted a mistake? Edit the file on GitLab.

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

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