CVE-2021-24040 Deserialization in ParlAI
An attacker with local file write access can achieve remote code execution via unsafe YAML deserialization in the ParlAI library.
- 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-24040?
CVE-2021-24040 is a critical unsafe deserialization vulnerability in Facebook ParlAI, published on 10 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
Due to use of unsafe YAML deserialization logic, an attacker with the ability to modify local YAML configuration files could provide malicious input, resulting in remote code execution or similar risks. This issue affects ParlAI prior to v1.1.0.
Weakness: CWE-502
Which versions are affected by CVE-2021-24040?
It affects 1 product.
Products include Facebook Parlai.
How do I fix CVE-2021-24040?
Upgrade to a fixed version.
Upgrade, and only deserialise data from trusted sources or with an allow-list of types. More about Unsafe deserialization.
Is CVE-2021-24040 being exploited?
There is no known exploitation of CVE-2021-24040 in the wild and no public exploit code.
Public exploit code: 1 Exploit-DB entry.