UBUNTU-CVE-2018-1000156

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

GNU Patch version 2.7.6 contains an input validation vulnerability when processing patch files, specifically the EDITOR_PROGRAM invocation (using ed) can result in code execution. This attack appear to be exploitable via a patch file processed via the patch utility. This is similar to FreeBSD's CVE-2015-1418 however although they share a common ancestry the code bases have diverged over time.

References

Affected packages

Ubuntu:14.04:LTS / patch

Package

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

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.1-4ubuntu2.4

Affected versions

2.*

2.7.1-3
2.7.1-4
2.7.1-4ubuntu1
2.7.1-4ubuntu2
2.7.1-4ubuntu2.3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.7.1-4ubuntu2.4",
            "binary_name": "patch"
        },
        {
            "binary_version": "2.7.1-4ubuntu2.4",
            "binary_name": "patch-dbgsym"
        }
    ]
}

Ubuntu:16.04:LTS / patch

Package

Name
patch
Purl
pkg:deb/ubuntu/patch?arch=src?distro=xenial

Affected ranges

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

Affected versions

2.*

2.7.5-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "2.7.5-1ubuntu0.16.04.1",
            "binary_name": "patch"
        },
        {
            "binary_version": "2.7.5-1ubuntu0.16.04.1",
            "binary_name": "patch-dbgsym"
        }
    ]
}