UBUNTU-CVE-2026-85396

Source
https://ubuntu.com/security/CVE-2026-85396
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-85396
Upstream
Published
2026-09-04T00:00:00Z
Modified
2026-09-05T06:16:17.371823845Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
  • 8.7 (High) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

rubyzip versions before 3.4.0 contain a path traversal vulnerability in Zip::Entry#extract that fails to properly validate extraction paths using prefix comparison without trailing separators. Attackers can craft archive entries with names like ../upload_backup/owned.sh to write files outside the intended extraction directory into sibling paths sharing the destination prefix.

References

Affected packages

Ubuntu:16.04:LTS
ruby-zip

Package

Name
ruby-zip
Purl
pkg:deb/ubuntu/ruby-zip?arch=source&distro=xenial

Affected ranges

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

Affected versions

1.*
1.1.7-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "ruby-zip",
            "binary_version": "1.1.7-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json"
Ubuntu:18.04:LTS
ruby-zip

Package

Name
ruby-zip
Purl
pkg:deb/ubuntu/ruby-zip?arch=source&distro=bionic

Affected ranges

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

Affected versions

1.*
1.2.1-1
1.2.1-1.1~build0.18.04.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "ruby-zip",
            "binary_version": "1.2.1-1.1~build0.18.04.1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json"
Ubuntu:20.04:LTS
ruby-zip

Package

Name
ruby-zip
Purl
pkg:deb/ubuntu/ruby-zip?arch=source&distro=focal

Affected ranges

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

Affected versions

1.*
1.2.2-1
2.*
2.0.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "ruby-zip",
            "binary_version": "2.0.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json"
Ubuntu:22.04:LTS
ruby-zip

Package

Name
ruby-zip
Purl
pkg:deb/ubuntu/ruby-zip?arch=source&distro=jammy

Affected ranges

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

Affected versions

2.*
2.0.0-2
2.3.0-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "ruby-zip",
            "binary_version": "2.3.0-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json"
Ubuntu:24.04:LTS
ruby-zip

Package

Name
ruby-zip
Purl
pkg:deb/ubuntu/ruby-zip?arch=source&distro=noble

Affected ranges

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

Affected versions

2.*
2.3.2-1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "ruby-zip",
            "binary_version": "2.3.2-1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json"
Ubuntu:26.04:LTS
ruby-zip

Package

Name
ruby-zip
Purl
pkg:deb/ubuntu/ruby-zip?arch=source&distro=resolute

Affected ranges

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

Affected versions

2.*
2.3.2-1
3.*
3.2.2-1
3.2.2-2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "ruby-zip",
            "binary_version": "3.2.2-2"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-85396.json"