Repository navigation
Catch vulnerabilities in the language runtimes a team runs - #775
Merged
Merged
Conversation
A JDK is not a Maven package and a JDK unpacked into an image is not an OS package, so CVE-2026-114938 in the JDK's Base64 decoder matched nothing. Runtimes are now found in code (Dockerfile JDK images, version files, Gradle and Maven, CI setup steps, Lambda runtimes) and on AWS (every package SSM inventory lists, not only the kernel), matched against the OpenJDK Vulnerability Group's advisories with what the Amazon Linux java advisories add, and each finding says whether the CPU it runs on meets the advisory's hardware condition.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
CVE-2026-114938 (a heap overflow in the JDK's
java.util.Base64decoder, AVX-512 VBMI intrinsic) matched nothing: a JDK is not a Maven package, a JDK unpacked into an image is not an OS package, SSM inventory was read for the kernel only, and nothing knew which CPU an instance runs on. CoderHelm now finds the runtimes a team runs in its code and its AWS accounts, matches them against the runtime project's own advisories, and says whether the advisory's hardware condition holds.Live sources checked on 2026-11-18 before building: the OpenJDK advisory of 2026-11-17 lists the CVE (lines 17, 21, 25, 27; last affected 17.0.21.0.3, 21.0.13.0.3, 25.0.5.0.3, 27.0.1.0.3). ALAS2023-2026-3478 to 3481 and ALAS2-2026-4123 cover the Corretto packages: their text says 17.0.6 and later, x86-64, ARM64 not affected, and they list the fixed builds. OSV has no JDK ecosystem, only distribution
openjdk-*source packages. The CPU feature (AVX-512 VBMI) and the flag-XX:-UseBASE64Intrinsicsare not in any feed that can be read, so they live in a dated, sourced notes file.Changes
common/src/runtime_vuln/(new):decls: runtime declarations from Dockerfile JDK/Node/Python/Go images,.java-version,.sdkmanrc,.tool-versions,.nvmrc,.python-version,go.modtoolchain, Gradle toolchains, Maven release, CIsetup-*versions, and Lambda runtimes (Terraform, SAM/CloudFormation, Serverless, CDK). Each says whether it is an exact build or a line.advisories: the OpenJDK index and pages parser, enrichment from the ALAS java advisories (start of affected range, hardware, flags, Corretto fixed builds, upstream fix),notes.json, and version standing.findings: the repository findings, as dependency findings of theruntimeecosystem. A pull request is opened when a fixed build is known in the same form (an image's lowest fixed tag of the same variant from the registry's tag list, or a version file's upstream fix). A line, a floating tag or a republished tag gets a rebuild runbook. Findings close when the code no longer declares an affected build. An arm64-only image is kept at P3 with the reason.cpu: EC2 instance family to architecture, CPU generation and AVX-512 VBMI.infra_vuln:ec2:DescribeInstances,eks:DescribeNodegroupandssm:ListInventoryEntriesalready return the type, the architecture and the packages. The role template is unchanged.docs/runtime-vulnerabilities.md.docs/self-host/requirements.mdlistsopenjdk.org.Verification
cargo fmt --all --check,cargo clippy --workspace --all-targets -D warnings,cargo test --workspace: all pass.runtime_vuln/testdata), each producing a finding for CVE-2026-114938:eclipse-temurin:21.0.4_7-jre(PR to21.0.13.1_2-jrewhen the registry has it) and a floating21-jre;.java-version17.0.15 (PR to 17.0.21.1);setup-java21;java21(AWS-managed row);m7i(P1, VBMI holds),m6gandm5(P3, with the reason).cargo test -p common runtime_vuln::replay::live -- --ignored --nocaptureagainst the live sources finds the CVE in every positive fixture and in none of the negatives.