Java4Shell: OpenJDK Base64 Flaw Enables Remote Code Execution
A critical bug in OpenJDK's Base64 decoding optimization allows remote code execution in Jira, Jenkins and many other products. In some of them, no authentication is required.

Sysadmins have another high-severity vulnerability to deal with, and the steady stream of such flaws is not expected to let up anytime soon. This time the target is Java, which Oracle says runs on billions of devices. The bug allows remote code execution (RCE), and in many cases the attacker does not even need to log in to the application.
The research lab that found the flaw, Calif Research, has named it Java4Shell. Once an attacker reaches a target system, they can read user and internal data, gain a foothold for later steps such as database access, and potentially take control of the system.
The root cause: a Base64 optimization in OpenJDK
The bug lies in the OpenJDK library, which underpins nearly all Java distributions, Oracle's included. It surfaces in an optimization of the Base64 decoding function found in almost every programming language. Base64 is a format that makes it easy to convert binary data into plain text. It is widely used to embed image data in HTML or CSS, attach files to emails, and display things like checksums and encryption key fingerprints as text.
Technically, the problem stems from a simple bounds check failing in a hand-written assembly optimization. By submitting 64 "A" characters followed by a single "=" padding character, an attacker can overwrite adjacent memory and then turn that corruption into a weapon, a mechanism likened to the Heartbleed bug. The researchers rated the flaw 9.2 on the new CVSS 4.0 scale. Vendors' own assessments, including those of Oracle and Red Hat, vary from 8 to 9.8 depending on the supplier.
Which systems are at risk
Triggering the bug requires a condition, though it is not hard to meet. The Java instance must be running on an x86-64 processor with AVX-512 support and the VBMI extension. In practice, on server parts, that covers Intel's Ice Lake family from 2021 and AMD's Zen 4 family from 2022. Because the faulty code is specific to VBMI, older processors are not affected.
According to Calif's list, at the time of writing unauthenticated full RCE was possible in Keycloak, Jira, Confluence, Jenkins and PingFederate. In Apache Kafka Broker, Solr, Elasticsearch, Gerrit and Spinnaker, authentication was needed first. Because Java is so widespread, companies such as IBM, Red Hat, Siemens and Broadcom will have to issue security advisories and updates for their own products.
A fix exists, but patching may take a long time
Oracle has fixed the bug and released updated versions. But as with digital certificates, operating systems and individual programs can each carry their own copy of the Java runtime, so the affected footprint is far wider than it first appears. Many containers also run Java-based applications in one form or another, and container registries are likely to hold a large number of vulnerable images.
Calif says the flaw was found by an AI bot at a token cost of roughly $200. Unlike similar cases, however, this is not a shallow find: it is not considered an easy bug that points to sloppy code or poor network security hygiene. The flaw is not expected to disappear quickly, and the patching process could take a long time.
Add as a preferred source on Google
Comments
No comments yet. Be the first to comment.


