CVE-2021-40146 A Remote Code Execution (RCE) vulnerability exists in Apache Any23 YAMLExtractor.java

Critical 9.8 Published Updated

A remote code execution vulnerability in Apache Any23 allows attackers to execute arbitrary code via malicious YAML input.

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-40146?

CVE-2021-40146 is a critical unsafe deserialization vulnerability in Apache Any23, published on 11 Sep 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

A Remote Code Execution (RCE) vulnerability was discovered in the Any23 YAMLExtractor.java file and is known to affect Any23 versions < 2.5. RCE vulnerabilities allow a malicious actor to execute any code of their choice on a remote machine over LAN, WAN, or internet. RCE belongs to the broader class of arbitrary code execution (ACE) vulnerabilities.

Which versions are affected by CVE-2021-40146?

2 open source packages ship an affected version, including org.apache.any23:apache-any23. It affects 1 product.

PackageAffectedFixed in
org.apache.any23:apache-any23 MavenAll versions2.5
org.apache.any23:apache-any23 MavenAll versions2.5

Products include Apache Any23.

How do I fix CVE-2021-40146?

Upgrade org.apache.any23:apache-any23 to 2.5 or later.

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

Is CVE-2021-40146 being exploited?

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

Sources

Also known as GHSA-99px-7724-484v.

Is CVE-2021-40146 in your software?

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

Check your SBOMs for free