Repository navigation
Closed
Description
Problem
Since the 2026-08-18 OpenJDK vulnerability advisory, JDK vendors ship monthly security patch releases between the quarterly updates (third Tuesday of every month except January, April, July and October). These use the JEP 322 $PATCH field: $FEATURE.$INTERIM.$UPDATE.$PATCH[+$BUILD].
The August release fixes CVE-2026-61308, CVE-2026-70907 and CVE-2026-60589 (all lines), plus CVE-2026-70906 (25+).
Current state (cflinuxfs4 manifest vs. upstream latest):
| JRE | Line | Manifest | Upstream latest |
|---|---|---|---|
Liberica (openjdk) |
11 | 11.0.32+11 | 11.0.32.1+1 |
| 17 | 17.0.20+10 | 17.0.20.1+1 / +2 | |
| 21 | 21.0.12+10 | 21.0.12.1+1 / +2 | |
| 25 | 25.0.4+9 | 25.0.4.1+1 | |
| Zulu | 11 | 11.0.32 | 11.0.32.1 |
| 17 | 17.0.20 | 17.0.20.1 | |
| SapMachine | 17/21/25 | 17.0.20 / 21.0.12 / 25.0.4 | .1 releases, handled by #1460 |
Java 8 is current (8u504 includes the fixes).
Causes
- Update pipeline drops the releases silently (cloudfoundry/buildpacks-ci
dockerfiles/depwatcher-go/pkg/watchers):liberica.goformats%d.%d.%d+%dand ignores the API'spatchVersion, so21.0.12.1+1becomes21.0.12+1, which semver treats as equal to21.0.12+10.zulu.goparseVersionrequires exactly three components; since the 4-part release is the newest per major, the whole major is skipped.
- libbuildpack version handling (after Adjustment to handle 4 digit versions libbuildpack#213, which supports pure
X.Y.Z.N):X.Y.Z.N+B(Liberica, Temurin format) fails withInvalid Semantic Version. BecauseFindMatchingVersionfails on any unparsable entry, andInstaller.warnNewerPatchruns it over all versions of a dependency, a single such manifest entry would break resolution and installation of every version of that JRE.warnEndOfLifeusessemver.NewVersion, so deprecation warnings are silently skipped for 4-part versions.- Only 4 numeric fields are supported (JEP 322 allows more, e.g. SapMachine
21.0.10.0.1), and+BUILDis ignored when comparing (+1vs+2).
Proposal
Make JRE version handling JEP 322 compatible:
- libbuildpack: one normalize/compare helper supporting any number of numeric fields (trailing zeros insignificant) and a numeric
+BUILDtie-breaker, used byFindMatchingVersion,warnNewerPatchandwarnEndOfLife. - java-buildpack: bump libbuildpack; extend
normalizeVersionPatterninsrc/java/jres/jre.goto accept exactX.Y.Z.N+Bpins; keepBP_JAVA_VERSION: 21,21.+,21.*resolving to the newest version. Decide on one manifest version format for all JREs (with or without+BUILD). - buildpacks-ci: Liberica and Zulu watchers emit full JEP 322 versions.
- Tests: ordering
21.0.12 < 21.0.12.1 < 21.0.12.1.1,+1 < +2, mixed lists, Java 8 (8u504=8.0.504).
Follow-up to #1460.
Metadata
Metadata
Assignees
Labels
No labels
Activity
Support JEP 322 version strings
stokpop commentedon Oct 12, 2026
Status update:
X.Y.Z.N+Bpins; merged, not yet released.21.0.12.1+1,17.0.20.1). Kept as draft until a java-buildpack release includes Support JEP 322 JRE version strings #1462, so the manifest is not updated with versions an older java-buildpack cannot resolve.Support JEP 322 JRE version strings