Code quality

Java4Shell, NGINX HTTP/2, Azure DevOps: What to Check in Your SonarQube Environment

SonarQube Server LTA releases now fix Java4Shell. Use this checklist for servers, scanners, Helm charts and Azure DevOps tasks before December 7.

10 min read

In brief

  • Fixed SonarQube Server releases are now available for Java4Shell (2026.5.6, 2026.1.9 and 2025.4.12 LTA). For ZIP installations the Java runtime must be updated separately, and there is no fix information yet for the Community Build.
  • Scanners, CI agents and the MCP container must be checked separately before you remove the -XX:-UseBASE64Intrinsics flag.
  • The NGINX HTTP/2 issue only affects those who enabled the ingress-nginx controller in a Helm chart older than 2026.5.
  • After December 7, pipelines that use the Azure DevOps @7 and @3 tasks will fail.

Code quality and security tools run at a privileged point in the development chain: they have access to source code, the CI environment and often access tokens as well. That is why maintaining a self-hosted SonarQube instance is not a side task. The Sonar community weekly roundup (November 21–27, 2026) mentions three such tasks: SonarQube Server releases containing the Java4Shell fix have been published, new guidance has been released for NGINX HTTP/2 vulnerabilities in Helm charts, and on December 7 the old task versions of the Azure DevOps extensions will be removed.

Java4Shell: the workaround can be replaced with a fix

What happened?

According to Sonar’s advisory of November 17, 2026, Java4Shell (CVE-2026-114938) is a flaw in the Java runtime, not in Sonar’s own code. It affects the hardware-accelerated Base64 decoder in OpenJDK 17.0.6 and later versions, including Java 21 and 25. On affected x86-64 processors that support AVX-512 VBMI, it reportedly allows unauthenticated remote code execution. ARM-based machines are not affected. At that time, Sonar stated that there was no evidence of exploitation.

The initial temporary workaround was the -XX:-UseBASE64Intrinsics JVM flag, which disables the affected acceleration in the Web, Compute Engine and Search processes. According to Sonar, no noticeable performance impact is expected.

What changed from November 25?

SonarQube Server 2026.5.6 LTA, 2026.1.9 LTA and 2025.4.12 LTA have been released, containing the Java runtime fix. According to the advisory, what you need to do depends on how you installed SonarQube:

Installation typeAction according to Sonar’s advisory
ZIP installationDownload the fix for your release line and update the Java runtime on the Server to the Java vendor’s fixed version. Updating the ZIP does not replace the runtime.
DockerPull the fixed Server image from Docker Hub and redeploy.
HelmRedeploy the fixed image using the appropriate Helm chart (Artifact Hub).
Community BuildThese releases apply only to SonarQube Server. The initial guidance still applies to the Community Build, and the thread will be updated when fix information is available.

Once the Server runs on a fixed Java runtime, the temporary flag can be removed. The advisory also notes that the workaround may remain in place after the fix.

What is easy to forget

  • Scanners and CI agents. On x86-64 CI agents where untrusted code is analyzed, Sonar recommends the same Java flag (SONAR_SCANNER_JAVA_OPTS). For the .NET scanner, SONAR_SCANNER_OPTS or JAVA_TOOL_OPTIONS can be used, only with Java 17 or newer. Java 8 does not recognize the flag and will not start with it.
  • JRE auto-provisioning. According to the official documentation, the scanner downloads the required JRE from the SonarQube Server, and this JRE arrives with the Server release. In the community thread, a Sonar staff member confirmed on November 27 that the JREs used for provisioning have also been fixed. If you want to use your own fixed JRE before updating the Server, the documentation says to disable auto-provisioning and install the JRE on the CI machines.
  • SonarQube MCP Server. If you have enabled it, the flag must be set separately for the JVM of the separate container (JAVA_TOOL_OPTIONS), because the Server’s settings are not inherited.
  • GitHub Action. As of November 23, there was no upstream fix yet for the Java distribution used by sonarqube-scan-action, and Sonar was considering replacing the distribution, with no deadline. Check the current status.
  • Verification. On Linux, the command grep -la -- '-XX:-UseBASE64Intrinsics' /proc/[0-9]*/cmdline shows that the flag is present for all three processes. The startup lines of the Web and Compute Engine processes in sonar.log also show it.

