CVE-2020-19316 OS Command Injection in Laravel Framework

High 8.8 Published Updated

Attackers can execute arbitrary OS commands via the link function in Laravel Framework, requiring an upgrade to secure the application.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2020-19316?

CVE-2020-19316 is a high-severity command injection vulnerability in n/a, published on 20 Dec 2021. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

Official description

OS Command injection vulnerability in function link in Filesystem.php in Laravel Framework before 5.8.17.

Weakness: CWE-78

Which versions are affected by CVE-2020-19316?

2 open source packages ship an affected version, including laravel/framework. It affects 1 product.

PackageAffectedFixed in
laravel/framework PackagistAll versions5.8.17
laravel/framework PackagistAll versions5.8.17

Products include Laravel Framework.

How do I fix CVE-2020-19316?

Upgrade laravel/framework to 5.8.17 or later.

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

Is CVE-2020-19316 being exploited?

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

Sources

Also known as GHSA-w2pm-r78h-4m7v.

Is CVE-2020-19316 in your software?

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

Check your SBOMs for free