CVE-2019-13638

Source
https://cve.org/CVERecord?id=CVE-2019-13638
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-13638.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2019-13638
Downstream
Related
Published
2019-07-26T13:15:12.783Z
Modified
2026-03-20T11:28:03.177742Z
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

Git / cgit.git.savannah.gnu.org/cgit/patch.git

Affected ranges

Type
GIT
Repo
https://cgit.git.savannah.gnu.org/cgit/patch.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
3fcd042d26d70856e826a42b5f93dc4854d80bf0
Type
GIT
Repo
https://git.savannah.gnu.org/git/patch.git/
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
40b387de08653a1e46872b8ac1a6a14b9b94feb3
Database specific
{
    "versions": [
        {
            "introduced": "0"
        },
        {
            "last_affected": "2.7.6"
        }
    ]
}

Affected versions

v2.*
v2.1
v2.2
v2.3
v2.4
v2.5
v2.5.3
v2.5.4
v2.5.7
v2.5.8
v2.5.9
v2.6
v2.6.1
v2.7
v2.7.1
v2.7.2
v2.7.3
v2.7.4
v2.7.5
v2.7.6

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2019-13638.json"
unresolved_ranges
[
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "8.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "9.0"
            }
        ]
    },
    {
        "events": [
            {
                "introduced": "0"
            },
            {
                "last_affected": "10.0"
            }
        ]
    }
]