jdk-base64-intrinsic
Untrusted input decoded by the JDK's Base64 decoder, which can overflow its buffer.
- Group
- Code
- Runs
- Runs under ur scan:
ur scan --rule jdk-base64-intrinsic - Level
- warning
- Reads
- Every file
- Fix
- None: the safe form depends on what the value is meant to be
Why
A value from outside the program is decoded by java.util.Base64's decoder, getDecoder, getUrlDecoder, or getMimeDecoder, whose decode and wrap HotSpot runs as an AVX-512 VBMI intrinsic once C2 compiles them. In OpenJDK 17.0.6 and later, and the distributions built from it, before the 2026-11-17 update (CVE-2026-114938), a short Base64 tail with padding makes that intrinsic write about 62 bytes past the decoded buffer on an x86-64 CPU with avx512vbmi. Run a JDK with the update, or turn the intrinsic off with -XX:-UseBASE64Intrinsics, or -XX:UseAVX=2; whether the host's CPU has the feature is not in the code.
The fix, as Ur suggests it: update the JDK, or run it with -XX:-UseBASE64Intrinsics.
For agents
Run untrusted Base64 through java.util.Base64 only on a JDK with the 2026-11-17 update, or with -XX:-UseBASE64Intrinsics.
Example
src/main/java/app/Credentials.javapackage app;
import java.util.Base64;
import javax.servlet.http.HttpServletRequest;
class Credentials {
byte[] basic(HttpServletRequest request) {
String header = request.getHeader("Authorization");
return Base64.getDecoder().decode(header.substring(6));
}
}
$ ur scan --rule jdk-base64-intrinsic
warning[jdk-base64-intrinsic]: `getHeader`, a request header, reaches `getDecoder.decode`
--> ./src/main/java/app/Credentials.java:9:12 method `basic`
= step 1: ./src/main/java/app/Credentials.java:8:21 `getHeader`, a request header,
= step 2: ./src/main/java/app/Credentials.java:9:39 `.substring` gives it
= hint: update the JDK, or run it with `-XX:-UseBASE64Intrinsics`
= see: CVE-2026-114938, CVE Program (2026-11-17), https://www.cve.org/CVERecord?id=CVE-2026-114938
scanned 1 file (no framework recognized)
jdk-base64-intrinsic: 1 high, 0 medium
1 finding and 0 of medium confidence
Source
CVE-2026-114938, CVE Program (2026-11-17).