NGINX HTTP/2: only affects those who enabled the ingress-nginx controller

Sonar’s advisory of November 24 covers two NGINX HTTP/2 vulnerabilities (CVE-2026-123633 and CVE-2026-123007), both with a CVSS v3.1 score of 8.1 (High). A remote attacker could crash the NGINX worker or potentially execute code on the controller. The flaw is in NGINX, not in the SonarQube Server web server.

The scope of exposure is narrow. The bundled ingress-nginx controller is disabled by default and affects only those who enabled it in a sonarqube or sonarqube-dce chart older than 2026.5 (ingress-nginx.enabled or nginx.enabled). From chart version 2026.5, Sonar removed the bundled controller.

Sonar recommends moving to a maintained controller. The reason is that the Kubernetes project has retired Ingress NGINX, which has not received security fixes since March 2026. There are two paths:

  • Gateway API: using the chart’s httproute values and a maintained implementation (the advisory’s examples: Envoy Gateway, Istio, Traefik, Cilium).
  • Kubernetes Ingress: setting ingress.ingressClassName to point to a maintained controller (for example a cloud provider controller, Traefik, HAProxy, or the F5 NGINX Ingress Controller running a patched NGINX).

If you cannot switch immediately, a temporary workaround is to disable HTTP/2 on the controller (use-http2: "false"). Sonar emphasizes that this is only a mitigation, not a fix for the retired controller.

Azure DevOps: the @7 and @3 tasks disappear on December 7

On December 7, 2026, version 9.0 of the SonarQube Server extension (@9 tasks) and version 5.0 of the SonarQube Cloud extension (@5 tasks) will be released. Both bundle SonarScanner for .NET 12. According to Sonar’s announcement:

  • the @7 (Server) and @3 (Cloud) tasks will be removed, and pipelines that use them will fail after the release;
  • the @8 and @4 tasks will still be available but are deprecated and will show a warning. They still use SonarScanner for .NET 11, and switching only requires changing the version number;
  • if you analyze .NET projects with SonarQube Server, SonarScanner for .NET 12 requires SonarQube Server 2025.1 LTA or newer. For an older server, you can set dotnetScannerVersion: '[11.3.0.1175]' in the Prepare task;
  • self-hosted agents require version 3.232.1 or newer;
  • the Prepare, Analyze and Publish tasks must use the same task version.

At the time of writing, the official documentation still shows the @8 tasks and agent version 3.218.0, so the @9/@5 details come from Sonar’s announcement. For .NET projects, Sonar has published a separate community post about the breaking changes in SonarScanner for .NET 12, which is worth reading in full before switching. Quick check: search your repositories for SonarQubePrepare@7 or SonarCloudPrepare@3. If your pipeline runs have not shown a deprecation warning, you are not affected: @7 and @3 have printed one on every run since December 2025.

Lessons for operations

The three news items show a common pattern: the security of an analysis platform depends on its entire dependency chain. That includes the JVM, the ingress controller, the CI agents and the scanners. The Java4Shell workaround affected three Server processes, the scanners and the MCP container. The typical risks are:

  • Partial remediation. The Server is fixed, but the CI agents or the MCP container are not.
  • Retired component. The retired Ingress NGINX will not receive fixes, so only migrating away resolves the issue permanently.
  • Unexpected CI outage. Failing pipelines after December 7 block the build and release process.

Practical checklist

  1. Take inventory: which SonarQube release is running, with which installation type (ZIP, Docker, Helm, Data Center Edition), and on which Java runtime.
  2. Update to the fixed LTA release (2026.5.6, 2026.1.9 or 2025.4.12), and for ZIP installations update the JDK separately.
  3. Check the scanners, CI agents, the MCP container and the GitHub Action as well before you remove the flag.
  4. For Helm, check whether the bundled ingress-nginx was enabled, and plan the migration to the Gateway API or a maintained Ingress controller.
  5. Find the @7 and @3 tasks in your Azure DevOps pipelines, and decide whether the target version should be @9/@5 or, temporarily, @8/@4.
  6. Community Build users should follow the advisory thread for fix information.

