Skip to content

[FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs#1114

Open
spuru9 wants to merge 2 commits into
apache:mainfrom
spuru9:cve/log4j-jackson-bump
Open

[FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs#1114
spuru9 wants to merge 2 commits into
apache:mainfrom
spuru9:cve/log4j-jackson-bump

Conversation

@spuru9
Copy link
Copy Markdown
Contributor

@spuru9 spuru9 commented May 19, 2026

What is the purpose of the change

Retire CVEs flagged by Trivy by bumping three direct dependencies. No <dependencyManagement> overrides on transitives.

JIRA: FLINK-39713

Brief change log

  • pom.xml: log4j.version 2.23.1 → 2.25.4
  • pom.xml: jackson-bom 2.15.0 → 2.18.6
  • examples/flink-beam-example/pom.xml: beam.version 2.62.0 → 2.73.0 — clears most example-only transitive CVEs

Residual Netty / lz4-java / commons-lang3 CVEs come through flink-runtime and need a future Flink minor with Netty ≥ 4.1.133.

Verifying this change

Covered by existing tests. Verified locally with ./mvnw verify and trivy fs --scanners vuln ..

Does this pull request potentially affect one of the following parts:

  • Dependencies: yes (version bumps only)
  • Public API / CRDs: no
  • Core observer/reconciler logic: no

Documentation

  • New feature: no

@spuru9 spuru9 force-pushed the cve/log4j-jackson-bump branch from b7c92ff to 247c643 Compare May 19, 2026 19:43
spuru9 added 2 commits May 20, 2026 01:19
Patch/minor bumps within the same major lines to retire CVEs
flagged by Trivy:

- log4j 2.25.4 clears CVE-2025-68161, CVE-2026-34477,
  CVE-2026-34478, CVE-2026-34479, CVE-2026-34480 across every
  module that consumes ${log4j.version}.
- jackson-bom 2.21.3 (latest 2.x stable) clears
  GHSA-72hv-8253-57qq for jackson-core/jackson-databind consumers
  in flink-kubernetes-operator and flink-kubernetes-operator-api.

Both are direct version bumps in the root pom; no
dependencyManagement overrides on transitives.
Beam 2.73.0 is the latest stable as of 2026-04-23 and still
publishes beam-runners-flink-1.19, so this is a single property
edit with no API surface changes in the example.

Picks up patched copies of the example-scoped transitives Trivy
flagged (kaml, okio, wire-runtime, kafka-clients,
opentelemetry-api, spring-core, spring-expression, and the
parallel Netty copy that comes through Beam).

Scope is the example module only; the shipped operator image is
unaffected. No dependencyManagement overrides on transitives.
@spuru9 spuru9 force-pushed the cve/log4j-jackson-bump branch from 247c643 to 689f847 Compare May 19, 2026 19:49
@spuru9
Copy link
Copy Markdown
Contributor Author

spuru9 commented May 19, 2026

@Dennis-Mircea Can you help with a review.

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.

1 participant