ubuntu-cve-2025-29787
Vulnerability from osv_ubuntu
Published
2025-03-17 14:15
Modified
2026-05-20 15:17
Summary
Details

zip is a zip library for rust which supports reading and writing of simple ZIP files. In the archive extraction routine of affected versions of the zip crate starting with version 1.3.0 and prior to version 2.3.0, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted. Users who extract untrusted archive files using the following high-level API method may be affected and critical files on the system may be overwritten with arbitrary file permissions, which can potentially lead to code execution. Version 2.3.0 fixes the issue.


{
  "affected": [
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librust-zip+bzip2-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip+default-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip+deflate-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip+deflate-miniz-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip+deflate-zlib-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip+flate2-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip+time-dev",
            "binary_version": "0.5.3-2"
          },
          {
            "binary_name": "librust-zip-dev",
            "binary_version": "0.5.3-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:20.04:LTS",
        "name": "rust-zip",
        "purl": "pkg:deb/ubuntu/rust-zip@0.5.3-2?arch=source\u0026distro=focal"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.5.0-1",
        "0.5.3-1",
        "0.5.3-2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librust-zip+bzip2-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip+default-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip+deflate-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip+deflate-miniz-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip+deflate-zlib-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip+flate2-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip+time-dev",
            "binary_version": "0.5.13-1"
          },
          {
            "binary_name": "librust-zip-dev",
            "binary_version": "0.5.13-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:22.04:LTS",
        "name": "rust-zip",
        "purl": "pkg:deb/ubuntu/rust-zip@0.5.13-1?arch=source\u0026distro=jammy"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.5.8-2",
        "0.5.13-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librust-zip-dev",
            "binary_version": "0.6.6-2"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:24.04:LTS",
        "name": "rust-zip",
        "purl": "pkg:deb/ubuntu/rust-zip@0.6.6-2?arch=source\u0026distro=noble"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "0.6.6-1",
        "0.6.6-2"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librust-zip-dev",
            "binary_version": "2.5.0-1"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:25.10",
        "name": "rust-zip",
        "purl": "pkg:deb/ubuntu/rust-zip@2.5.0-1?arch=source\u0026distro=questing"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.5.0-1"
      ]
    },
    {
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "librust-zip-dev",
            "binary_version": "5.1.1-3"
          }
        ]
      },
      "package": {
        "ecosystem": "Ubuntu:26.04:LTS",
        "name": "rust-zip",
        "purl": "pkg:deb/ubuntu/rust-zip@5.1.1-3?arch=source\u0026distro=resolute"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "2.5.0-1",
        "5.1.1-2",
        "5.1.1-3"
      ]
    }
  ],
  "aliases": [],
  "details": "`zip` is a zip library for rust which supports reading and writing of simple ZIP files. In the archive extraction routine of affected versions of the `zip` crate starting with version 1.3.0 and prior to version 2.3.0, symbolic links earlier in the archive are allowed to be used for later files in the archive without validation of the final canonicalized path, allowing maliciously crafted archives to overwrite arbitrary files in the file system when extracted. Users who extract untrusted archive files using the following high-level API method may be affected and critical files on the system may be overwritten with arbitrary file permissions, which can potentially lead to code execution. Version 2.3.0 fixes the issue.",
  "id": "UBUNTU-CVE-2025-29787",
  "modified": "2026-05-20T15:17:32Z",
  "published": "2025-03-17T14:15:00Z",
  "references": [
    {
      "type": "REPORT",
      "url": "https://ubuntu.com/security/CVE-2025-29787"
    },
    {
      "type": "REPORT",
      "url": "https://www.cve.org/CVERecord?id=CVE-2025-29787"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/zip-rs/zip2/security/advisories/GHSA-94vh-gphv-8pm8"
    }
  ],
  "related": [],
  "schema_version": "1.7.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:H/AT:N/PR:L/UI:N/VC:L/VI:H/VA:N/SC:H/SI:H/SA:H",
      "type": "CVSS_V4"
    },
    {
      "score": "medium",
      "type": "Ubuntu"
    }
  ],
  "upstream": [
    "CVE-2025-29787"
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Loading…