CVE-2021-46433 Sandbox bypass in fenom
Attackers can bypass the sandbox to execute arbitrary PHP code in the Fenom template engine when native functions are disabled.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2021-46433?
CVE-2021-46433 is a critical code injection vulnerability in n/a, published on 28 Mar 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
In fenom 2.12.1 and before, there is a way in fenom/src/Fenom/Template.php function getTemplateCode()to bypass sandbox to execute arbitrary PHP code when disable_native_funcs is true.
Which versions are affected by CVE-2021-46433?
2 open source packages ship an affected version, including fenom/fenom. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
fenom/fenom Packagist | All versions to 2.12.1 | None |
fenom/fenom Packagist | All versions to 2.12.1 | None |
Products include Fenom Project Fenom.
How do I fix CVE-2021-46433?
No fix has been published for CVE-2021-46433 yet. Limit exposure of the affected software until one is available.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2021-46433 being exploited?
There is no known exploitation of CVE-2021-46433 in the wild and no public exploit code.
Sources
Also known as GHSA-674v-3g2w-84gx.