CVE-2019-13638 Command injection in n/a

High 7.8 Published Updated

GNU patch allows OS shell command injection via crafted ed-style diff payloads, enabling arbitrary code execution when processing malicious patch files.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2019-13638?

CVE-2019-13638 is a high-severity command injection vulnerability in Debian Debian Linux, published on 26 Jul 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official description

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.

Weakness: CWE-78

Which versions are affected by CVE-2019-13638?

It affects 2 products.

Products include Debian Debian Linux, Gnu Patch.

How do I fix CVE-2019-13638?

Upgrade to a fixed version.

Upgrade, and pass arguments to programs as a list instead of through a shell. More about Command injection.

Is CVE-2019-13638 being exploited?

There is no known exploitation of CVE-2019-13638 in the wild and no public exploit code.

All Debian Debian Linux vulnerabilities

Sources

Also known as ALPINE-CVE-2019-13638, AZL-35106, AZL-6790, CLEANSTART-2026-LC02147, DEBIAN-CVE-2019-13638, GHSA-vqpq-8jvg-rwmx and 2 more.

Is CVE-2019-13638 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free