CVE-2018-25046 json
Path traversal in code.cloudfoundry.org/archiver
published 2021-04-14 5 y ago modified 2026-06-17 4 mo ago also GHSA-32qh-8vg6-9g43 , GO-2020-0025 , EUVD-2022-7478
- cvss
- 9.1
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.3%
- EPSS 1.3% chance of exploitation in 30 days, percentile 70%
- public exploits
- 0
- none known
Summary
Due to improper path sanitization, archives containing relative file paths can cause files to be written (or overwritten) outside of the target directory.
Patch / fix
- go github.com/cloudfoundry/archiver 0.0.0-20180523222229-09b5706aa936
- go code.cloudfoundry.org/archiver 0.0.0-20180523222229-09b5706aa936
- code.cloudfoundry.org/archiver code.cloudfoundry.org/archiver/extractor 0.0.0-20180523222229-09b5706aa936
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2018-25046 updated cvss 9.1
cloudfoundry/archiver: improper path sanitization can result in files being extracted outside of the target directory
-
Red Hat Quay 3 quay/quay-builder-rhel8affected: no fix available
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- partial
- Assessed
- 18 mo ago
Exploit prediction
1.29% chance of exploitation in the next 30 days, higher than 70% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| CNA | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 3.1 | 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| go | github.com/cloudfoundry/archiver | <0.0.0-20180523222229-09b5706aa936 |
0.0.0-20180523222229-09b5706aa936 |
| go | code.cloudfoundry.org/archiver | <0.0.0-20180523222229-09b5706aa936 |
0.0.0-20180523222229-09b5706aa936 |
Affected products
- code.cloudfoundry.org/archiver code.cloudfoundry.org/archiver/extractor
Classification
- Weakness
-
- CWE-22 Improper Limitation of a Pathname to a Restricted Directory
References
-
github.com
/cloudfoundry/archiver/commit/09b5706aa9367972c09144a450bb4523049ee840
web, patch, third-party-advisory
-
snyk.io
/research/zip-slip-vulnerability
web, technical-description, third-party-advisory
-
pkg.go.dev
/vuln/GO-2020-0025
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2018-25046
advisory
-
github.com
/cloudfoundry/archiver
package
Sources
- CVE List CVE-2018-25046
- GitHub Advisory GHSA-32qh-8vg6-9g43
- NVD CVE-2018-25046
- OSV GO-2020-0025
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.