Skip to content

Mitigate Java4Shell: disable Base64 AVX-512 intrinsic (#230) - #231

Merged
subkanthi merged 7 commits into
masterfrom
230-address-java4shell-cve---java-17
Nov 21, 2026
Merged

subkanthi merged 7 commits into
masterfrom
230-address-java4shell-cve---java-17

Conversation

@subkanthi

Copy link
Copy Markdown
Collaborator

Add -XX:-UseBASE64Intrinsics to Dockerfiles and executable-jar launcher stubs. The flag is arch-neutral (works on both amd64 and arm64), unlike -XX:UseAVX=2 which breaks ARM.

Native images (Dockerfile.native) are not affected — GraalVM native images do not contain the HotSpot C2 intrinsic.

Add -XX:-UseBASE64Intrinsics to Dockerfiles and executable-jar
launcher stubs. The flag is arch-neutral (works on both amd64 and
arm64), unlike -XX:UseAVX=2 which breaks ARM.

Native images (Dockerfile.native) are not affected — GraalVM native
images do not contain the HotSpot C2 intrinsic.
@subkanthi subkanthi linked an issue Nov 21, 2026 that may be closed by this pull request
Scan built Docker images for JVM and OS-package CVEs.
The existing filesystem scans only see Maven dependencies and
would not have caught Java4Shell (a HotSpot intrinsic bug).
@github-advanced-security

Copy link
Copy Markdown

You are seeing this message because GitHub Code Scanning has recently been set up for this repository, or this pull request contains the workflow file for the Code Scanning tool.

What Enabling Code Scanning Means:

  • The 'Security' tab will display more code scanning analysis results (e.g., for the default branch).
  • Depending on your configuration and choice of analysis tool, future pull requests will be annotated with code scanning analysis results.
  • You will be able to see the analysis results for the pull request's branch on this overview once the scans have completed and the checks have passed.

For more information about GitHub Code Scanning, check out the documentation.

- Bump jackson.version 2.18.8 -> 2.18.11 (CVE-2026-89407, CVE-2026-89425,
  CVE-2026-68497, CVE-2026-91776, CVE-2026-91777)
- Bump httpclient5.version 5.4.3 -> 5.6.3 (GHSA-hjcp-jmpx-g3qm)
- Add jackson-bom, guava 33.7.2-jre, jspecify 1.0.1 to dependencyManagement
  to fix convergence errors
- Add trivy.yaml to suppress guava false positive (Trivy static pom parser
  does not follow dependencyManagement overrides for transitive deps)
Add trivy-config: trivy.yaml to the four trivy-image scan steps so
the base-image CVE suppressions are applied.
trivy.yaml ignoredVulns was silently ignored — not a valid Trivy config
key. Move all CVE suppressions to .trivyignore (plain-text, one ID per
line), which Trivy loads automatically for all scan types.
@subkanthi
subkanthi merged commit bf547e9 into master Nov 21, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Address java4shell CVE - Java 17

2 participants