Skip to content

Vulnerabilities & Patches

Java4Shell memory-corruption flaw affects Keycloak and other Java web applications

SANS Internet Storm Center said its diary author exposed a vulnerable Keycloak instance online and found no Java4Shell exploits against it.

https://breach-signal.com/vulnerabilities/java4shell-cve-2026-114938-keycloak-flaw-exploits-seen/

Share

Key facts

  • Java4Shell corrupts memory in the Java BASE64 decoder.
  • A Java application that receives specially crafted BASE64 strings can be exploited through this flaw.
  • Keycloak was identified as a vulnerable and exploitable application.
  • The SANS diary author exposed a vulnerable Keycloak instance online to record attack attempts.

SANS Internet Storm Center detailed CVE-2026-114938, known as Java4Shell, a memory-corruption flaw in Java’s BASE64 decoder affecting Keycloak and other Java web applications; the flaw was announced and patched about two weeks before Dec. 4.

Java4Shell corrupts memory in the Java BASE64 decoder, and a Java application that receives specially crafted BASE64 strings can be exploited through the flaw, according to SANS Internet Storm Center. Web applications commonly use BASE64 and are often exposed. Keycloak was identified as a vulnerable and exploitable application.

The SANS Internet Storm Center diary author exposed a vulnerable Keycloak instance online to record attack attempts, running it behind a mitmproxy, which records complete requests in easy-to-parse JSON and can offer a proper TLS setup to the attacker. About 30,000 requests arrived, and 1,532 of them targeted Keycloak specifically. Only four requests tried to log in.

Key figures, SANS honeypot drew requests but no Java4Shell exploits. Requests received: 30,000; Targeted Keycloak: 1,532; Distinct payloads: 13.

No Java4Shell exploits were observed against the instance, SANS Internet Storm Center said. The author found 13 distinct BASE64 encoded payloads, and none indicated Java4Shell.

Attackers sent GET /SETTINGS.CFG to port 8443 with User-Agent asusrouter– and a cookie containing asus_token, the center said. The ASUS router issue is a simple authentication-bypass vulnerability under heavy exploitation. ASUS also appeared in SETROOTCERTIFICATE requests for favicon.ico directed at host 73.148.200.126, and SETROOTCERTIFICATE can be used against affected ASUS routers running AICloud. The activity represented a replicating botnet unrelated to Java.

Keycloak-specific requests included internet-wide research activity like Palo Alto’s Cortex Xpanse and reconnaissance trying to identify the Keycloak version and configuration, according to SANS Internet Storm Center. Traffic also included Next.JS/React Server payloads and scans for credential files. Base64 encoding appeared in some credential file scans aimed at brute-forcing authentication headers.

Johannes B. Ullrich, Ph.D., Dean of Research at SANS.edu, said an old random ASUS router left on a network is more likely to cause problems than the latest Java4Shell hype vulnerability. “No, I did not see ANY Java4Shell exploits,” Ullrich said.

Was this helpful?

Join the discussion

Please read our Comment Policy before commenting. First-time comments are held for moderation. By posting a comment you agree to our Terms of Use and Privacy Policy, which explain how your name, email address and comment are used.

Your email address will not be published. Required fields are marked *