UBUNTU-CVE-2022-1271

Source
https://ubuntu.com/security/CVE-2022-1271
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-1271.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2022-1271
Related
Published
2022-04-07T00:00:00Z
Modified
2022-04-07T00:00:00Z
Severity
  • 8.8 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
Summary
[none]
Details

An arbitrary file write vulnerability was found in GNU gzip's zgrep utility. When zgrep is applied on the attacker's chosen file name (for example, a crafted file name), this can overwrite an attacker's content to an arbitrary attacker-selected file. This flaw occurs due to insufficient validation when processing filenames with two or more newlines where selected content and the target file names are embedded in crafted multi-line file names. This flaw allows a remote, low privileged attacker to force zgrep to write arbitrary files on the system.

References

Affected packages

Ubuntu:Pro:14.04:LTS / gzip

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6-3ubuntu1+esm1

Affected versions

1.*

1.6-2ubuntu1
1.6-3ubuntu1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.6-3ubuntu1+esm1",
            "binary_name": "gzip"
        },
        {
            "binary_version": "1.6-3ubuntu1+esm1",
            "binary_name": "gzip-dbgsym"
        }
    ]
}

Ubuntu:Pro:14.04:LTS / xz-utils

Package

Name
xz-utils
Purl
pkg:deb/ubuntu/xz-utils?arch=src?distro=trusty/esm

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1

Affected versions

5.*

5.1.1alpha+20120614-2ubuntu1
5.1.1alpha+20120614-2ubuntu2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "liblzma-dev"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "liblzma-doc"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "liblzma5"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "liblzma5-dbgsym"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "xz-utils"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "xz-utils-dbgsym"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "xzdec"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.14.04.1+esm1",
            "binary_name": "xzdec-dbgsym"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / gzip

Package

Name
gzip
Purl
pkg:deb/ubuntu/gzip?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6-4ubuntu1+esm1

Affected versions

1.*

1.6-4ubuntu1

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.6-4ubuntu1+esm1",
            "binary_name": "gzip"
        },
        {
            "binary_version": "1.6-4ubuntu1+esm1",
            "binary_name": "gzip-dbgsym"
        }
    ]
}

Ubuntu:Pro:16.04:LTS / xz-utils

Package

Name
xz-utils
Purl
pkg:deb/ubuntu/xz-utils?arch=src?distro=esm-infra/xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1

Affected versions

5.*

5.1.1alpha+20120614-2ubuntu2

Ecosystem specific

{
    "availability": "Available with Ubuntu Pro (Infra-only): https://ubuntu.com/pro",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "liblzma-dev"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "liblzma-doc"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "liblzma5"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "liblzma5-dbgsym"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "xz-utils"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "xz-utils-dbgsym"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "xzdec"
        },
        {
            "binary_version": "5.1.1alpha+20120614-2ubuntu2.16.04.1+esm1",
            "binary_name": "xzdec-dbgsym"
        }
    ]
}

Ubuntu:18.04:LTS / gzip

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.6-5ubuntu1.2

Affected versions

1.*

1.6-5ubuntu1
1.6-5ubuntu1.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.6-5ubuntu1.2",
            "binary_name": "gzip"
        },
        {
            "binary_version": "1.6-5ubuntu1.2",
            "binary_name": "gzip-dbgsym"
        },
        {
            "binary_version": "1.6-5ubuntu1.2",
            "binary_name": "gzip-win32"
        }
    ]
}

Ubuntu:18.04:LTS / xz-utils

Package

Name
xz-utils
Purl
pkg:deb/ubuntu/xz-utils?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.2.2-1.3ubuntu0.1

Affected versions

5.*

5.2.2-1.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "liblzma-dev"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "liblzma-doc"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "liblzma5"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "liblzma5-dbgsym"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "xz-utils"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "xz-utils-dbgsym"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "xzdec"
        },
        {
            "binary_version": "5.2.2-1.3ubuntu0.1",
            "binary_name": "xzdec-dbgsym"
        }
    ]
}

Ubuntu:20.04:LTS / gzip

Package

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

Affected ranges

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

Affected versions

1.*

1.10-0ubuntu3
1.10-0ubuntu4

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "1.10-0ubuntu4.1",
            "binary_name": "gzip"
        },
        {
            "binary_version": "1.10-0ubuntu4.1",
            "binary_name": "gzip-dbgsym"
        },
        {
            "binary_version": "1.10-0ubuntu4.1",
            "binary_name": "gzip-win32"
        }
    ]
}

Ubuntu:20.04:LTS / xz-utils

Package

Name
xz-utils
Purl
pkg:deb/ubuntu/xz-utils?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.2.4-1ubuntu1.1

Affected versions

5.*

5.2.4-1
5.2.4-1ubuntu1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "liblzma-dev"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "liblzma-doc"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "liblzma5"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "liblzma5-dbgsym"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "xz-utils"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "xz-utils-dbgsym"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "xzdec"
        },
        {
            "binary_version": "5.2.4-1ubuntu1.1",
            "binary_name": "xzdec-dbgsym"
        }
    ]
}

Ubuntu:22.04:LTS / gzip

Package

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

Affected ranges

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

Affected versions

1.*

1.10-4ubuntu1
1.10-4ubuntu2
1.10-4ubuntu3

Ecosystem specific

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

Ubuntu:22.04:LTS / xz-utils

Package

Name
xz-utils
Purl
pkg:deb/ubuntu/xz-utils?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
5.2.5-2ubuntu1

Affected versions

5.*

5.2.5-2
5.2.5-2build1
5.2.5-2build2

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "liblzma-dev"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "liblzma-doc"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "liblzma5"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "liblzma5-dbgsym"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "xz-utils"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "xz-utils-dbgsym"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "xzdec"
        },
        {
            "binary_version": "5.2.5-2ubuntu1",
            "binary_name": "xzdec-dbgsym"
        }
    ]
}