Vulnerabilities / CVE-2018-25046

critical

CVE-2018-25046

cloudfoundry/archiver: improper path sanitization can result in files being extracted outside of the target directory

Published Modified CWE 22
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GHSA9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
Red Hat9.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD, GHSA. Rated lower by Red Hat (high).

Description

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

Affected packages and fixed versions

SourcePackageFixed in
go::GitHub Security Advisory Gocode.cloudfoundry.org/archiver, github.com/cloudfoundry/archiver0.0.0-20180523222229-09b5706aa936
Show all 2 entries from 1 source
SourcePackageFixed in
go::GitHub Security Advisory Gocode.cloudfoundry.org/archiver0.0.0-20180523222229-09b5706aa936
go::GitHub Security Advisory Gogithub.com/cloudfoundry/archiver0.0.0-20180523222229-09b5706aa936

References

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.