CVE-2021-41041 Code injection in Eclipse OpenJ9

Medium 5.3 Published Updated

Attackers can invoke unverified methods via MethodHandles in Eclipse OpenJ9, potentially leading to arbitrary code execution.

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

CVE-2021-41041 is a medium-severity code injection vulnerability in The Eclipse Foundation Eclipse OpenJ9, published on 27 Apr 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In Eclipse Openj9 before version 0.32.0, Java 8 & 11 fail to throw the exception captured during bytecode verification when verification is triggered by a MethodHandle invocation, allowing unverified methods to be invoked using MethodHandles.

Weakness: CWE-908, CWE-843, CWE-252

Which versions are affected by CVE-2021-41041?

It affects 2 products.

Products include Eclipse Openj9, Oracle Java Se.

How do I fix CVE-2021-41041?

Upgrade to a fixed version.

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

Is CVE-2021-41041 being exploited?

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

Sources

Also known as GHSA-jmjp-ppjm-p747, UBUNTU-CVE-2021-41041.

Is CVE-2021-41041 in your software?

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

Check your SBOMs for free