CVE-2021-46433

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…

published March 28, 2022

CVSS
—
EPSS
1%
Percentile
66.0
In the wild
Unconfirmed
What it is

⚠️ A sneaky bypass exists in fenom that lets attackers execute arbitrary PHP code, even with native functions disabled! 🔥 Think of it like a restaurant with a supposedly secure kitchen. The chef has strict rules, but a clever diner finds a secret door to the kitchen and creates their dish, unmonitored. In this case, the kitchen is the sandbox, and the secret door is the vulnerability. An attacker could exploit this vulnerability to execute any PHP code they desire, potentially compromising the entire system. This could lead to unauthorized data access, manipulation of server resources, or even complete server takeover — a real recipe for disaster!

Put simply

Think of it like a restaurant with a supposedly secure kitchen. The chef has strict rules, but a clever diner finds a secret door to the kitchen and creates their dish, unmonitored. In this case, the kitchen is the sandbox, and the secret door is the vulnerability. This vulnerability in fenom 2.12.1 and earlier versions allows attackers to bypass the sandbox restrictions in the getTemplateCode() function when disable_native_funcs is set to true, granting them the ability to run arbitrary PHP code.

What to do

An attacker could exploit this vulnerability to execute any PHP code they desire, potentially compromising the entire system. This could lead to unauthorized data access, manipulation of server resources, or even complete server takeover — a real recipe for disaster! To protect your application, upgrade to fenom version 2.12.2 or later immediately. Additionally, review your code for any instances where the sandbox may not adequately restrict execution, and ensure proper validation is in place to limit user input. 🛡️ You've got this! Patch your fenom installation and secure your environment. 🦸

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01126 · 66.0th percentile
Published
2022-03-28T10:51Z
EPSS history
Timeline
  • 28 MAR 10:51Z
    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…
    cvelistv5