[
https://issues.apache.org/jira/browse/FLINK-41578?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Purushottam Sinha updated FLINK-41578:
--------------------------------------
Description:
*Problem*
Supported Flink branches bundle Netty, Jackson, Guava, ZooKeeper and
netty-tcnative versions with known CVEs through flink-shaded: release-1.20 uses
17.0, release-2.2 uses 20.0, release-2.3 uses 21.0, and release-2.4 and master
use 22.0. The latest flink-shaded needs Netty 4.2 and a newer OpenSSL, so each
branch should move to a fix release of the flink-shaded line it already uses.
*Evidence*
* Netty and Jackson in each line:
** 17.0: Netty 4.1.91, Jackson 2.14.2
** 20.0: Netty 4.1.100, Jackson 2.18.2
** 21.0: Netty 4.2.6, Jackson 2.20.1
** 22.0: Netty 4.2.17 (30 advisories, fixed in 4.2.18) and Jackson 2.22.2
(fixed in 2.22.3)
* Guava CVE-2026-102554 (fixed in 33.7.2) affects every line: 31.1, 33.4.0,
33.5.0 and 33.7.1.
* ZooKeeper: release-1.20 ships 3.7.1 (CVE-2023-44981, fixed in 3.7.2). The
ZooKeeper 3.8 module in 20.0 is on 3.8.4 (CVE-2026-24281, CVE-2026-24308).
* netty-tcnative has 7 advisories, fixed in 2.0.84. 17.0 (2.0.74), 20.0
(2.0.62) and 22.0 (2.0.81) are affected. 21.0 already ships 2.0.84.
*Proposed fix*
* After each fix release, update {{flink.shaded.version}} and the versions of
the bundled dependencies in the branch's {{pom.xml}}: Jackson, Guava, Netty and
netty-tcnative, plus ASM on release-2.4 and master. On release-1.20, also
update {{zookeeper.version}}. Some branches need further changes; the sub-tasks
list them.
* Out of scope:
** Guava and Jackson on release-1.20. Neither can be fixed without a package
rename or a minor version bump.
** netty-tcnative on 17.x and 20.x. From 2.0.80 the dynamic variant needs
OpenSSL 3, and the fixes start at 2.0.84.
** Making ZooKeeper 3.8 Flink's default (FLINK-33628).
*Acceptance*
* release-1.20, release-2.2, release-2.3 and release-2.4 build against the new
flink-shaded versions.
was:
*Problem*
Supported Flink branches bundle Netty, Jackson, Guava and ZooKeeper versions
with known CVEs through flink-shaded: release-1.20 uses 17.0, release-2.2 uses
20.0, release-2.3 uses 21.0, and release-2.4 and master use 22.0. The latest
flink-shaded needs Netty 4.2 and a newer OpenSSL, so each branch should move to
a fix release of the flink-shaded line it already uses.
*Evidence*
* Netty and Jackson in each line:
** 17.0: Netty 4.1.91, Jackson 2.14.2
** 20.0: Netty 4.1.100, Jackson 2.18.2
** 21.0: Netty 4.2.6, Jackson 2.20.1
** 22.0: Netty 4.2.17 (30 advisories, fixed in 4.2.18) and Jackson 2.22.2
(fixed in 2.22.3)
* Guava CVE-2026-102554 (fixed in 33.7.2) affects every line: 31.1, 33.4.0,
33.5.0 and 33.7.1.
* ZooKeeper: release-1.20 ships 3.7.1 (CVE-2023-44981, fixed in 3.7.2). The
ZooKeeper 3.8 module in 20.0 is on 3.8.4 (CVE-2026-24281, CVE-2026-24308).
*Proposed fix*
* After each fix release, update {{flink.shaded.version}},
{{flink.shaded.jackson.version}} and the {{flink-shaded-guava}} version in the
branch's {{pom.xml}}. On release-1.20, also update {{zookeeper.version}}.
* Out of scope:
** Guava and Jackson on release-1.20. Neither can be fixed without a package
rename or a minor version bump.
** Making ZooKeeper 3.8 Flink's default (FLINK-33628).
*Acceptance*
* release-1.20, release-2.2, release-2.3 and release-2.4 build against the new
flink-shaded versions.
> Build System: Update flink-shaded on supported branches for dependency CVEs
> ---------------------------------------------------------------------------
>
> Key: FLINK-41578
> URL: https://issues.apache.org/jira/browse/FLINK-41578
> Project: Flink
> Issue Type: Technical Debt
> Components: Build System
> Reporter: Purushottam Sinha
> Priority: Major
>
> *Problem*
> Supported Flink branches bundle Netty, Jackson, Guava, ZooKeeper and
> netty-tcnative versions with known CVEs through flink-shaded: release-1.20
> uses 17.0, release-2.2 uses 20.0, release-2.3 uses 21.0, and release-2.4 and
> master use 22.0. The latest flink-shaded needs Netty 4.2 and a newer OpenSSL,
> so each branch should move to a fix release of the flink-shaded line it
> already uses.
> *Evidence*
> * Netty and Jackson in each line:
> ** 17.0: Netty 4.1.91, Jackson 2.14.2
> ** 20.0: Netty 4.1.100, Jackson 2.18.2
> ** 21.0: Netty 4.2.6, Jackson 2.20.1
> ** 22.0: Netty 4.2.17 (30 advisories, fixed in 4.2.18) and Jackson 2.22.2
> (fixed in 2.22.3)
> * Guava CVE-2026-102554 (fixed in 33.7.2) affects every line: 31.1, 33.4.0,
> 33.5.0 and 33.7.1.
> * ZooKeeper: release-1.20 ships 3.7.1 (CVE-2023-44981, fixed in 3.7.2). The
> ZooKeeper 3.8 module in 20.0 is on 3.8.4 (CVE-2026-24281, CVE-2026-24308).
> * netty-tcnative has 7 advisories, fixed in 2.0.84. 17.0 (2.0.74), 20.0
> (2.0.62) and 22.0 (2.0.81) are affected. 21.0 already ships 2.0.84.
> *Proposed fix*
> * After each fix release, update {{flink.shaded.version}} and the versions of
> the bundled dependencies in the branch's {{pom.xml}}: Jackson, Guava, Netty
> and netty-tcnative, plus ASM on release-2.4 and master. On release-1.20, also
> update {{zookeeper.version}}. Some branches need further changes; the
> sub-tasks list them.
> * Out of scope:
> ** Guava and Jackson on release-1.20. Neither can be fixed without a package
> rename or a minor version bump.
> ** netty-tcnative on 17.x and 20.x. From 2.0.80 the dynamic variant needs
> OpenSSL 3, and the fixes start at 2.0.84.
> ** Making ZooKeeper 3.8 Flink's default (FLINK-33628).
> *Acceptance*
> * release-1.20, release-2.2, release-2.3 and release-2.4 build against the
> new flink-shaded versions.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)