Skip to content

fix(QTDI-3656): Upgrade JDK to 17.0.21+9 for CVE-2026-91403 - #1302

Merged
thboileau merged 13 commits into
maintenance/1.64from
fix/QTDI-3656-cve-2026-91403-maintenance-1.64
Oct 29, 2026
Merged

thboileau merged 13 commits into
maintenance/1.64from
fix/QTDI-3656-cve-2026-91403-maintenance-1.64

Conversation

@thboileau

Copy link
Copy Markdown
Contributor

Requirements

  • Any code change adding any logic MUST be tested through a unit test executed with the default build
  • Any API addition MUST be done with a documentation update if relevant

Why this PR is needed?

Oracle CVE-2026-91403: Java updates distrust impacted eMudhra intermediate CAs. JDK 17.0.21 is the patched release (QTDI-3656).

What does this PR adds (design/code thoughts)?

Bumps the CI JDK in .tool-versions from adoptopenjdk-17.0.5+8 to adoptopenjdk-17.0.21+9. Docker base image (TSBI java17-base) is not changed here.

AI generated code

https://internal.qlik.dev/general/ways-of-working/code-reviews/#guidelines-for-ai-generated-code

  • this PR has been written with the help of GitHub Copilot or another generative AI tool

@thboileau

Copy link
Copy Markdown
Contributor Author

Correction: this PR does not remediate CVE-2026-91403. Oracle lists 17.0.21 as an affected version. I checked the actual Temurin 17.0.21+9 binary (the same build asdf's adoptopenjdk-17.0.21+9 uses): it still trusts the eMudhra root and has no eMudhra entries in lib/security/blocked.certs. The fix is the out-of-band 17.0.21.0.2 release: SapMachine 17.0.21.0.2 adds about 55 distrusted-certificate fingerprints to blocked.certs. Asdf has sapmachine-17.0.21.0.2 and liberica-17.0.21.0.2+5, but no Temurin 17.0.21.0.2 yet.

Also, .tool-versions only sets the CI build JDK. The runtime exposure is in the Docker images (component-server, component-starter-server, remote-engine-customizer), which get their JDK from TSBI java17-base, and in customer runtimes. Please don't merge this as a CVE fix until the JDK choice is settled.

Signed: Claude Opus 5.5

@thboileau

Copy link
Copy Markdown
Contributor Author

the new version of the JDK fixes the CVE https://qlik-dev.atlassian.net/browse/QTDI-3656?focusedCommentId=1272038

Fixes the Sonar analysis failing with "profile SONAR not found" on
maintenance/1.64:
- take Jenkinsfile and .jenkins/settings.xml from master (Sonar token
  credentials, tqa-e2e-tests-tool 2.6.13-ttp2, split Nexus/Sonatype/
  GitHub Packages deploy stages)
- add the SONAR profile and the sonar-maven-plugin management to pom.xml

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thboileau
thboileau force-pushed the fix/QTDI-3656-cve-2026-91403-maintenance-1.64 branch from 3d8dc7e to 275ba1d Compare October 28, 2026 14:12
@thboileau

Copy link
Copy Markdown
Contributor Author

Due to the update of the JDK, the behavior of the java.beans Introspector has been updated:
cf JDK-8339822 introduced in JDK 17.0.14

This has been detected in the newer maintenance branch mainteance/1.87 by ticket https://qlik-dev.atlassian.net/browse/QTDI-2101

One Junit test fails because of a lacking @JsonbTransient to Schema.getEntriesOrdered() in component-api.

fdesiles and others added 11 commits October 28, 2026 16:49
Backport of ddc5dae from master. The dependency is only needed in
Jenkins builds; resolving it elsewhere (e.g. the GitHub "Automatic
Dependency Submission" submit-maven check) fails with a 401 on the
TalendOpenSourceRelease Nexus. Jenkins sets JENKINS_URL so CI and release
builds still include it.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
The TCOMP-api-test job fails on maintenance/1.64 because its pod still
uses the legacy root docker:19.03.1-dind sidecar (the docker-daemon
container terminates with ContainerError) and its Jenkinsfile calls
.jenkins/scripts/asdf_install.sh, which does not exist on this branch.

Take talend-component-maven-plugin/src/it/web/.jenkins/ as-is from master
(rootless dind pod and PVCs, JenkinsPodConfig/JenkinsStatusController
helpers, /home/jenkins paths). Only CI files are touched.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
JDK-8339822 (17.0.14+) changed java.beans.Introspector behavior for default
interface methods, so JSON-B started serializing 'entriesOrdered'.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Same JDK-8339822 Introspector change: JSON-B now calls the default
getEntryMap() which throws UnsupportedOperationException, causing HTTP 500
in ActionResourceImplTest.checkSchemaSerialization.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Transposes the Schemas.java part of #1119 (QTDI-2101): getEntriesOrdered()
returns an empty list and getEntriesOrdered(Comparator) is @JsonbTransient.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
The JDK's default HttpURLConnection Accept header changed in recent
17.0.x updates ('*; q=.2, */*; q=.2' -> '*/*; q=0.2'). Set it explicitly
as already done on master.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This reverts commit a405c5f.

These changes were pushed here by mistake; they belong on QTDI-3696 (#1305).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…profile"

This reverts commit b110b5a.

These changes were pushed here by mistake; they belong on QTDI-3696 (#1305).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@thboileau
thboileau force-pushed the fix/QTDI-3656-cve-2026-91403-maintenance-1.64 branch from 505c22a to b7d9dce Compare October 28, 2026 15:57
A gradle-core:3.0 pom cached from a repository serving a stub (central) is
reused whatever the repositories order, leaving its transitive modules
(gradle-base-services, -logging, ...) off the classpath and failing the
compilation of the Gradle plugin. These modules only exist on repo.gradle.org.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

@undx undx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM but seems some backports were made and we, apparently, do not have those informations in the commits (ticket reference)

@thboileau

Copy link
Copy Markdown
Contributor Author

hi @undx I think the Jira ticket shows now the commits:
image

@sonar-rnd

sonar-rnd Bot commented Oct 29, 2026

Copy link
Copy Markdown

@undx undx left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@thboileau
thboileau merged commit 53c2a49 into maintenance/1.64 Oct 29, 2026
2 of 4 checks passed
@thboileau
thboileau deleted the fix/QTDI-3656-cve-2026-91403-maintenance-1.64 branch October 29, 2026 11:05
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.

3 participants