CVE-2019-13638

Source
https://nvd.nist.gov/vuln/detail/CVE-2019-13638
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-13638.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2019-13638
Related
Published
2019-07-26T13:15:12Z
Modified
2024-12-05T15:18:47.203053Z
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 through 2.7.6 is vulnerable to OS shell command injection that can be exploited by opening a crafted patch file that contains an ed style diff payload with shell metacharacters. The ed editor does not need to be present on the vulnerable system. This is different from CVE-2018-1000156.

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-5

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-5

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-5

Ecosystem specific

{
    "urgency": "not yet assigned"
}