CVE-2019-10774 php-shellcommand command injection vulnerability

Critical 9.8 Published Updated

Attackers can execute arbitrary code via command injection in the php-shellcommand library, requiring an upgrade to secure the application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2019-10774?

CVE-2019-10774 is a critical command injection vulnerability in php-shellcommand, published on 30 Dec 2019. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

php-shellcommand versions before 1.6.1 have a command injection vulnerability. Successful exploitation could lead to arbitrary code execution.

Weakness: CWE-78

Which versions are affected by CVE-2019-10774?

2 open source packages ship an affected version, including mikehaertl/php-shellcommand. It affects 1 product.

PackageAffectedFixed in
mikehaertl/php-shellcommand PackagistAll versions1.6.1
mikehaertl/php-shellcommand PackagistAll versions1.6.1

Products include Php-Shellcommand Project Php-Shellcommand.

How do I fix CVE-2019-10774?

Upgrade mikehaertl/php-shellcommand to 1.6.1 or later.

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

Is CVE-2019-10774 being exploited?

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

Sources

Also known as DEBIAN-CVE-2019-10774, GHSA-c7fv-wv9f-cgjw, SNYK-PHP-MIKEHAERTLPHPSHELLCOMMAND-538426.

Is CVE-2019-10774 in your software?

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

Check your SBOMs for free