Java4Shell (CVE-2026-114938) lets malformed Base64 crash OpenJDK or hand over control on AVX-512 chips, and GreyNoise logged 187 attack-shaped requests.
A short string of malformed Base64, the encoded text that logins and uploads pass around, could crash a Java server or, on newer Intel and AMD chips, hand an attacker control. By 19 November 2026, GreyNoise had logged 187 Java4Shell-shaped requests from five IP addresses, two days after the bug went public. Check every client's Java servers today.
-XX:-UseBASE64Intrinsics, Red Hat's preferred workaround.Java4Shell (CVE-2026-114938) is an out-of-bounds memory write in OpenJDK's HotSpot JVM, the engine that runs Java programs, when it decodes Base64, the text encoding used in logins, tokens and uploads; Calif disclosed it on 17 November 2026. Java4Shell exploitation attempts have begun, though GreyNoise has seen no successful intrusions; watchTowr's Jake Knott told SecurityWeek its honeypots saw "java4shell-recon" scanners. NVD lists 8.1 (CVSS 3.1), and Oracle's CVE record calls it "difficult to exploit" yet open to attackers without a login; Calif rates it 9.2 under CVSS 4.0. CISA urged immediate patching but has not added it to its Known Exploited Vulnerabilities catalog as of this writing; recheck the catalog.
Unpatched OpenJDK-based Java from 17.0.6 onward is affected, including Oracle, Temurin, Corretto and Zulu builds, per Calif, but only on x86-64 CPUs with AVX-512 VBMI, fast vector instructions found in Intel Xeon Ice Lake or newer and AMD Zen 4 or newer. The faulty code was merged in June 2021, according to The Hacker News citing Aikido, and reached Java 17 in 17.0.6 in January 2023, per GreyNoise's timeline.
| Java line | Fixed in | Source |
|---|---|---|
| 17 (17.0.6 and later) | 17.0.21.1 | Keycloak |
| 21 | 21.0.13.1 | Keycloak |
| 25 | 25.0.5.1 | Keycloak |
| 27 | 27.0.1.1 (Corretto 27.0.1.1.4) | Corretto changelog |
| Oracle Java 8 Performance Pack 8u511b33-perf | 8u513-perf | Qualys |
Ubuntu ships fixed openjdk packages (Ubuntu's tracker); Red Hat says RHEL 8, 9 and 10 are affected, with errata pending (RHSB-2026-018).
Calif's public proof of concept only triggers the bug; VulnCheck offers customers a full exploit, according to SecurityWeek.
A server is exposed only when an affected Java build, an AVX-512 VBMI CPU and the fast Base64 decoder line up, per Keycloak. Run these on each Linux x86-64 server as a normal user with sudo; Cisco and other appliances need their vendor's advisory instead. No source dates the first exploitation, so search the oldest retained logs and the client's SIEM; earlier activity can't be ruled out.
Preserve evidence. Copy proxy logs, the journal and JVM crash reports (hs_err_pid*.log) before anyone restarts Java. Pass: the .sha256 file lists the copied files.
D=/root/ir/java4shell-$(hostname)-$(date +%F); sudo mkdir -p "$D"
# cp errors for log folders that don't exist on this host are expected
sudo cp -a /var/log/nginx /var/log/apache2 /var/log/httpd "$D"/ 2>/dev/null
sudo journalctl --no-pager | sudo tee "$D/journal.txt" >/dev/null
sudo find / -xdev -name 'hs_err_pid*.log' -not -path '/root/ir/*' -exec cp -a {} "$D"/ \; 2>/dev/null
sudo find "$D" -type f -exec sha256sum {} + | sudo tee "$D.sha256"
List each running JVM's Java version. Reads the release file beside each running Java binary, plus packages and stored images, without running anything found. Pass: each version is a fixed build from the table, or older than 17.0.6.
# /proc/<pid>/root also reaches Java running inside containers
for p in $(pgrep -x java); do e=$(sudo readlink /proc/$p/exe); echo "$p $e $(sudo grep -h '^JAVA_VERSION=' "/proc/$p/root${e%/bin/java}/release" 2>/dev/null)"; done
dpkg -l 'openjdk-*' 2>/dev/null | grep '^ii'; rpm -qa '*openjdk*' 2>/dev/null
# images that print no JAVA_VERSION: check their base image or rebuild on a fixed one
docker images --format json | jq -r '.Repository+":"+.Tag' | grep -v '<none>' | while read -r i; do echo "$i $(docker image inspect "$i" | jq -r '.[0].Config.Env[]?' | grep '^JAVA_VERSION=')"; done
Check the CPU and the workaround flag. The first line prints avx512vbmi if the chip qualifies, per Jenkins; the loop reads each JVM's live flag, per Red Hat. Pass: no avx512vbmi, or each JVM shows UseBASE64Intrinsics = false.
grep -o -w -m1 'avx512vbmi' /proc/cpuinfo
# jcmd ships with full JDKs; for containers run the same jcmd via docker exec
for p in $(pgrep -x java); do echo "$p: $(sudo -u "#$(stat -c %u /proc/$p)" jcmd $p VM.flags -all | grep -F UseBASE64Intrinsics)"; done
Search proxy logs for published indicators. Matches the five sender IPs GreyNoise lists and the "java4shell" user-agent string. Pass: no output; a hit means contact with known attacker infrastructure: treat it as a likely compromise and escalate.
sudo zgrep -hE '85\.0\.19\.34|45\.13\.212\.209|31\.76\.87\.52|217\.138\.216\.145|134\.82\.73\.91|java4shell' /var/log/nginx/access.log* /var/log/apache2/access.log* /var/log/httpd/access_log* 2>/dev/null
Look for crashes and shells under Java. JVM crashes and Java starting shells are signs Qualys and CISA flag; ps shows only running processes. Pass: no crash reports, and no sh, bash, curl or wget under Java except Jenkins build jobs.
# skips the evidence copies made in check 1
sudo find / -xdev -name 'hs_err_pid*.log' -not -path '/root/ir/*' -printf '%TY-%Tm-%Td %p\n' 2>/dev/null
ps -eo pid,ppid,user,comm,args --forest | grep -A4 '[j]ava '
Patch in this order: internet-facing Keycloak, Jira, Confluence, Jenkins, Artifactory and PingFederate, which Calif exploited before login; then other Java apps decoding Base64 from logins, tokens or uploads; then everything else, including CI images and bundled runtimes CISA warns inventories miss.
Preserve evidence before any restart. A restart clears the process view, so run the copy-and-hash block from the check list first. Pass: sudo ls /root/ir/*.sha256 lists a file for this server.
Install a fixed Java build and restart. A patch only takes effect after a restart, per Qualys; for Keycloak, pull the 26.8.2-3 image and recreate the container. Pass: rerun check 2; each JVM shows a fixed build.
sudo apt-get update && sudo apt-get install --only-upgrade $(dpkg -l 'openjdk-*' | awk '/^ii/{print $2}') # Debian/Ubuntu
sudo dnf upgrade '*openjdk*' # RHEL family, once Red Hat's errata ship
ps -o unit= -p "$(pgrep -d, -x java)" | grep '\.service$' | sort -u | xargs -r sudo systemctl restart
No fixed build yet? Turn off the fast decoder. Add -XX:-UseBASE64Intrinsics per Jenkins or via JAVA_OPTS_APPEND per Keycloak; for Atlassian, use its Data Center mitigations. Pass: rerun check 3; each JVM shows UseBASE64Intrinsics = false.
# Jenkins: under [Service] add Environment="JAVA_OPTS=-XX:-UseBASE64Intrinsics", keeping existing options
sudo systemctl edit jenkins
sudo systemctl daemon-reload && sudo systemctl restart jenkins
Fence off the affected Cisco products. On the client's firewall, allow their web interfaces only from the management network. Pass: from outside, curl -sk -o /dev/null -w '%{http_code}' https://<ip>/ prints 000.
Remove footholds, then recheck. If check 4 or 5 found anything, rebuild that server on a fixed Java and restore a backup you have verified with the checks above. Pass: checks 2 to 5 rerun clean.
KinoSec's autonomous web app pentest checks whether each client's Jira, Confluence, Jenkins, Keycloak or other Java login page answers from the internet, which puts it in Java4Shell's first patch tier. It maps the external surface, finds vulnerabilities, chains them and writes up findings with remediation for the report you hand your client; it doesn't read a server's JDK build or CPU flags, which checks 2 and 3 cover. The "java4shell-recon" scanning watchTowr saw is an attack, not a pentest: a pentest is authorised, scoped and reported to the owner. Autonomous web app and API pentesting with Zeus runs the same reconnaissance with your client's permission, scope limits and a report they can act on.
No. Log4Shell (CVE-2021-44228) was a bug in the Log4j logging library, while Java4Shell (CVE-2026-114938) is a memory-corruption bug in the Java runtime itself, so a Log4j update does nothing for it. Java4Shell also needs an x86-64 CPU with AVX-512 VBMI and a product-specific exploit chain, per Calif. Old Java holes linger, as attackers using a five-year-old Log4Shell hole in VMware vCenter showed.
Run grep -o -w -m1 'avx512vbmi' /proc/cpuinfo; the output avx512vbmi means the chip qualifies. Search proxy logs with sudo zgrep -h java4shell /var/log/nginx/access.log* and the five sender IPs GreyNoise lists; a hit means contact with known attacker infrastructure: treat it as a likely compromise and escalate. List JVM crash reports with sudo find / -xdev -name 'hs_err_pid*.log'.
No. Red Hat says -XX:UseAVX=2 is for x86-64 only, because JVMs on ARM64 don't recognise it and fail to start. ARM servers aren't affected by Java4Shell, per Calif, so they need neither flag. On x86-64, Red Hat prefers -XX:-UseBASE64Intrinsics, which turns off only the fast Base64 decoder.
According to SecurityWeek, Atlassian says it is addressing its cloud products and cloud customers need take no action. Data Center is different: until patches ship, Atlassian recommends disabling AVX-512 for the latest Bamboo, Bitbucket, Confluence, Crowd, Jira and Jira Service Management, according to SecurityWeek. Put each self-hosted Atlassian server in the first patch tier.