CVE-2018-1000156

Source
https://nvd.nist.gov/vuln/detail/CVE-2018-1000156
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-1000156.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-1000156
Related
Published
2018-04-06T13:29:00Z
Modified
2024-12-05T15:16:15.131614Z
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

Alpine:v3.10 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.11 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.12 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.13 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.14 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.15 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.16 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.17 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.18 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.19 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.20 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.21 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Alpine:v3.7 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r0

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.5-r2
2.7.5-r3

Alpine:v3.8 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r4

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3

Alpine:v3.9 / patch

Package

Name
patch
Purl
pkg:apk/alpine/patch?arch=source

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
2.7.6-r6

Affected versions

2.*

2.5.9-r0
2.6-r0
2.6.1-r0
2.6.1-r1
2.6.1-r2
2.6.1-r3
2.7-r0
2.7.1-r0
2.7.1-r1
2.7.3-r0
2.7.4-r0
2.7.5-r0
2.7.5-r1
2.7.6-r0
2.7.6-r1
2.7.6-r2
2.7.6-r3
2.7.6-r4
2.7.6-r5

Debian:11 / patch

Package

Name
patch
Purl
pkg:deb/debian/patch?arch=source

Affected ranges

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:12 / patch

Package

Name
patch
Purl
pkg:deb/debian/patch?arch=source

Affected ranges

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}

Debian:13 / patch

Package

Name
patch
Purl
pkg:deb/debian/patch?arch=source

Affected ranges

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

Ecosystem specific

{
    "urgency": "not yet assigned"
}