Buffer overflow in OpenJDK's Base64 decoder enables unauthenticated RCE
CVE-2026-114938, which the researcher Calif is calling Java4Shell, is a buffer overflow in OpenJDK's Base64 decoder. The optimized decoder miscalculates the store mask for the padded tail of its input and writes past the end of the output buffer. The bug lives in the JIT-compiled fast path behind java.util.Base64.Decoder , so any application that decodes attacker-controlled Base64 can reach it.…
A critical vulnerability known as Java4Shell has been discovered in OpenJDK's Base64 decoder, which allows unauthorized remote code execution. The issue arises from a buffer overflow that occurs when the optimized decoder incorrectly calculates the store mask for padded input tails, resulting in data being written past the output buffer's end.
This flaw exists within the JIT-compiled fast path of java.util.Base64.Decoder, making any application that decodes attacker-controlled Base64 susceptible. Potential entry points include login headers and file uploads. Notable affected applications include Keycloak, Atlassian Jira and Confluence, JFrog Artifactory, Jenkins, and PingFederate, as well as Apache Kafka, Solr, Elasticsearch, Gerrit, and Spinnaker.
However, there is no universal exploit; each target requires a unique chain tailored to its specific Base64 feeding mechanism and hardware configuration. No confirmed cases of wild exploitation have been reported yet, and Oracle has released patched builds for Java 17, 21, 25, and 27. Organizations should prioritize patching internet-facing services that handle Base64 inputs to mitigate the risk.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.