Java4Shell CVE-2026-114938

A Java flaw called Java4Shell CVE-2026-114938 can let attackers without an account run their own code on a few popular applications. Attacks on other applications have so far resulted in crashes and a memory leak but not the code execution. The vulnerability only affects x86-64 Intel and AMD chips that support the AVX-512 VBMI feature, which are probably present in most TrapStation installations.

The threat to TrapStation is limited because it is usually not running in an environment where it can be accessed by an external attacker. However, to be safe, we recommend the following fix until the necessary Java update is available. It will disable a feature that unsafely decodes base-64. The effect on TrapStation performance will be imperceptible since base-64 is so rarely processed.

Disable Flawed Java Feature

The flag -XX:-UseBASE64Intrinsics will disable Java's use of the CPU's AVX-512 VBMI feature. Edit your [TRAPSTATION_HOME]/bin/trapstation.sh script to apply the flag. See the new line highlighted below. Your file may look a little different... Just place the new line after the line containing serverOpts="-server". Then stop/start TrapStation.

#!/bin/bash
#
# Augur® - TrapStation™
#
# Copyright © 2014-2026  Augur Systems, Inc.  All rights reserved.
# https://www.augur.com/
#_____________________________________________________________________________
PRODNAME=TrapStation
# These options adjust the Java VM for long-term server operations
serverOpts="-server" 
serverOpts="${serverOpts} -XX:-UseBASE64Intrinsics"
serverOpts="${serverOpts} -XX:+ExitOnOutOfMemoryError"
#serverOpts="${serverOpts} -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=../java-heap.hprof"

#java_opts="-XX:+UseG1GC -verbose:gc -XX:+PrintGCDetails -Duser.pwd=${PWD}"
#java_opts="-verbose:gc -XX:+PrintGCDetails -Duser.pwd=${PWD}"

⋮

Permanent Fix

The next TrapStation update will include the latest Java that fixes the bug, and so the flag will not be present in the updated trapstation.sh.