<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Cve on Samarthya</title><link>https://samarthya.me/tags/cve/</link><description>Recent content in Cve on Samarthya</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© Samarthya 2018-2026. All rights reserved.</copyright><lastBuildDate>Thu, 19 Nov 2026 22:04:00 +0000</lastBuildDate><atom:link href="https://samarthya.me/tags/cve/index.xml" rel="self" type="application/rss+xml"/><item><title>Java4Shell (CVE-2026-114938), explained simply</title><link>https://samarthya.me/posts/java4shell-cve-2026-114938/</link><pubDate>Thu, 19 Nov 2026 22:04:00 +0000</pubDate><guid>https://samarthya.me/posts/java4shell-cve-2026-114938/</guid><description>&lt;div class="lead text-neutral-500 dark:text-neutral-400 !mb-9 text-xl"&gt;&#10; Imagine a very fast mail-sorting machine. Hand it one oddly folded envelope and, before it notices something is&#10;wrong and stops, it has already pushed letters into the next few pigeonholes. That&amp;rsquo;s Java4Shell: a tiny piece of&#10;text that makes Java&amp;rsquo;s fastest Base64 decoder write where it shouldn&amp;rsquo;t.&#10;&lt;/div&gt;&#10;&#10;&lt;figure&gt;&lt;img&#10; class="my-0 rounded-md"&#10; loading="lazy"&#10; decoding="async"&#10; fetchpriority="low"&#10; alt="A request carries Base64 text from a login header, a cookie or an upload. Java&amp;rsquo;s fast decoder path on an AVX-512 CPU gets 64 letters A and one equals sign, writes 64 bytes into a 50-byte space and spills 62 bytes into its neighbours before it raises an error. Three conditions must all hold: Java 17.0.6 or newer, an x86-64 CPU with AVX-512 VBMI, and a hot decoder. The fix: update the JDK, or disable the fast path with -XX:-UseBASE64Intrinsics."&#10; src="https://samarthya.me/posts/java4shell-cve-2026-114938/overview.svg"&#10; &gt;&lt;figcaption&gt;How a short Base64 string corrupts memory, and the three conditions for it&lt;/figcaption&gt;&lt;/figure&gt;&#10;&#10; &#10;&#10;&#10;&#10;&lt;div&#10; &#10; class="flex px-4 py-3 rounded-md shadow bg-primary-100 dark:bg-primary-900"&#10; &#10; &gt;&#10; &lt;span&#10; &#10; class="text-primary-400 pe-3 flex items-center"&#10; &#10; &gt;&#10; &lt;span class="relative block icon"&gt;&lt;svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"&gt;&lt;path fill="currentColor" d="M256 0C114.6 0 0 114.6 0 256s114.6 256 256 256s256-114.6 256-256S397.4 0 256 0zM256 128c17.67 0 32 14.33 32 32c0 17.67-14.33 32-32 32S224 177.7 224 160C224 142.3 238.3 128 256 128zM296 384h-80C202.8 384 192 373.3 192 360s10.75-24 24-24h16v-64H224c-13.25 0-24-10.75-24-24S210.8 224 224 224h32c13.25 0 24 10.75 24 24v88h16c13.25 0 24 10.75 24 24S309.3 384 296 384z"/&gt;&lt;/svg&gt;&#10;&lt;/span&gt;&#10; &lt;/span&gt;&#10;&#10; &lt;span&#10; &#10; class="dark:text-neutral-300"&#10; &#10; &gt;New to Base64, a JIT or a buffer overflow? Each term is explained in plain words in&#10;&lt;a href="https://samarthya.me/posts/java4shell-cve-2026-114938/#keywords" &gt;Keywords&lt;/a&gt; at the end.&lt;/span&gt;&#10;&lt;/div&gt;&#10;&#10;&#10;&lt;h2 class="relative group"&gt;The short version&#10; &lt;div id="the-short-version" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#the-short-version" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;table&gt;&#10;&#9;&lt;thead&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;/th&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;th&gt;&lt;/th&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/thead&gt;&#10;&#9;&lt;tbody&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;Name&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Java4Shell, CVE-2026-114938&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;Disclosed&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;17 November 2026, with patches the same day&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;What&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Memory corruption in the JDK&amp;rsquo;s hardware-accelerated Base64 decoder (HotSpot, x86-64)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;Worst case&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Remote code execution with no login&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;Severity&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;8.1 &lt;em&gt;High&lt;/em&gt; from Oracle; 9.8 &lt;em&gt;Critical&lt;/em&gt; from Red Hat&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;Fix&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Update the JDK (17.0.21.1, 21.0.13.1, 25.0.5.1, 27.0.1.1 or your vendor&amp;rsquo;s equivalent)&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&#9;&#9;&lt;tr&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;&lt;strong&gt;Stopgap&lt;/strong&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&#9;&#9;&lt;td&gt;Start Java with &lt;code&gt;-XX:-UseBASE64Intrinsics&lt;/code&gt;&lt;/td&gt;&#10;&#9;&#9;&#9;&lt;/tr&gt;&#10;&#9;&lt;/tbody&gt;&#10;&lt;/table&gt;&#10;&#10;&lt;h2 class="relative group"&gt;First, what is Base64?&#10; &lt;div id="first-what-is-base64" class="anchor"&gt;&lt;/div&gt;&#10; &#10; &lt;span&#10; class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100 select-none"&gt;&#10; &lt;a class="text-primary-300 dark:text-neutral-700 !no-underline" href="#first-what-is-base64" aria-label="Anchor"&gt;#&lt;/a&gt;&#10; &lt;/span&gt;&#10; &#10;&lt;/h2&gt;&#10;&lt;p&gt;Base64 is a way to write any data, even a picture or a key, using only 64 safe characters: &lt;code&gt;A–Z&lt;/code&gt;, &lt;code&gt;a–z&lt;/code&gt;, &lt;code&gt;0–9&lt;/code&gt;,&#10;&lt;code&gt;+&lt;/code&gt; and &lt;code&gt;/&lt;/code&gt;. The text is padded with &lt;code&gt;=&lt;/code&gt; at the end when the data doesn&amp;rsquo;t fill the last block. You see it&#10;everywhere without noticing:&lt;/p&gt;</description><media:content xmlns:media="http://search.yahoo.com/mrss/" url="https://samarthya.me/posts/java4shell-cve-2026-114938/feature.png"/></item></channel></rss>