UBUNTU-CVE-2025-29787

Source
https://ubuntu.com/security/CVE-2025-29787
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-29787.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2025-29787
Upstream
Published
2025-03-17T14:15:00Z
Modified
2025-09-08T17:08:13Z
Severity
  • 7.3 (High) CVSS_V4 - 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 CVSS Calculator
  • Ubuntu - medium
Summary
[none]
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.

References

Affected packages

Ubuntu:Pro:20.04:LTS / rust-zip

Package

Name
rust-zip
Purl
pkg:deb/ubuntu/rust-zip@0.5.3-2?arch=source&distro=esm-apps/focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

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.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"
        }
    ]
}

Ubuntu:22.04:LTS / rust-zip

Package

Name
rust-zip
Purl
pkg:deb/ubuntu/rust-zip@0.5.13-1?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.5.8-2
0.5.13-1

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"
        }
    ]
}

Ubuntu:24.04:LTS / rust-zip

Package

Name
rust-zip
Purl
pkg:deb/ubuntu/rust-zip@0.6.6-2?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.6.6-1
0.6.6-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-zip-dev",
            "binary_version": "0.6.6-2"
        }
    ]
}

Ubuntu:25.04 / rust-zip

Package

Name
rust-zip
Purl
pkg:deb/ubuntu/rust-zip@2.5.0-1?arch=source&distro=plucky

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

0.*

0.6.6-5

2.*

2.5.0-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "librust-zip-dev",
            "binary_version": "2.5.0-1"
        }
    ]
}