<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Adeel Ahmed</title>
    <description>The latest articles on DEV Community by Adeel Ahmed (@adeelahmedkhan).</description>
    <link>https://dev.to/adeelahmedkhan</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4253913%2Fd9d06964-664d-40c8-9c03-c03f67d9f1d7.png</url>
      <title>DEV Community: Adeel Ahmed</title>
      <link>https://dev.to/adeelahmedkhan</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/adeelahmedkhan"/>
    <language>en</language>
    <item>
      <title>Is your Java app still running on a vulnerable runtime?</title>
      <dc:creator>Adeel Ahmed</dc:creator>
      <pubDate>Thu, 19 Nov 2026 13:20:52 +0000</pubDate>
      <link>https://dev.to/adeelahmedkhan/is-your-java-app-still-running-on-a-vulnerable-runtime-3124</link>
      <guid>https://dev.to/adeelahmedkhan/is-your-java-app-still-running-on-a-vulnerable-runtime-3124</guid>
      <description>&lt;p&gt;On 17 November a flaw in OpenJDK went public. CVE-2026-114938, called Java4Shell by the firm that found it.&lt;/p&gt;

&lt;p&gt;It is a memory bug in the Base64 decoder built into the JVM itself, in the AVX-512 accelerated decode path reached through &lt;code&gt;java.util.Base64&lt;/code&gt;. That detail is the whole story. It is not a flaw in a library or a framework, so a dependency scan will not flag it. The fix is not a library update. It is a new Java runtime, plus a restart of every JVM.&lt;/p&gt;

&lt;p&gt;The firm that found it showed unauthenticated remote code execution against default installs of Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate. Oracle scores it 8.1. CISA put out an alert the same day urging teams to patch at once. No exploitation in the wild had been reported as of 18 November.&lt;/p&gt;

&lt;p&gt;For the full root cause breakdown, &lt;a href="https://dev.to/thegdsks/java4shell-one-stray-sign-vs-your-java-server-4j3j"&gt;this is the best write up I have read&lt;/a&gt;.&lt;/p&gt;

&lt;h3&gt;
  
  
  Are you affected?
&lt;/h3&gt;

&lt;p&gt;All three of these have to hold:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Your runtime is OpenJDK 17.0.6 or later without the fix. The maintained lines 17, 21, 25 and 27 are all affected.&lt;/li&gt;
&lt;li&gt;Your CPU is x86-64 with AVX-512 VBMI support, Intel Ice Lake and later server parts, AMD Zen 4 and later. ARM64 is not affected.&lt;/li&gt;
&lt;li&gt;Attacker controlled data reaches the Base64 decoder.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;Standard Java 8 and Java 11 builds do not contain the vulnerable code.&lt;/p&gt;

&lt;h3&gt;
  
  
  How to check in one minute
&lt;/h3&gt;

&lt;p&gt;Run &lt;code&gt;java -version&lt;/code&gt; wherever your app runs. A patched Corretto 21 runtime prints this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;openjdk version "21.0.13.1" 2026-11-17 LTS
OpenJDK Runtime Environment Corretto-21.0.13.1.2 (build 21.0.13.1+2-LTS)
OpenJDK 64-Bit Server VM Corretto-21.0.13.1.2 (build 21.0.13.1+2-LTS, mixed mode, sharing)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Look for &lt;code&gt;21.0.13.1&lt;/code&gt; or later in the first line. Anything at &lt;code&gt;21.0.13&lt;/code&gt; exactly, or &lt;code&gt;21.0.12&lt;/code&gt; and below, is unpatched.&lt;/p&gt;

&lt;p&gt;If your vendor has no fixed build yet, there is a stopgap. Start the JVM with this flag to turn off the accelerated Base64 path:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;-XX:-UseBASE64Intrinsics
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Base64 work falls back to plain Java, slower but correct. Treat it as a stopgap, not a fix. Upgrade to a patched build as soon as your vendor ships one, then remove the flag.&lt;/p&gt;

&lt;h3&gt;
  
  
  What I built
&lt;/h3&gt;

&lt;p&gt;I checked what most Java starters actually ship. Almost every Docker Java image builds on Temurin. When I built this, Temurin had no fixed build out, so a starter pinned to it would have shipped the vulnerable runtime by default. Corretto had its fixed builds out on disclosure day, so I built on that.&lt;/p&gt;

&lt;p&gt;One honest update since then. Adoptium now says its November 2026 Temurin releases fix this too, with fixed binaries publishing and container images to follow. So the Corretto edge here is timing, not something permanent. The point of the starter is not which vendor you pick. It is that the runtime you pin is a patched one, and you can prove it.&lt;/p&gt;

&lt;p&gt;The starter is Spring Boot 4.1.2 on Amazon Corretto 21.0.13.1.2. The Dockerfile pins that exact build by tag and digest in both stages, so the build cannot drift to a different image under the same tag. I verified it locally before publishing. Maven build passes, tests pass, the app boots, health returns UP, and a runtime endpoint at &lt;code&gt;GET /api/runtime&lt;/code&gt; reports the JVM actually running, so you can prove the deployed service is on the patched build.&lt;/p&gt;

&lt;p&gt;One update since this was first written. The starter has now been deploy tested live on Railway, on 19 November 2026. The first attempt failed on two Dockerfile bugs, a lost executable bit on the Maven wrapper and a user creation step the Corretto image cannot run. Both are fixed, and the second deploy built cleanly, came up healthy, and /api/runtime confirmed the patched runtime, 21.0.13.1 from Amazon. The test project was deleted right after verification.&lt;/p&gt;

&lt;p&gt;Repo: &lt;a href="https://github.com/AdeelAhmedKhan/spring-boot-corretto-patched" rel="noopener noreferrer"&gt;https://github.com/AdeelAhmedKhan/spring-boot-corretto-patched&lt;/a&gt;&lt;br&gt;
Railway template: &lt;a href="https://railway.com/deploy/spring-boot-on-patched-corretto-21" rel="noopener noreferrer"&gt;https://railway.com/deploy/spring-boot-on-patched-corretto-21&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Have you checked which JDK your Java services are running on?&lt;/p&gt;

</description>
      <category>java</category>
      <category>springboot</category>
      <category>docker</category>
      <category>security</category>
    </item>
  </channel>
</rss>
