CVE-2021-41035CWE-250CWE-440

In Eclipse Openj9 before version 0.29.0, the JVM does not throw IllegalAccessError for MethodHandles that invoke inaccessible interface methods

published October 25, 2021

CVSS
—
EPSS
2%
Percentile
78.6
In the wild
Unconfirmed
What it is

⚠️ A sneaky gap in Eclipse OpenJ9 could let inaccessible interface methods slip through the cracks, like a bouncer letting someone into the club without checking their ID! 🔍 Think of it as a restaurant that serves food to anyone who walks in, even if they don't have a reservation. Normally, you’d need a table to enjoy the meal, but this JVM isn’t checking the guest list properly! An attacker could potentially exploit this oversight, invoking methods that they shouldn't have access to, which could lead to unexpected behavior in your application. This could compromise the integrity of your system, making it a surprisingly sneaky way to access restricted functionality!

Put simply

Think of it as a restaurant that serves food to anyone who walks in, even if they don't have a reservation. Normally, you’d need a table to enjoy the meal, but this JVM isn’t checking the guest list properly! The vulnerability arises because the JVM fails to throw an IllegalAccessError when MethodHandles are used to invoke inaccessible interface methods, allowing unauthorized access to methods that should be protected by visibility rules.

What to do

An attacker could potentially exploit this oversight, invoking methods that they shouldn't have access to, which could lead to unexpected behavior in your application. This could compromise the integrity of your system, making it a surprisingly sneaky way to access restricted functionality! Upgrade Eclipse OpenJ9 to version 0.29.0 or later to patch this vulnerability. It’s also a good idea to review your application's method access controls to ensure they align with your security standards. You've got this! Patch up and your Java environment will be safer and sounder in no time! 🛡️

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.01824 · 78.6th percentile
Weaknesses
CWE-250 · Execution with Unnecessary Privileges; CWE-440 · Expected Behavior Violation
Published
2021-10-25T15:05Z
EPSS history
Timeline
  • 25 OCT 15:05Z
    In Eclipse Openj9 before version 0.29.0, the JVM does not throw IllegalAccessError for MethodHandles that invoke inaccessible interface methods
    cvelistv5