GHSA-7vpp-9cxj-q8gv

Suggest an improvement
Source
https://github.com/advisories/GHSA-7vpp-9cxj-q8gv
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2025/04/GHSA-7vpp-9cxj-q8gv/GHSA-7vpp-9cxj-q8gv.json
JSON Data
https://api.test.osv.dev/v1/vulns/GHSA-7vpp-9cxj-q8gv
Aliases
  • CVE-2025-3445
Related
Published
2025-04-14T00:30:35Z
Modified
2025-04-14T18:42:09.422089Z
Severity
  • 8.1 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:L/I:H/A:L CVSS Calculator
Summary
mholt/archiver Vulnerable to Path Traversal via Crafted ZIP File
Details

A Path Traversal "Zip Slip" vulnerability has been identified in mholt/archiver in Go. This vulnerability allows using a crafted ZIP file containing path traversal symlinks to create or overwrite files with the user's privileges or application utilizing the library.

When using the archiver.Unarchive functionality with ZIP files, like this: archiver.Unarchive(zipFile, outputDir),  A crafted ZIP file can be extracted in such a way that it writes files to the affected system with the same privileges as the application executing this vulnerable functionality. Consequently, sensitive files may be overwritten, potentially leading to privilege escalation, code execution, and other severe outcomes in some cases.

It's worth noting that a similar vulnerability was found in TAR files (CVE-2024-0406). Although a fix was implemented, it hasn't been officially released, and the affected project has since been deprecated. The successor to mholt/archiver is a new project called mholt/archives, and its initial release (v0.1.0) removes the Unarchive() functionality.

Database specific
{
    "nvd_published_at": "2025-04-13T22:15:12Z",
    "cwe_ids": [
        "CWE-22"
    ],
    "severity": "HIGH",
    "github_reviewed": true,
    "github_reviewed_at": "2025-04-14T17:55:15Z"
}
References

Affected packages

Go / github.com/mholt/archiver

Package

Name
github.com/mholt/archiver
View open source insights on deps.dev
Purl
pkg:golang/github.com/mholt/archiver

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
3.5.1

Go / github.com/mholt/archiver/v3

Package

Name
github.com/mholt/archiver/v3
View open source insights on deps.dev
Purl
pkg:golang/github.com/mholt/archiver/v3

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Last affected
3.5.1