UBUNTU-CVE-2026-41991

Source
https://ubuntu.com/security/CVE-2026-41991
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41991.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2026-41991
Upstream
  • CVE-2026-41991
Downstream
Related
Published
2026-06-29T12:16:00Z
Modified
2026-07-06T20:30:58.394348658Z
Severity
  • 2.0 (Low) CVSS_V4 - CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N CVSS Calculator
  • 4.7 (Medium) CVSS_V3 - CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:H/A:N CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

GNU gzip contains a vulnerability in the gzexe utility related to insecure temporary file handling. When the mktemp utility is not available in the user’s PATH, gzexe falls back to constructing a temporary file path based solely on the process ID (PID). This predictable filename is created without exclusive access or existence checks. A local attacker can pre‑create the predicted temporary file path as a symbolic link pointing to an arbitrary file writable by the victim. When gzexe runs, it follows the symlink and overwrites the target file, resulting in a time‑of‑check to time‑of‑use (TOCTOU) condition that allows arbitrary file overwrite. This issue has been fixed in the commit 4e6f8b24ab823146ab8776f0b7fe486ab34d4269

References

Affected packages

Ubuntu:18.04:LTS
gzip

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=bionic

Affected ranges

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

Affected versions

1.*
1.6-5ubuntu1
1.6-5ubuntu1.1
1.6-5ubuntu1.2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.6-5ubuntu1.2"
        },
        {
            "binary_name": "gzip-win32",
            "binary_version": "1.6-5ubuntu1.2"
        }
    ]
}

Database specific

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

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=focal

Affected ranges

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

Affected versions

1.*
1.10-0ubuntu3
1.10-0ubuntu4
1.10-0ubuntu4.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.10-0ubuntu4.1"
        },
        {
            "binary_name": "gzip-win32",
            "binary_version": "1.10-0ubuntu4.1"
        }
    ]
}

Database specific

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

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.10-4ubuntu4.2

Affected versions

1.*
1.10-4ubuntu1
1.10-4ubuntu2
1.10-4ubuntu3
1.10-4ubuntu4
1.10-4ubuntu4.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.10-4ubuntu4.2"
        },
        {
            "binary_name": "gzip-win32",
            "binary_version": "1.10-4ubuntu4.2"
        }
    ],
    "availability": "No subscription required"
}

Database specific

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

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=noble

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.12-1ubuntu3.2

Affected versions

1.*
1.12-1ubuntu1
1.12-1ubuntu2
1.12-1ubuntu3
1.12-1ubuntu3.1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.12-1ubuntu3.2"
        },
        {
            "binary_name": "gzip-win32",
            "binary_version": "1.12-1ubuntu3.2"
        }
    ],
    "availability": "No subscription required"
}

Database specific

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

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=questing

Affected ranges

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

Affected versions

1.*
1.13-1ubuntu3
1.13-1ubuntu4

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.13-1ubuntu4"
        }
    ]
}

Database specific

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

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=resolute

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.14-1~exp2ubuntu1.1

Affected versions

1.*
1.13-1ubuntu4
1.13-1ubuntu5
1.14-1~exp2ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.14-1~exp2ubuntu1.1"
        }
    ],
    "availability": "No subscription required"
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41991.json"
Ubuntu:Pro:14.04:LTS
gzip

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=esm-infra-legacy%2Ftrusty

Affected ranges

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

Affected versions

1.*
1.6-2ubuntu1
1.6-3ubuntu1
1.6-3ubuntu1+esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.6-3ubuntu1+esm1"
        }
    ]
}

Database specific

source
"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-41991.json"
Ubuntu:Pro:16.04:LTS
gzip

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=source&distro=esm-infra%2Fxenial

Affected ranges

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

Affected versions

1.*
1.6-4ubuntu1
1.6-4ubuntu1+esm1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "gzip",
            "binary_version": "1.6-4ubuntu1+esm1"
        }
    ]
}

Database specific

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