Java4Shell: A Java Base64 Flaw Puts Jira, Jenkins and Keycloak at Risk on Some Servers
Security firm Calif has disclosed a Java vulnerability called Java4Shell (CVE-2026-114938) that could let attackers without an account run their own code on applications including Jira, Jenkins and Keycloak. Oracle and the OpenJDK project released fixes this week. Amazon has fixed its Corretto builds, while Red Hat is still preparing its own. According to Infosecurity Magazine, details leaked before the planned coordinated release, weeks after the similar PHP2Shell leak, and Calif published its details on November 17. Infosecurity Magazine adds that each Java vendor will ship its own fixed build on its own schedule.
The flaw sits in a faster Base64 decoder that Java uses on x86-64 Intel and AMD chips with the AVX-512 VBMI feature, after the code has run often enough to be compiled for speed. A malformed string ending in an extra = makes the decoder write 62 or 63 bytes past the end of its output before Java rejects the string. Servers often decode Base64 data, such as HTTP Basic login headers, SAML artifacts and CSRF tokens, before checking who is logged in, which is how an attacker needs no account.
Affected versions include Java 17.0.6 and later on the 17 line, plus Java 21, 25 and 27. Standard Java 8 and 11 are not affected, but the Java SE 8 Performance Pack build 8u511b33-perf and certain GraalVM releases are. Intel Ice Lake, Sapphire Rapids, Emerald Rapids and Granite Rapids chips, and AMD Zen 4 or newer, can run the vulnerable code. ARM64 chips do not, and Infosecurity Magazine notes this includes AWS Graviton.
Infosecurity Magazine reports that Calif says services shown to be open to remote code execution include Keycloak, Jira, Confluence, JFrog Artifactory, Jenkins and PingFederate. Others, such as Apache Kafka Broker, Apache Solr, Elasticsearch, Gerrit and Spinnaker, are exposed only if the attacker can authenticate. It also says CISA issued an emergency advisory on November 17 urging organisations to patch as soon as updates are available.
Real-world risk is still unclear. Calif is withholding its attack code, and other labs have reproduced crashes and a memory leak but not code execution. Each target needs its own memory layout and timing, and failed attempts can crash Java. According to Infosecurity Magazine, VulnCheck and Endor Labs found that success depends on the Java version, the processor and the application, and VulnCheck reproduced the issue on Ice Lake hardware. Canada's Cyber Centre knows of no attacks, and the flaw was not in CISA's KEV catalog when checked; Infosecurity Magazine says no exploitation in the wild had been reported as of November 18. Severity scores vary: 8.1 from Oracle (Infosecurity Magazine specifies CVSS v3.1), 9.2 from Calif (CVSS v4.0, per Infosecurity Magazine), and a preliminary 9.8 from Red Hat.
Why it matters
Pre-authentication paths such as login headers and tokens mean a login screen and access controls do not protect exposed Java services, since the bug triggers before identity is checked. Because the vulnerable code runs only on certain chips, the same container image can be exposed on one host and safe on another, so version inventories alone will misjudge risk. Even without proven code execution, repeatable crashes make availability of identity and build systems a real concern.
What to do
- Inventory Java 17, 21, 25 and 27 workloads, and the 8u511b33-perf and GraalVM builds, running on AVX-512 VBMI capable Intel and AMD hosts.
- Apply each vendor's fixed Java build as soon as it ships, starting with internet-facing Keycloak, Jira, Confluence, Jenkins, Artifactory and PingFederate.
- Watch identity and build servers for repeated Java crashes, which may indicate exploitation attempts.
- Track the CISA advisory and KEV catalog for changes in exploitation status.