Skip to content
Heist/ feed
Back to feed
UnratedFix available

zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory

Type: advisorySources: OSV

In `zip` 9.0.0-pre2, `ZipArchive::extract` creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions. For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26

Products
zip
Affected versions
Not specified
Fixed versions
9.0.0
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
30 Oct 2026, 23:06 UTC · Revision 1

Source evidence

zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory

core-osv · Original source

Published 9 Oct 2026, 12:00 UTC

In `zip` 9.0.0-pre2, `ZipArchive::extract` creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions. For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26

osv:RUSTSEC-2026-0368

zip

Fixed versions: 9.0.0

Complete source record
{
  "id": "d3faa0d8a88bedb2606b8c8228a86dea1859ecd50f4c5be3b19f1613039bf465",
  "url": "https://osv.dev/vulnerability/RUSTSEC-2026-0368",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "zip: `ZipArchive::extract` creates symbolic links whose attacker-controlled targets are outside the destination directory",
    "summary": "In `zip` 9.0.0-pre2, `ZipArchive::extract` creates a symbolic link from an archive entry after validating only the output entry path. The link target bytes are passed directly to the platform symlink API, so a malicious archive can create an entry inside the destination that resolves to an attacker-chosen path outside it. This behavior was verified on macOS and Linux. On either platform, a subsequent application read or write through that extracted entry accesses the external target with the extracting process's permissions. For further details see: https://github.com/zip-rs/zip2/security/advisories/GHSA-4v9h-p7m9-rh26",
    "evidence": "osv:RUSTSEC-2026-0368",
    "products": [
      {
        "name": {
          "value": "zip",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "9.0.0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "RUSTSEC-2026-0368",
      "aliases": [
        "GHSA-4v9h-p7m9-rh26",
        "RUSTSEC-2026-0368"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.0.0-0"
                },
                {
                  "fixed": "9.0.0"
                }
              ]
            }
          ],
          "package": {
            "name": "zip",
            "purl": "pkg:cargo/zip",
            "ecosystem": "crates.io"
          },
          "database_specific": {
            "cvss": null,
            "source": "https://github.com/rustsec/advisory-db/blob/osv/crates/RUSTSEC-2026-0368.json",
            "categories": [
              "privilege-escalation"
            ],
            "informational": null
          },
          "ecosystem_specific": {
            "affects": {
              "os": [],
              "arch": [],
              "functions": []
            },
            "affected_functions": null
          }
        }
      ],
      "modified": "2026-10-16T23:30:02.383750571Z",
      "provider": "osv",
      "references": [
        "https://crates.io/crates/zip",
        "https://rustsec.org/advisories/RUSTSEC-2026-0368.html"
      ],
      "provider_metadata": {
        "license": "CC0-1.0"
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 349390,
  "published_at": "2026-10-09T12:00:00+00:00"
}