{"id":4398,"date":"2026-11-18T06:32:16","date_gmt":"2026-11-18T14:32:16","guid":{"rendered":"https:\/\/cyber.mag212.com\/java4shell-cve-2026-114938-openjdk-base64-rce-patch-guide\/"},"modified":"2026-11-18T06:32:16","modified_gmt":"2026-11-18T14:32:16","slug":"java4shell-cve-2026-114938-openjdk-base64-rce-patch-guide","status":"publish","type":"post","link":"https:\/\/cyber.mag212.com\/fr\/java4shell-cve-2026-114938-openjdk-base64-rce-patch-guide\/","title":{"rendered":"Java4Shell (CVE-2026-114938): How One Base64 Byte Leads to Pre-Auth RCE in Jira, Jenkins and Keycloak, and How to Patch"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\"><em>From the <a href=\"https:\/\/cyber.mag212.com\/one-equals-sign-too-many-mag212-cyber-daily-november-18-2026\/\">MAG212 CYBER Daily, 18 November 2026<\/a>. Every command is copied from official documentation or the cited analysis and was <strong>not tested by MAG212<\/strong>; run it only on systems you are authorised to administer.<\/em><\/p>\n\n\n\n<p class=\"m2-status wp-block-paragraph\"><strong>Status:<\/strong> <strong>Fixed on 17 November 2026<\/strong> by Oracle and the OpenJDK project. Pre-auth remote code execution was <strong>demonstrated by Calif<\/strong>, which is withholding its application exploits. <strong>No exploitation in the wild is known<\/strong>, and the flaw was not in CISA&#8217;s KEV catalog when checked. Severity scores differ by scorer: 9.2 (CVSS 4.0, Calif), 8.1 (CVSS 3.1, Oracle and CERT-EU), 9.8 preliminary (Red Hat) and 8.8 (Amazon). <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-2\">[2]<\/a><\/sup><sup><a href=\"#src-3\">[3]<\/a><\/sup><sup><a href=\"#src-4\">[4]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What happened<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">On 17 November 2026, Oracle and the OpenJDK project released fixes for CVE-2026-114938, a memory-corruption flaw in the x86-64 Base64 decoder of the HotSpot Java Virtual Machine. Researchers at Calif, who found it while auditing HotSpot with an AI coding agent, named it Java4Shell. Calif says it took about an hour to find the bug and two more hours to build a first working exploit. <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-3\">[3]<\/a><\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Calif reports that it used the flaw to run code without logging in on Keycloak, Atlassian Jira, Atlassian Confluence, JFrog Artifactory, Jenkins and PingFederate, all in default configurations. It also reached code execution after login on Apache Kafka, Apache Solr, Elasticsearch, Gerrit and Spinnaker, and on sample Struts and Spring Boot applications. Calif stresses that these lists are not complete. <sup><a href=\"#src-1\">[1]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Who is affected<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">All of these conditions must be true for the vulnerable code to run: <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-4\">[4]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Java version:<\/strong> OpenJDK 17.0.6 and later on the 17 line, plus Java 21, 25 and 27 before the 17 November fixes, in every distribution built from OpenJDK (Oracle JDK, Corretto, Temurin, Microsoft Build of OpenJDK, Azul Zulu, Liberica, SapMachine, Red Hat). Oracle also lists Java SE 8 Performance Pack 8u511b33-perf and GraalVM for JDK 17 and 21. Standard Java 8 and Java 11 are not affected.<\/li>\n\n<li><strong>CPU:<\/strong> an x86-64 processor with the avx512f, avx512bw, avx512vbmi and bmi2 features, which means Intel Xeon Ice Lake or newer, or AMD Zen 4 or newer. ARM64 servers are not affected.<\/li>\n\n<li><strong>Configuration:<\/strong> the Base64 intrinsic is enabled, which is the default on supporting CPUs.<\/li>\n\n<li><strong>Reachability:<\/strong> attacker-controlled Base64 reaches the decoder, for example through HTTP Basic authentication, JSON Web Tokens, SAML messages, cookies or TLS data.<\/li>\n<\/ul>\n\n\n\n<p class=\"wp-block-paragraph\">Products that bundle their own Java runtime stay vulnerable until their vendor ships an updated runtime, even if the host&#8217;s system Java is patched. <sup><a href=\"#src-4\">[4]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Why this matters<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">Java runs identity providers, CI servers and ticketing systems that sit on the internet and hold the keys to everything else. This bug is reachable before login on default configurations, the fix needs a runtime update plus a restart of every JVM and a rebuild of every container image, and the researchers plan to publish their application exploits once users have had time to upgrade. The window to patch quietly is now. <em>(MAG212 analysis)<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><a href=\"https:\/\/cyber.mag212.com\/wp-content\/uploads\/2026\/11\/java4shell-18nov-diagram.png\"><img decoding=\"async\" src=\"https:\/\/cyber.mag212.com\/wp-content\/uploads\/2026\/11\/java4shell-18nov-diagram.png\" alt=\"One Base64 byte, pre-auth RCE. Diagram by MAG212 CYBER.\"\/><\/a><figcaption class=\"wp-element-caption\">Diagram: MAG212 CYBER. Solid red = observed or confirmed; dashed amber = reported or unverified; green = recommended control.<\/figcaption><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\">How the attack works<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Input:<\/strong> the attacker sends a Base64 string with an unexpected number of trailing <code>=<\/code> padding characters, for example inside an Authorization header. <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><\/li>\n\n<li><strong>Fast path:<\/strong> once a decoding method has been called often enough, the C2 just-in-time compiler swaps in a hand-tuned AVX-512 VBMI routine. Calif notes the decoder must first be warmed up with valid input. <sup><a href=\"#src-1\">[1]<\/a><\/sup><\/li>\n\n<li><strong>Out-of-bounds write:<\/strong> with the malformed padding, the routine miscalculates the output length and writes 62 or 63 bytes past the end of its output array. Java only rejects the input after the write. <sup><a href=\"#src-5\">[5]<\/a><\/sup><\/li>\n\n<li><strong>Steering the write:<\/strong> the overflowing bytes are fixed, but the attacker controls where they land. Calif&#8217;s technique, which it calls JavaBleed, grooms the heap so the write corrupts useful objects and turns into read and write access to memory. <sup><a href=\"#src-5\">[5]<\/a><\/sup><\/li>\n\n<li><strong>Code execution:<\/strong> from there the exploit reaches code-execution paths in the target application. Each target needs its own exploit profile, and remote attempts are sensitive to network timing. <sup><a href=\"#src-1\">[1]<\/a><\/sup><\/li>\n\n<li><strong>Failure mode:<\/strong> a miss can crash the JVM, and attackers can often retry. <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\">Calif adds two points defenders should note. A Java client that opens a TLS connection to a hostile server can also be compromised, even without exposing a service. And request buffering in nginx is not a general mitigation: it does not stop the Elasticsearch chain, and WebSocket frames bypass it. <sup><a href=\"#src-1\">[1]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Fixed versions<\/h2>\n\n\n\n<figure class=\"wp-block-table\"><table><thead><tr><th>Distribution<\/th><th>Affected<\/th><th>Fixed build<\/th><\/tr><\/thead><tbody><tr><td>Oracle Java SE 17<\/td><td>17.0.6 to 17.0.21.0.3<\/td><td>17.0.21.1<\/td><\/tr><tr><td>Oracle Java SE 21 \/ 25 \/ 27<\/td><td>21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3 and earlier<\/td><td>21.0.13.1, 25.0.5.1, 27.0.1.1<\/td><\/tr><tr><td>Oracle Java 8 Performance Pack<\/td><td>8u511b33-perf<\/td><td>8u513<\/td><\/tr><tr><td>Amazon Corretto<\/td><td>earlier builds<\/td><td>17.0.21.1.2, 21.0.13.1.2, 25.0.5.1.2, 27.0.1.1.4<\/td><\/tr><tr><td>Azul Zulu<\/td><td>earlier builds<\/td><td>17.70.201, 21.54.201, 25.38.201, 27.30.201<\/td><\/tr><tr><td>Red Hat build of OpenJDK<\/td><td>17.0.6 and later<\/td><td>not yet released when checked; see RHSB-2026-018<\/td><\/tr><tr><td>Eclipse Temurin, Microsoft, BellSoft Liberica<\/td><td>affected<\/td><td>no fixed builds listed when checked<\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">Sources: Oracle, CERT-EU and the vendor table compiled by The Hacker News. Check your vendor&#8217;s page before deploying. <sup><a href=\"#src-3\">[3]<\/a><\/sup><sup><a href=\"#src-4\">[4]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><sup><a href=\"#src-7\">[7]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">What defenders should look for<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Hacker News, summarising researchers, lists these signals. None proves compromise, and their absence does not prove safety. <sup><a href=\"#src-5\">[5]<\/a><\/sup><\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Base64 tokens of 32 or more characters that end in <code>=<\/code> and whose length is not a multiple of four, especially in Authorization headers.<\/li>\n\n<li>Bursts of <code>IllegalArgumentException<\/code> thrown from <code>java.util.Base64$Decoder<\/code>.<\/li>\n\n<li>Unexplained <code>hs_err_pid*.log<\/code> crash files or repeated JVM restarts on Jira, Confluence, Jenkins, Keycloak or similar services.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">How to investigate<\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">These commands are <strong>read-only<\/strong> and come from Calif, CERT-EU and The Hacker News. <strong>Not tested by MAG212.<\/strong> <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-4\">[4]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Check whether a Linux host&#8217;s CPU has all four required features. If any one is missing, the vulnerable routine does not run:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>grep -m1 &#x27;^flags&#x27; \/proc\/cpuinfo \\\n  | tr &#x27; &#x27; &#x27;\\n&#x27; \\\n  | grep -E &#x27;^(avx512f|avx512bw|avx512vbmi|bmi2)$&#x27;<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Check the Java version and whether the Base64 intrinsic is enabled. Run these with the same java binary and options your service uses, including any runtime bundled inside an application:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>java -version\njava -XX:+PrintFlagsFinal -version | grep UseBASE64Intrinsics<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Start with internet-facing identity providers, CI servers, artifact repositories and ticketing systems.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to contain and remediate<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>Patch:<\/strong> install a fixed build from your Java vendor and from any vendor whose product bundles Java. <sup><a href=\"#src-3\">[3]<\/a><\/sup><sup><a href=\"#src-4\">[4]<\/a><\/sup><\/li>\n\n<li><strong>If no fixed build exists yet, apply a temporary workaround<\/strong> (see below); both options change JVM behaviour and need a restart. <sup><a href=\"#src-4\">[4]<\/a><\/sup><\/li>\n\n<li><strong>Restart every JVM<\/strong> and <strong>rebuild and redeploy container images<\/strong>; patching the host alone does not update images. <sup><a href=\"#src-4\">[4]<\/a><\/sup><sup><a href=\"#src-5\">[5]<\/a><\/sup><\/li>\n\n<li><strong>Preserve evidence<\/strong> if you saw crash bursts or suspicious Base64 traffic before patching: keep <code>hs_err_pid<\/code> files, application logs and proxy logs, and investigate the host for follow-on activity.<\/li>\n<\/ol>\n\n\n\n<h3 class=\"wp-block-heading\">Temporary workarounds<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">These JVM startup options <strong>change system behaviour<\/strong>. <strong>Not tested by MAG212.<\/strong> Disable only the vulnerable Base64 fast path: <sup><a href=\"#src-4\">[4]<\/a><\/sup><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-XX:+UnlockDiagnosticVMOptions -XX:-UseBASE64Intrinsics<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Or, on x86-64 hosts only, disable AVX-512 entirely. It can cost performance, and ARM64 JVMs will not start with it: <sup><a href=\"#src-1\">[1]<\/a><\/sup><sup><a href=\"#src-4\">[4]<\/a><\/sup><\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>-XX:UseAVX=2<\/code><\/pre>\n\n\n\n<p class=\"wp-block-paragraph\">Upwind reports that using <code>-XX:DisableIntrinsic=_base64_decodeBlock<\/code> on its own stops Java from starting. Remove workaround flags once a fixed build is installed. <sup><a href=\"#src-5\">[5]<\/a><\/sup><\/p>\n\n\n\n<h2 class=\"wp-block-heading\">How to verify recovery<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>java -version<\/code> on each restarted service shows a fixed build, or <code>PrintFlagsFinal<\/code> shows <code>UseBASE64Intrinsics<\/code> set to false where the workaround is in place. <sup><a href=\"#src-4\">[4]<\/a><\/sup><\/li>\n\n<li>Running containers come from rebuilt images, not cached ones.<\/li>\n\n<li>Crash files and decoder exception bursts stop after the change.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Prevention and awareness<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>For administrators:<\/strong> keep an inventory of every Java runtime, including those bundled inside vendor products and container images, so a runtime bug can be scoped in minutes rather than days.<\/li>\n\n<li><strong>For developers:<\/strong> decoding attacker-controlled data before authentication enlarges the pre-login attack surface. Authenticate first where the protocol allows it.<\/li>\n\n<li><strong>For decision-makers:<\/strong> budget for coordinated restart windows. A Java patch is only applied when every JVM has been restarted.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Related on MAG212 CYBER<\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><a href=\"https:\/\/cyber.mag212.com\/one-equals-sign-too-many-mag212-cyber-daily-november-18-2026\/\">MAG212 CYBER Daily, 18 November 2026: One equals sign too many<\/a> (full issue and PDF)<\/li>\n\n<li><a href=\"https:\/\/cyber.mag212.com\/keys-outlived-the-job-mag212-cyber-daily-november-17-2026\/\">MAG212 CYBER Daily, 17 November 2026: Keys that outlived the job<\/a><\/li>\n\n<li><a href=\"https:\/\/cyber.mag212.com\/boxes-nobody-patches-mag212-cyber-daily-november-16-2026\/\">MAG212 CYBER Daily, 16 November 2026: The boxes nobody patches<\/a><\/li>\n\n<li><a href=\"https:\/\/cyber.mag212.com\/the-keys-were-already-inside-mag212-cyber-weekly-november-14-2026\/\">MAG212 CYBER Weekly, 14 November 2026<\/a><\/li>\n\n<li><a href=\"https:\/\/cyber.mag212.com\/subscribe-free\/\">Subscribe free to MAG212 CYBER<\/a><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Sources<\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><span id=\"src-1\">[1]<\/span> Calif, &#8220;<a href=\"https:\/\/calif.io\/java4shell\" rel=\"noopener\" target=\"_blank\">Java4Shell (CVE-2026-114938) technical write-up<\/a>&#8220;, 17 Nov 2026.<\/li>\n\n<li><span id=\"src-2\">[2]<\/span> OpenJDK Vulnerability Group, &#8220;<a href=\"https:\/\/openjdk.org\/groups\/vulnerability\/advisories\/2026-11-17\" rel=\"noopener\" target=\"_blank\">OpenJDK vulnerability advisory 2026-11-17<\/a>&#8220;, 17 Nov 2026.<\/li>\n\n<li><span id=\"src-3\">[3]<\/span> Oracle, &#8220;<a href=\"https:\/\/www.oracle.com\/security-alerts\/cspunov2026.html\" rel=\"noopener\" target=\"_blank\">Critical Security Patch Update, November 2026<\/a>&#8220;, 17 Nov 2026.<\/li>\n\n<li><span id=\"src-4\">[4]<\/span> CERT-EU, &#8220;<a href=\"https:\/\/cert.europa.eu\/publications\/security-advisories\/2026-021\/pdf\" rel=\"noopener\" target=\"_blank\">Security Advisory 2026-021: Java SE and OpenJDK (PDF)<\/a>&#8220;, 17 Nov 2026.<\/li>\n\n<li><span id=\"src-5\">[5]<\/span> The Hacker News, &#8220;<a href=\"https:\/\/thehackernews.com\/2026\/11\/java4shell-cve-2026-114938-enables-pre.html\" rel=\"noopener\" target=\"_blank\">Java4Shell enables pre-auth RCE in Jira, Jenkins, Keycloak and more<\/a>&#8220;, 17 Nov 2026.<\/li>\n\n<li><span id=\"src-7\">[7]<\/span> Red Hat, &#8220;<a href=\"https:\/\/access.redhat.com\/security\/vulnerabilities\/RHSB-2026-018\" rel=\"noopener\" target=\"_blank\">Security bulletin RHSB-2026-018 (Java4Shell)<\/a>&#8220;, 17 Nov 2026.<\/li>\n<\/ol>\n\n\n\n<p class=\"wp-block-paragraph\"><em>Written and edited by El Mostafa Ouchen for MAG212 CYBER. Facts checked against the sources above as of 18 November 2026, 6:00 AM PT.<\/em><\/p>\n","protected":false},"excerpt":{"rendered":"<p>A memory-corruption bug in Java&#8217;s AVX-512 Base64 decoder lets malformed input write past a buffer. Calif used it for login-free code execution on Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. Oracle and OpenJDK fixed it on 17 November. Who is affected, how it works, fixed builds, workarounds and checks.<\/p>","protected":false},"author":1,"featured_media":4387,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,15],"tags":[439,438,447,446,448,444,445,417],"class_list":["post-4398","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-critical-cves","category-threat-intelligence","tag-cve-2026-114938","tag-java4shell","tag-jenkins","tag-jira","tag-keycloak","tag-openjdk","tag-oracle-java","tag-vulnerability-management"],"_links":{"self":[{"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/posts\/4398","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/comments?post=4398"}],"version-history":[{"count":0,"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/posts\/4398\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/media\/4387"}],"wp:attachment":[{"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/media?parent=4398"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/categories?post=4398"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cyber.mag212.com\/fr\/wp-json\/wp\/v2\/tags?post=4398"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}