You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "spuru9 (via GitHub)" <gi...@apache.org> on 2026/05/19 19:28:59 UTC

[PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

spuru9 opened a new pull request, #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114

   ## What is the purpose of the change
   
   This pull request bumps three direct dependencies to retire CVEs flagged by Trivy across the operator and example modules. All changes are direct version bumps within the same major lines — no `<dependencyManagement>` overrides on transitive dependencies.
   
   JIRA: [FLINK-39713](https://issues.apache.org/jira/browse/FLINK-39713)
   
   CVEs retired:
   - `log4j` (used directly by every module via `${log4j.version}`): CVE-2025-68161, CVE-2026-34477, CVE-2026-34478, CVE-2026-34479, CVE-2026-34480 — ~45 MEDIUM findings across operator, operator-api, autoscaler-standalone, kubernetes-standalone, and the three example modules.
   - `jackson-core` (consumed by operator and operator-api via the BOM imported in the root pom): GHSA-72hv-8253-57qq (Number Length Constraint Bypass in Async Parser).
   - Beam transitives in `examples/flink-beam-example` (kaml, okio, wire-runtime, kafka-clients, opentelemetry-api, parallel Netty copy): the bulk of the 37 example-only findings.
   
   Residual Netty / lz4-java / commons-lang3 CVEs flowing through `flink-runtime` remain open and will be retired by a future Flink minor bump that bundles Netty ≥ 4.1.133. Those are tracked separately.
   
   ## Brief change log
   
   - `pom.xml`: `log4j.version` 2.23.1 → 2.25.4 (patch-level bump within the 2.x line, binary-compatible)
   - `pom.xml`: `jackson-bom` 2.15.0 → 2.18.6 (minor bump within the 2.x line)
   - `examples/flink-beam-example/pom.xml`: `beam.version` 2.62.0 → 2.73.0 (`beam-runners-flink-1.19` still publishes at 2.73.0, so no runner artifact change is required)
   
   ## Verifying this change
   
   This change is already covered by existing tests.
   
   Steps used locally:
   - `./mvnw -DskipTests install`
   - `./mvnw verify`
   - `trivy fs --scanners vuln .` — confirmed the listed CVEs are cleared
   
   ## Does this pull request potentially affect one of the following parts:
   
   - Dependencies (does it add or upgrade a dependency): **yes** (version-only upgrades of existing direct dependencies)
   - The public API, i.e., is any changes to the `CustomResourceDescriptors`: no
   - Core observer or reconciler logic that is regularly executed: no
   
   ## Documentation
   
   - Does this pull request introduce a new feature? no


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4517332084

   1. **Fixed — PR body and FLINK-39713 now both say 2.21.3 (which is what the diff has been all along).**
   Picked 2.21.3 over the 2.18.6 minimum because it's the latest stable on Jackson 2.x. Going with 2.18.6 only means re-bumping the next time Trivy flags something newer, and since Jackson 2.x keeps binary 
   compatibility, 2.21.3 doesn't add any upgrade risk over 2.18.6.
   Verified with a full unit-test run on this branch (2,568 tests, 0 failures) and mvn dependency:tree (no version mismatch across operator and fabric8 paths).
   Also, Have recently updated the flink depedency to the same version, so to also have a homoginous versioning accross the packages.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4612908605

   > The flink-kubernetes-operator/src/main/resources/NOTICE file must be updated to reflect all dependency changes
   
   @gyfora Have added the NOTICE file changes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4543691550

   @Dennis-Mircea, Addressed
   1. Added to description
   2. The scores were present in the JIRA comments, Have added to the description as well. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4542825047

   @Dennis-Mircea Made the change, can you re-review/approve


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4575362976

   @1996fanrui Can you help me merge this, Thanks.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4517765679

   2. 
   ### Verification — jackson-bom 2.15.0 → 2.21.3
     
     **Scope.** The bump affects the unshaded Jackson chain used by CRD types, the admission webhook, and operator-owned serialization (`StatusRecorder`, `SpecUtils`, `ConfigObjectNodeDeserializer`). It does
     *not* affect the autoscaler state-store path — `AutoScalerSerDeModule`, `KubernetesAutoScalerStateStore`, and `JdbcAutoScalerStateStore` all import from `org.apache.flink.shaded.jackson2.*` (Flink-shaded
     Jackson at 2.14.2-17.0, separate package namespace). Existing autoscaler ConfigMap / JDBC state is therefore unaffected by this bump.
     
     **Convergence.** `mvn dependency:tree -Dincludes='com.fasterxml.jackson*'` across all 13 modules: `jackson-core` / `databind` / `dataformat-yaml` / `dataformat-xml` / `datatype-jsr310` / `datatype-joda` /
     `module-jsonSchema` all on **2.21.3**; `jackson-annotations` on **2.21** (Jackson's canonical label for the annotations artifact). fabric8 7.3.1 and Beam 2.62 / 2.73 both accept the BOM override. No version
     mismatch in any module.
     
     **API audit.** Exhaustive grep across `src/main` + `src/test` for patterns that historically break between Jackson minors — **zero** hits on each:
   
     | Pattern | Hits |
     |---|---|
     | `MapperFeature` / `SerializationFeature` / `DeserializationFeature` configure | 0 |
     | `enableDefaultTyping` / `activateDefaultTyping` / `PolymorphicTypeValidator` (biggest 2.x breaking-change surface) | 0 |
     | `StreamReadConstraints` / `StreamWriteConstraints` overrides | 0 |
     | ServiceLoader / `findAndRegisterModules` | 0 |
     | `ObjectMapper` subclasses | 0 |
     | `@JsonDeserialize(builder=)`, exotic annotations (`@JsonValue`, `@JsonAny*`, `@JsonNaming`, `@JsonFormat`, `@JsonAlias`, `@JsonMerge`, `@JsonUnwrapped`, `@JsonView`, `@JsonIdentityInfo`, `@JsonAutoDetect`,
      …) | 0 |
     | Jdk8Module / ParameterNamesModule / version-pinned JSON test fixtures | 0 |
   
     Annotation surface in production is limited to `@JsonInclude`, `@JsonProperty`, `@JsonIgnore`, `@JsonIgnoreProperties`, `@JsonDeserialize` (empty marker and `using=` form), `@JsonCreator` — all unchanged
     2.15 → 2.21. The single production custom deserializer (`ConfigObjectNodeDeserializer` on `AbstractFlinkSpec.flinkConfiguration`) uses only `JsonParser.readValueAsTree()` and standard `ObjectNode` iteration.
   
     **Tests.** Full reactor `mvn -B -ntp test`: **2,568 / 0 failures / 0 errors / 0 skipped**. Includes every test that exercises unshaded-Jackson paths — `CrdCompatibilityCheckerTest`, `SpecUtilsTest`,
     `ConfigObjectNodeTest`, `FlinkOperatorWebhookTest`, `AdmissionHandlerTest`, `DefaultRequestMutatorTest`, `FlinkResourceExceptionUtilsTest`.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "gyfora (via GitHub)" <gi...@apache.org>.
gyfora merged PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4491474943

   @Dennis-Mircea Can you help with a review.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4517399732

   3. As per the [guidelines](https://github.com/apache/flink/pull/28147#issuecomment-4449036401) I received on one of my PRs earlier, Its not a good practive to list the CVEs in the PR, thats why I had it mentioned in the JIRA only. Have added the advisories links as well in a commment in the same JIRA FLINK-39713


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] [FLINK-39713] Bump log4j, jackson, and Beam to retire CVEs [flink-kubernetes-operator]

Posted by "spuru9 (via GitHub)" <gi...@apache.org>.
spuru9 commented on PR #1114:
URL: https://github.com/apache/flink-kubernetes-operator/pull/1114#issuecomment-4517988517

   4. Added to the PR description.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@flink.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org