CVE-2021-28254 Deserialization in n/a

Critical 9.8 Published Updated

Attackers can execute arbitrary commands via a deserialization flaw in the destruct function of the Laravel framework.

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

What is CVE-2021-28254?

CVE-2021-28254 is a critical unsafe deserialization vulnerability in n/a, published on 18 Apr 2023. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A deserialization vulnerability in the destruct() function of Laravel v8.5.9 allows attackers to execute arbitrary commands.

Weakness: CWE-502

Which versions are affected by CVE-2021-28254?

1 open source package ship an affected version, including laravel. It affects 1 product.

PackageAffectedFixed in
laravel BitnamiFrom 8.5.98.5.10

Products include Laravel Laravel.

How do I fix CVE-2021-28254?

Upgrade laravel to 8.5.10 or later.

Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.

Is CVE-2021-28254 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2021-28254 exists.

Sources

Also known as BIT-laravel-2021-28254, GHSA-5hq5-9pj6-4c2r.

Is CVE-2021-28254 in your software?

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

Check your SBOMs for free