Skip to content

Conversation

soapjam
Copy link

@soapjam soapjam commented Jul 22, 2025

Hello,

We're using official Apache Flink Java images as base images in our project, but our security scans have identified numerous vulnerabilities originating from these base images. We want to continue using official images; however, to do so, we must address these security issues. It appears that the majority of vulnerabilities stem from Ubuntu 22, which is part of the jre-jammy base image. We propose switching to the jre-noble base image to migrate to Ubuntu 24, which contains the latest security fixes.

What Changed

  • Updated generator.sh to use eclipse-temurin:*-jre-noble instead of eclipse-temurin:*-jre-jammy
  • This affects all Flink Docker images across all Java versions (8, 11, 17, 21)

Why

  • Security: Ubuntu 24.04 LTS (Noble) vs 22.04 LTS (Jammy) = 2 years of additional security patches
  • Support: Extended LTS support until 2029 vs 2027
  • Vulnerabilities: Reduced vulnerability footprint with more recent base packages

Testing

Locally built and tested flink:1.20.2-scala_2.12-java17-noble successfully.

Impact

This change will update the base image for ALL Flink Docker variants when the next Dockerfiles are generated.

This change updates all Flink Docker images to use Ubuntu 24.04 LTS (Noble)
instead of Ubuntu 22.04 LTS (Jammy) as the base image, providing:
- More recent security patches and vulnerability fixes
- Updated system packages and libraries
- Extended LTS support until 2029
@ravivaar
Copy link

We have submitted a ticket for this upgrade https://issues.apache.org/jira/browse/FLINK-38419.

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.

2 participants