GitLab
Follow
Java4Shell: GitLab helps find and remediate a critical Java flaw
GitLab confirms its infrastructure is not exploitable by Java4Shell, though one component will be proactively upgraded. On November 17, 2026, OpenJDK fixed Java4Shell (CVE-2026-114938), a memory corruption flaw in optimized java.util.Base64 decoding. This vulnerability allows unauthenticated remote code execution in default configurations of various Java products. To mitigate, upgrade Java runtimes from 17.0.6 onwards to OpenJDK 17.0.21.1, 21.0.13.1, or later patched versions. If immediate upgrade is not possible, disable the vulnerable optimization with the -XX:-UseBASE64Intrinsics JVM option. This option makes Base64 decoding slightly slower but uses the secure, unflawed version. For containers, rebuild images with fixed tags or update pinned tags, then redeploy. For hosts, upgrade the package and restart Java processes. GitLab provides tools to locate Java projects: container scanning for package vulnerabilities, GitLab Orbit for project indexing, and a language filter for code discovery. These static views should be compared with a runtime inventory to identify all running Java instances. GitLab Duo Agent Platform can automate discovery and remediation, creating merge requests to update Java versions or apply the JVM workaround. This ensures rapid, consistent application of fixes across affected projects with human oversight for review and merging. Merge request approval policies and scan execution policies help prevent reintroduction of vulnerable Java versions.