How To

Patch Java4Shell (CVE-2026-114938) in Jira and Confluence

Every current Jira and Confluence Data Center image we pulled from Atlassian runs a Java build that Java4Shell can reach. So does the JRE inside the Jira Linux installer. Calif, the firm that found CVE-2026-114938, reached unauthenticated remote code execution on Jira and Confluence in their default configurations, according to BleepingComputer’s report. Atlassian had published no advisory when we last checked at 10:10 UTC on 19 November, and its 17 November security bulletin does not mention the CVE.

Original content from computingforgeeks.com - post 192045

Your apt or dnf upgrade does not reach it, because both products run their own bundled runtime. You fix it yourself in two moves, a JVM flag today and the fixed Eclipse Temurin build in place of the bundled one. The Java4Shell CVE-2026-114938 overview explains the bug. We ran the Docker and Linux-installer steps below on a Google Cloud c3 instance against Jira 11.3.13 and Confluence 11.0.1 on 19 November 2026.

Check which Java your Jira and Confluence run

Atlassian’s Docker images and the Linux installers carry their own Eclipse Temurin build, and every one we pulled was built before the fixed Temurin releases of 18 November. We read the runtime inside each image with java -version rather than trusting the tag:

Image or installJava runtime insideStatus on 19 Nov 2026
atlassian/jira-software:latest and jira-servicemanagement:latest (Jira 11.3.13)Temurin-21.0.13+9Vulnerable
atlassian/jira-software:10 (Jira 10.7.4)Temurin-17.0.21+9Vulnerable
atlassian/confluence:latest (Confluence 11.0.1)Temurin-25.0.5+8Vulnerable
atlassian/confluence:10 (10.2.20) and confluence:9 (9.5.4)Temurin-21.0.13+9Vulnerable
atlassian/bitbucket:latestTemurin-21.0.13+9Vulnerable
Jira 11.3.13 Linux installer (bundled jre/)Temurin-21.0.13+9Vulnerable

A fixed runtime is 17.0.21.1, 21.0.13.1 or 25.0.5.1 or later, so every row in that table needs work. Atlassian lists the runtime each release ships on its Jira bundled Java versions and Confluence bundled Java versions pages, so check those pages for a fixed bundle, but they lag releases (on 19 November the Jira page stopped at 11.3.11), so confirm with java -version against the image or the jre/ directory as well. Until one appears, a newer Jira or Confluence release will not save you either, because the newest ones are exactly the images above.

Before you change anything, check whether the host can run the vulnerable path at all. The JVM only builds the vulnerable decoder on an x86-64 CPU that has all four of these features, and Intel Xeon from Ice Lake onward and AMD Zen 4 or newer do; Skylake and Cascade Lake Xeons do not. Our c3 host (Intel Xeon Platinum 8481C) showed all four.

  • avx512f
  • avx512bw
  • avx512vbmi
  • bmi2

This grep prints the ones your CPU has.

grep -oE '(avx512f|avx512bw|avx512vbmi|bmi2)' /proc/cpuinfo | sort -u

Fewer than four lines means that host cannot run the vulnerable path. We’d still fix it on the normal schedule, because a node replacement or a VM migration can land the same install on a newer CPU.

Find every Atlassian JVM on the host

A host often runs more than one Atlassian JVM: an installer-based Jira, a Confluence container next to it, a Bitbucket left over from a trial. All of them start Tomcat, so this loop finds each one by its Tomcat main class and reads the runtime it runs from, including JVMs inside containers, through /proc/<pid>/root. Save it as inventory.sh:

for pid in $(pgrep -f 'org.apache.catalina.startup.Bootstrap'); do
  exe=$(readlink /proc/$pid/exe)
  build=$(grep JAVA_RUNTIME_VERSION "/proc/$pid/root${exe%/bin/java}/release")
  base=$(tr '\0' '\n' < /proc/$pid/cmdline | grep -oE -- '-Dcatalina.base=.*')
  flag=$(tr '\0' '\n' < /proc/$pid/cmdline | grep -c -- '-XX:-UseBASE64Intrinsics')
  echo "pid=$pid $base exe=$exe"
  echo "  $build, stopgap flag on command line: $flag"