What is changing on the product side

The weekly roundup also mentions some product developments. In SonarQube Cloud, a project’s Intended Architecture can now also be defined in a sonar-architecture.json file in the project’s base directory. The next analysis reads the file and checks the code against it, while pull request analysis compares against the file in the given branch. The feature is currently available in SonarQube Cloud, and according to Sonar’s announcement, SonarQube Server support is expected in the next version. Supported languages are Java, C#, JavaScript, TypeScript and Python. We did not find this file in the official documentation, so the announcement is the primary source.

SonarQube CLI 1.13.0 brings a deterministic sonar hook agent-stop hook for coding agents (for example Claude Code, Codex, Copilot, Cursor). When the agent finishes a turn, the CLI runs Sonar Vortex analysis on the modified files and sends the issues to be fixed back to the agent. According to the announcement, the agent may stop after three rounds of fixes. The new sonar init command is in beta and guides you through project setup up to the first SonarQube Cloud analysis.

Among the community feedback, it is worth mentioning that merging C# coverage reports can skew coverage upward or downward depending on the order in which they are read. For one user, this occasionally caused failing quality gates. The pull request with the fix is under review at Sonar. Release 4.2.3 of eslint-plugin-sonarjs already uses the fixed minimatch 11.0.9.

Help with reviewing your SonarQube environment

If you are not sure that your SonarQube instance, scanners and CI pipelines are all in the right state, the experts at Szitár-Net Kft. can help with taking inventory, planning the update and reviewing your Helm or Azure DevOps configuration. Get in touch with us through sonarqube.hu.

Frequently asked questions

What is Java4Shell, and does it affect SonarQube?

According to Sonar’s advisory, Java4Shell (CVE-2026-114938) is a vulnerability in the Base64 decoder of OpenJDK 17.0.6 and later versions, not in Sonar’s own code. SonarQube is affected if it runs on a vulnerable Java version and on affected x86-64 hardware. ARM-based machines are not affected.

Can I remove the -XX:-UseBASE64Intrinsics flag after updating?

On the Server side, yes, if it runs on a fixed Java runtime (for ZIP installations the JDK must be updated separately). For scanners, CI agents and the MCP container, check the JRE in use separately before removing the flag.

Does the NGINX HTTP/2 issue affect me if I don’t use a Helm chart?

Sonar’s advisory concerns the optional ingress-nginx controller enabled in SonarQube Server Helm charts older than 2026.5. If the controller was disabled, there is nothing to do for the chart component. If you run a separate NGINX controller, follow the controller vendor’s announcements.

What happens to pipelines that still use an @7 task after December 7?

According to Sonar’s announcement, pipelines that use the @7 (Server) and @3 (Cloud) tasks will fail after the release. The @8 and @4 tasks will still work but will show a warning, so changing the version number may be enough as an interim step.

Sources

About the editor

Bencsik Mátyás

Bencsik Mátyás, SonarQube SVAR Technical Engineer, Project Manager

Back to all articles

Mátyás Bencsik

Edited by

Mátyás Bencsik

SonarQube SVAR Technical Engineer, Head of Development

As head of development he cares about the quality of the code his team ships, which is why they use SonarSource solutions every day. He puts the experience gained in operating and rolling out SonarQube to work for Szitár-Net clients.

More articles Work with us

Related articles

Code quality

A Comparison of Source Code Analysis Tools

Source code analysis plays an essential role in software development and cybersecurity. Today there are numerous tools available whose purpose

Read on 4 min

Code quality

The Importance of Source Code Analysis

Software development is playing an increasingly leading role in the technology world. Because of rapid change and growing competition, software developers

Read on 3 min

SonarSource Partner