CVE-2021-43852 JavaScript Prototype Pollution in oro/platform

High 8.8 Published Updated

Attackers can inject properties into JavaScript prototypes via crafted requests, potentially leading to code execution in vulnerable libraries.

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-2021-43852?

CVE-2021-43852 is a high-severity code injection vulnerability in oroinc platform, published on 4 Jan 2022. 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

OroPlatform is a PHP Business Application Platform. In affected versions by sending a specially crafted request, an attacker could inject properties into existing JavaScript language construct prototypes, such as objects. Later this injection may lead to JS code execution by libraries that are vulnerable to Prototype Pollution. This issue has been patched in version 4.2.8. Users unable to upgrade may configure a firewall to drop requests containing next strings: `__proto__` , `constructor[prototype]`, and `constructor.prototype` to mitigate this issue.

Weakness: CWE-1321, CWE-74

Which versions are affected by CVE-2021-43852?

4 open source packages ship an affected version, including oro/platform. It affects 1 product.

PackageAffectedFixed in
oro/platform PackagistFrom 4.1.04.1.14
oro/platform PackagistFrom 4.1.04.1.14
oro/platform PackagistFrom 4.2.04.2.8
oro/platform PackagistFrom 4.2.04.2.8

Products include Oroinc Oroplatform.

How do I fix CVE-2021-43852?

Upgrade oro/platform to a fixed version for your release line: 4.1.14 or 4.2.8.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2021-43852 being exploited?

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

Sources

Also known as GHSA-jx5q-g37m-h5hj.

Is CVE-2021-43852 in your software?

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

Check your SBOMs for free