done

Run it as root, because reading another user’s process needs it.

sudo bash inventory.sh

Our lab host ran a rebuilt Jira container, the installer-based Jira and an untouched Confluence container by the end of the lab, and the loop told them apart:

pid=15009 -Dcatalina.base=/opt/atlassian/jira exe=/opt/java/openjdk/bin/java
  JAVA_RUNTIME_VERSION="21.0.13.1+2-LTS", stopgap flag on command line: 0
pid=15991 -Dcatalina.base=/opt/atlassian/jira exe=/opt/atlassian/jira/jre/bin/java
  JAVA_RUNTIME_VERSION="21.0.13.1+2-LTS", stopgap flag on command line: 1
pid=16108 -Dcatalina.base=/opt/atlassian/confluence exe=/opt/java/openjdk/bin/java
  JAVA_RUNTIME_VERSION="25.0.5+8-LTS", stopgap flag on command line: 0

The exe path separates the cases. /opt/java/openjdk is the runtime inside an Atlassian Docker image and /opt/atlassian/<product>/jre is the installer’s bundled JRE. The last line is the one that matters: a Confluence on 25.0.5+8 with no flag is exposed. The version comes from the runtime’s release file on disk, so restart any JVM that started before you replaced its runtime, or it keeps running the old code.

Set the stopgap on Docker deployments

The flag -XX:-UseBASE64Intrinsics turns off the vulnerable decoder and costs some Base64 throughput. Atlassian’s images pass extra JVM options through the JVM_SUPPORT_RECOMMENDED_ARGS variable, as their startup options page documents for Docker. Add it to the run command or your Compose file, together with your usual volume flags:

sudo docker run -d --name jira -p 8080:8080 -e JVM_SUPPORT_RECOMMENDED_ARGS='-XX:-UseBASE64Intrinsics' atlassian/jira-software:latest

If you already set JVM_SUPPORT_RECOMMENDED_ARGS for a trust store or memory setting, add the flag to that same string with a space rather than passing the variable twice. The images ship a full JDK, so jcmd can read the flag straight from the running JVM:

sudo docker exec -u jira jira sh -c 'jcmd $(pgrep -f catalina | head -1) VM.version; jcmd $(pgrep -f catalina | head -1) VM.flags -all | grep UseBASE64Intrinsics'

The build is still the vulnerable 21.0.13+9, but the decoder is now off, and {command line} shows it came from the variable:

7:
OpenJDK 64-Bit Server VM version 21.0.13+9-LTS
JDK 21.0.13
     bool UseBASE64Intrinsics                      = false                                     {product} {command line}

Confluence takes the same variable. We started atlassian/confluence:latest once without it and once with it, and ran this check against each container, with -u confluence because that image runs as the confluence user:

sudo docker exec -u confluence confluence sh -c 'P=$(pgrep -f catalina | head -1); jcmd $P VM.version; jcmd $P VM.flags -all | grep UseBASE64Intrinsics'

Without the variable, Confluence 11.0.1 runs Temurin 25.0.5+8 with the decoder on by default:

8:
OpenJDK 64-Bit Server VM version 25.0.5+8-LTS
JDK 25.0.5
     bool UseBASE64Intrinsics                      = true                                      {product} {default}

With -e JVM_SUPPORT_RECOMMENDED_ARGS='-XX:-UseBASE64Intrinsics' on the run command, the same check prints:

     bool UseBASE64Intrinsics                      = false                                     {product} {command line}

On Kubernetes, Atlassian’s Data Center Helm charts take extra JVM options under additionalJvmArgs in values.yaml, per the same startup options page. We did not run the Helm charts in this lab, so confirm the flag with the jcmd check in a pod after the rollout.

Set the stopgap on installer deployments

A Jira installed with the Linux .bin installer into /opt/atlassian/jira reads its JVM options from /opt/atlassian/jira/bin/setenv.sh, which ships with an empty JVM_SUPPORT_RECOMMENDED_ARGS="" line. Put the flag inside the quotes:

