{
  "id": "java4shell",
  "url": "https://ohshit.app/incidents/java4shell/",
  "title": "Java4Shell turns OpenJDK Base64 decoding into conditional remote code execution",
  "level": 3,
  "level_name": "sharted",
  "date": "2026-11-17",
  "date_is_approximate": false,
  "updated": null,
  "tags": [
    "Java",
    "OpenJDK",
    "RCE"
  ],
  "ecosystems": [
    "java"
  ],
  "summary": "Calif published a PoC for CVE-2026-114938, a heap overwrite in OpenJDK's accelerated Base64 decoder. Exploitation needs an affected runtime, AVX-512 VBMI hardware and a reachable decoding path. Oracle released patches on November 17.",
  "splash": "Affected x86-64 JVMs with AVX-512 VBMI and attacker-controlled Base64 input; authentication depends on the application",
  "wipe": "Apply your JVM supplier's November 17 security fixes, restart services, or temporarily disable Base64 intrinsics",
  "in_the_wild": "no",
  "source_exception": null,
  "cves": [
    {
      "id": "CVE-2026-114938",
      "score": 8.1,
      "name": "OpenJDK Base64 intrinsic heap overwrite",
      "description": "Malformed padding reaches an out-of-bounds write in the x86-64 decoder; application-specific chains can leak memory or execute code. Oracle rates it 8.1 under CVSS 3.1; Calif rates it 9.2 under CVSS 4.0."
    }
  ],
  "fixed": [
    {
      "product": "Oracle JDK 17",
      "version": "17.0.21.1+4"
    },
    {
      "product": "Oracle JDK 21",
      "version": "21.0.13.1+4"
    },
    {
      "product": "Oracle JDK 25",
      "version": "25.0.5.1+4"
    },
    {
      "product": "Oracle JDK 27",
      "version": "27.0.1.1+4"
    },
    {
      "product": "Oracle Java 8 Enterprise Performance Pack",
      "version": "1.8.0_513-perf-b4"
    }
  ],
  "checklist": [
    {
      "title": "Inventory the actual JVM and CPU used by each service",
      "hint": "Check bundled runtimes and container images, not just java on your shell PATH. Compare the supplier build with its CVE-2026-114938 advisory. Calif's Linux hardware check requires avx512f, avx512bw, avx512vbmi and bmi2 in /proc/cpuinfo; ARM64 is outside this hardware-specific flaw."
    },
    {
      "title": "Install the supplier's security update and restart all JVMs",
      "hint": "Use the listed Oracle builds for the matching Java SE line. Obtain CVE-specific patches for GraalVM and other OpenJDK distributions from their suppliers; Oracle version strings are not universal thresholds. Rebuild and redeploy images and verify the running executable/build after restart. Updating a dependency lockfile does not replace the JVM."
    },
    {
      "title": "Disable the affected intrinsic if patching must wait",
      "hint": "Add -XX:-UseBASE64Intrinsics to each service's JVM startup options, restart it and confirm the option took effect. Test service behavior and performance. Use -XX:UseAVX=2 only on x86-64; never copy that option onto ARM systems."
    },
    {
      "title": "Prioritize reachable decoding paths and investigate anomalies",
      "hint": "Review authentication, upload and other Base64 inputs, plus clients connecting to untrusted TLS servers. Calif's tested products have different authentication requirements. Request buffering is not a general defense. Preserve JVM crash logs and application request logs for investigation; a crash alone does not prove compromise. If intrusion is confirmed, contain the host and rotate exposed credentials from a clean system."
    }
  ],
  "sources": [
    {
      "name": "Calif Java4Shell disclosure and technical report",
      "url": "https://calif.io/java4shell/",
      "says": "Describes the hardware-dependent overwrite, a bounded PoC, tested application chains and temporary JVM options; no universal exploit is claimed.",
      "primary": true
    },
    {
      "name": "Oracle November 2026 security advisory",
      "url": "https://www.oracle.com/security-alerts/cspunov2026.html",
      "says": "Maps CVE-2026-114938 to specific Java SE and GraalVM builds and rates it CVSS 3.1 8.1, with high attack complexity.",
      "primary": true
    },
    {
      "name": "OpenJDK November 17 vulnerability advisory",
      "url": "https://openjdk.org/groups/vulnerability/advisories/2026-11-17",
      "says": "Its per-CVE matrix marks OpenJDK 17, 21, 25 and 27 for this flaw; the whole release's broader affected-version list is not this CVE's branch list.",
      "primary": true
    },
    {
      "name": "Oracle JDK 17 release notes",
      "url": "https://www.oracle.com/java/technologies/javase/17all-relnotes.html",
      "says": "Lists the November 17 security release as 17.0.21.1+4.",
      "primary": true
    },
    {
      "name": "Oracle JDK 21 release notes",
      "url": "https://www.oracle.com/java/technologies/javase/21all-relnotes.html",
      "says": "Lists the November 17 security release as 21.0.13.1+4.",
      "primary": true
    },
    {
      "name": "Oracle JDK 25 release notes",
      "url": "https://www.oracle.com/java/technologies/javase/25all-relnotes.html",
      "says": "Lists the November 17 security release as 25.0.5.1+4.",
      "primary": true
    },
    {
      "name": "Oracle JDK 27 release notes",
      "url": "https://www.oracle.com/java/technologies/javase/27all-relnotes.html",
      "says": "Lists the November 17 security release as 27.0.1.1+4.",
      "primary": true
    },
    {
      "name": "Oracle Java 8 release notes",
      "url": "https://www.oracle.com/java/technologies/javase/8all-relnotes.html",
      "says": "Lists the November 17 Enterprise Performance Pack security release as 1.8.0_513-perf-b4.",
      "primary": true
    }
  ],
  "headline": null,
  "one_liner": null,
  "in_the_wild_note": "Public PoC and researcher RCE demonstrations; no confirmed in-the-wild attacks found.",
  "mitigation": {
    "file": "JVM startup options",
    "code": "-XX:-UseBASE64Intrinsics",
    "note": "Restart every affected JVM with this option while arranging a patched build. Calif also offers -XX:UseAVX=2 on x86-64 only; ARM JVMs can fail to start with that flag."
  },
  "timeline": [
    {
      "date": "Nov 17, 2026",
      "title": "Calif discloses Java4Shell and publishes a bounded PoC",
      "body": "Researcher demonstrations include pre-authentication and authenticated RCE paths. Product-specific weaponized chains are withheld."
    },
    {
      "date": "Nov 17, 2026",
      "title": "OpenJDK and Oracle publish security updates",
      "body": "Oracle's CVE-specific matrix names affected Java SE and GraalVM builds; its release notes identify the patched Java SE builds listed here."
    }
  ],
  "body_markdown": "Java4Shell is a flaw in the JVM's optimized machine code for Base64 decoding. Invalid padding can corrupt neighboring heap objects before Java rejects the input. Calif demonstrated memory disclosure and remote code execution through application-specific exploitation chains. A mainstream runtime and a public reproduction support L3; the reviewed sources do not confirm attacks against real victims.\n\nExposure requires the affected intrinsic to run on x86-64 hardware supporting AVX-512 VBMI and attacker input to reach that path. Calif traces the OpenJDK issue to 17.0.6 and later affected builds. Oracle separately names Java SE 8u511b33-perf, 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3 and 27.0.1.0.3; GraalVM for JDK 17.0.21.0.3 and 21.0.13.0.3; and GraalVM Enterprise Edition 21.3.20.0.3. The Java 8 PERF listing does not mean all ordinary OpenJDK 8 builds are affected. OpenJDK's per-CVE matrix does not mark 8 or 11 for this flaw.\n\nCalif demonstrated pre-authentication RCE in Keycloak, Jira, Confluence, Artifactory, Jenkins and PingFederate, and authenticated RCE in Kafka Broker, Solr, Elasticsearch, Gerrit and Spinnaker. These are researcher-tested application paths, not evidence that every installation can be compromised. Calif also describes a client-side TLS path, so an inbound service is not always required. There is no universal payload, and product-specific weaponized chains remain private.\n\nApply the runtime supplier's patch even when an application has no separate advisory. The table covers verified Oracle Java SE releases, not every distribution or GraalVM product. Until the correct supplier build is installed, disable the affected intrinsic and restart the JVM. Treat the log-preservation and credential-response steps above as general incident-response guidance, not published indicators of a confirmed campaign."
}