sudo sed -i 's/^JVM_SUPPORT_RECOMMENDED_ARGS=""/JVM_SUPPORT_RECOMMENDED_ARGS="-XX:-UseBASE64Intrinsics"/' /opt/atlassian/jira/bin/setenv.sh
grep -n '^JVM_SUPPORT_RECOMMENDED_ARGS=' /opt/atlassian/jira/bin/setenv.sh

The sed only matches the stock empty line. If yours already holds options, the grep shows them unchanged, and you add the flag inside the existing quotes by hand. On our fresh install it printed:

14:JVM_SUPPORT_RECOMMENDED_ARGS="-XX:-UseBASE64Intrinsics"

The installer registers Jira as the jira init script, so restart it through that:

sudo /etc/init.d/jira stop
sudo /etc/init.d/jira start

Here our first check failed, because the installer’s bundled JRE is a runtime, not a JDK. Its bin/ directory holds java and five small tools, and jcmd is not one of them. You get this when you try it.

sudo: /opt/atlassian/jira/jre/bin/jcmd: command not found

Tomcat logs every JVM argument at startup, so catalina.out is the quickest proof that the flag reached the JVM:

sudo grep -h 'Command line argument: -XX:-UseBASE64Intrinsics' /opt/atlassian/jira/logs/catalina.out | tail -1

The last matching line carries the time of the restart.

19-Nov-2026 09:45:05.974 INFO [main] org.apache.catalina.startup.VersionLoggerListener.log Command line argument: -XX:-UseBASE64Intrinsics

For proof from the live JVM, borrow jcmd from any JDK of the same major version and run it as the jira user. We used Ubuntu’s openjdk-21-jdk-headless package against the running Temurin JVM:

P=$(pgrep -u jira -f catalina); sudo -u jira /usr/lib/jvm/java-21-openjdk-amd64/bin/jcmd $P VM.version; sudo -u jira /usr/lib/jvm/java-21-openjdk-amd64/bin/jcmd $P VM.flags -all | grep UseBASE64Intrinsics

It attaches cleanly and reports the bundled build with the decoder off.

10961:
OpenJDK 64-Bit Server VM version 21.0.13+9-LTS
JDK 21.0.13
     bool UseBASE64Intrinsics                      = false                                     {product} {command line}

Confluence installs use the same bin/setenv.sh, but Atlassian documents the CATALINA_OPTS line there instead, keeping ${CATALINA_OPTS} in the string (see Configuring System Properties). On a Windows service, Atlassian’s docs have you run tomcat9w //ES//<SERVICENAME> from the product’s bin directory (the service name is in services.msc; the executable name follows the bundled Tomcat version), open the Java tab and add -XX:-UseBASE64Intrinsics on its own line. We tested the installer path on Jira for Linux only, so check catalina.out for the flag after a Confluence or Windows restart.

Swap in the fixed Temurin runtime

The flag is a stopgap. The fix is a runtime at or above the fixed build, and you do not have to wait for Atlassian to repackage one. Jira’s supported platforms page lists Eclipse Temurin at the Java 21 runtime level and recommends the latest Java 21. Temurin 21.0.13.1+2, released on 18 November, is that build. Replacing the installer’s jre/ directory with it changes nothing else in the install. Download the JRE and check it against the checksum Adoptium publishes:

cd /tmp && curl -sSLO https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.13.1%2B2/OpenJDK21U-jre_x64_linux_hotspot_21.0.13.1_2.tar.gz && echo '18f44fab9065217f3ba61d0eef8a7b5f3c3713aa7293001b0d4ac10ede3850f0  OpenJDK21U-jre_x64_linux_hotspot_21.0.13.1_2.tar.gz' | sha256sum -c

Go on only if it prints OK:

OpenJDK21U-jre_x64_linux_hotspot_21.0.13.1_2.tar.gz: OK

Stop Jira, move the old runtime aside rather than deleting it, unpack the new one in its place and copy the old directory’s ownership:

sudo /etc/init.d/jira stop
cd /opt/atlassian/jira
sudo mv jre jre-21.0.13-vulnerable
sudo mkdir jre
sudo tar -xzf /tmp/OpenJDK21U-jre_x64_linux_hotspot_21.0.13.1_2.tar.gz -C jre --strip-components=1
sudo chown -R --reference=jre-21.0.13-vulnerable jre
jre/bin/java -version

The new jre/ reports the fixed build:

openjdk version "21.0.13.1" 2026-11-17 LTS
OpenJDK Runtime Environment Temurin-21.0.13.1+2 (build 21.0.13.1+2-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.13.1+2 (build 21.0.13.1+2-LTS, mixed mode, sharing)

Start Jira again with sudo /etc/init.d/jira start and check what the running process maps, plus Jira’s status endpoint:

P=$(pgrep -u jira -f catalina); sudo ls -l /proc/$P/exe; sudo -u jira /usr/lib/jvm/java-21-openjdk-amd64/bin/jcmd $P VM.version; curl -s http://localhost:8080/status; echo

The process runs from the swapped directory on 21.0.13.1, and Jira answered its status endpoint (our lab instance was never set up past the first-run wizard, hence FIRST_RUN):

lrwxrwxrwx 1 jira jira 0 Nov 19 09:50 /proc/12775/exe -> /opt/atlassian/jira/jre/bin/java
12775:
OpenJDK 64-Bit Server VM version 21.0.13.1+2-LTS
JDK 21.0.13.1
{"state":"FIRST_RUN"}

Keep the stopgap flag in setenv.sh until every Atlassian JVM on the host is on a fixed build, then remove it and restart. Two cautions apply. Expect a later Jira upgrade through the installer to lay down its own jre/ again, so rerun the inventory after every upgrade until Atlassian’s bundled versions page shows a fixed runtime. A Confluence 11 install takes the same swap with the Temurin 25.0.5.1 JRE, which we did not run on an installer.

Pointing JAVA_HOME on line 78 of setenv.sh at a distro JDK also works. Jira ran on Ubuntu’s openjdk-21 21.0.13.1+2 in our lab (our Ubuntu Java4Shell patch guide covers that package), and Atlassian says it still supports other OpenJDK distributions such as Zulu but sends Java bugs to that vendor. We’d stay on Temurin, the runtime Atlassian’s support team reproduces issues with.

Rebuild the Docker images on the fixed JDK

Atlassian’s images keep the JDK in /opt/java/openjdk, so a short Dockerfile on top of the official tag replaces it with the fixed Temurin JDK and leaves the rest of the image alone. For Confluence 11.0.1 that’s Temurin 25.0.5.1+2. Save this as Dockerfile:

FROM atlassian/confluence:11.0.1
# https://github.com/adoptium/temurin25-binaries/releases/tag/jdk-25.0.5.1%2B2
ARG JDK_URL=https://github.com/adoptium/temurin25-binaries/releases/download/jdk-25.0.5.1%2B2/OpenJDK25U-jdk_x64_linux_hotspot_25.0.5.1_2.tar.gz
ARG JDK_SHA256=760f91b22c3efc9bd1b64ff950598231be82928cc807e30691a0e7a2995a62c0
RUN curl -fsSL -o /tmp/jdk.tar.gz "$JDK_URL" \
 && echo "$JDK_SHA256  /tmp/jdk.tar.gz" | sha256sum -c - \
 && rm -rf /opt/java/openjdk && mkdir -p /opt/java/openjdk \
 && tar -xzf /tmp/jdk.tar.gz -C /opt/java/openjdk --strip-components=1 \
 && rm /tmp/jdk.tar.gz \
 && java -version

We replaced the JDK rather than only the JRE because the official images ship the full JDK, and keeping jcmd inside the image keeps the checks above working. Build it and check the runtime:

sudo docker build -q -t confluence-fixed:11.0.1 .
sudo docker run --rm --entrypoint java confluence-fixed:11.0.1 -version

The rebuilt image reports the fixed build.

openjdk version "25.0.5.1" 2026-11-17 LTS
OpenJDK Runtime Environment Temurin-25.0.5.1+2 (build 25.0.5.1+2-LTS)
OpenJDK 64-Bit Server VM Temurin-25.0.5.1+2 (build 25.0.5.1+2-LTS, mixed mode, sharing)

A container from that image came up with jcmd VM.version at JDK 25.0.5.1 and the status endpoint answering. Jira 11.3.13 takes the same file with the Temurin 21.0.13.1+2 JDK, which we built and ran the same way:

FROM atlassian/jira-software:11.3.13
# https://github.com/adoptium/temurin21-binaries/releases/tag/jdk-21.0.13.1%2B2
ARG JDK_URL=https://github.com/adoptium/temurin21-binaries/releases/download/jdk-21.0.13.1%2B2/OpenJDK21U-jdk_x64_linux_hotspot_21.0.13.1_2.tar.gz
ARG JDK_SHA256=bb8a93f9ae6e7a693b2b721e85dbeff26ae1a77447985a8d7afcdd9c7cf6222e
RUN curl -fsSL -o /tmp/jdk.tar.gz "$JDK_URL" \
 && echo "$JDK_SHA256  /tmp/jdk.tar.gz" | sha256sum -c - \
 && rm -rf /opt/java/openjdk && mkdir -p /opt/java/openjdk \
 && tar -xzf /tmp/jdk.tar.gz -C /opt/java/openjdk --strip-components=1 \
 && rm /tmp/jdk.tar.gz \
 && java -version

Pin the FROM line to the product version you run, not latest, so a rebuild never upgrades Jira or Confluence behind your back. Drop the rebuilt image once Atlassian publishes tags on a fixed runtime, and pull theirs instead. The Java4Shell guide for Docker and Kubernetes tracks which base images have moved.

Confirm the fix with Calif’s trigger

Calif publishes a bounded test program with its write-up. It decodes a malformed Base64 string into a large array and prints REPRODUCED when bytes past the output were overwritten. We ran it unmodified with each image’s own java, five times per runtime:

RuntimeBuildResult in 5 runs
atlassian/jira-software:latest21.0.13+9REPRODUCED 4 times
atlassian/confluence:latest25.0.5+8REPRODUCED 4 times
atlassian/confluence:latest with -XX:-UseBASE64Intrinsics25.0.5+80 bytes changed in all 5
Rebuilt Jira and Confluence images21.0.13.1+2, 25.0.5.1+20 bytes changed in all 5 each

A hit on the stock Jira image reads like this, 62 bytes written past a 50-byte output:

runtime=21.0.13+9-LTS
vm=OpenJDK 64-Bit Server VM
rejected=true changed=62 first=50 last=111
REPRODUCED

One run in five missed on each vulnerable image, so a clean run proves nothing about a build, and the test never fires on Java 17, which needs a different input. Treat a hit as proof that an install is exposed on your hardware, and keep the build string and the UseBASE64Intrinsics line from jcmd as the evidence in your change record.

Patch in this order

The flag goes first because it takes one restart and needs nothing from Atlassian. The runtime swap follows, and the inventory tells you when you’re done.

  1. Set -XX:-UseBASE64Intrinsics on every Jira and Confluence JVM
  2. Swap the installer jre/ for Temurin 21.0.13.1 or 25.0.5.1
  3. Rebuild Docker images on the fixed Temurin JDK
  4. Rerun the inventory until no line shows an old build

Until you finish, keep Jira and Confluence reachable only through your VPN or SSO proxy, because Calif’s chains need no login. Jira 10 runs Java 17, so set the flag there the same way and swap in Temurin 17.0.21.1, a path we did not run in this lab; Calif’s test can’t confirm anything on Java 17, so the build string is your only evidence. For a fresh Jira 11 host to move onto, our Jira install guide for Ubuntu and Rocky Linux covers the setup.

Keep reading

Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs Security Java4Shell (CVE-2026-114938): Find and Patch Vulnerable JVMs UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 Security UFW Firewall Commands with Examples on Ubuntu 26.04 / 24.04 nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch Security nginx HTTP/2 RCE CVE-2026-123007: Check, Disable HTTP/2, Patch GL.iNet Security Notice: Check Your Router for Malware and Update Networking GL.iNet Security Notice: Check Your Router for Malware and Update Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Security Flatpak 1.18.6 Sandbox Escape CVEs: Check Version and Patch Synology CVE-2026-120382: DSM Versions, Fix Status, Mitigation Security Synology CVE-2026-120382: DSM Versions, Fix Status, Mitigation

Leave a Comment

Press ESC to close