Skip to content

Commit c2c2729

Browse files
[To dev/1.3] Cherry-pick some CVE fixes (#16901)
* Bump logback version to 1.3.16 (#16671) * Switch to at.yawk.lz4:lz4-java:1.10.0 (#16871) * Upgrade netty and reactor (#16362) * fix netty version * Fix some dependency issues * Fix build error * Bump at.yawk.lz4:lz4-java from 1.10.0 to 1.10.1 (#16874) Bumps [at.yawk.lz4:lz4-java](https://github.com/yawkat/lz4-java) from 1.10.0 to 1.10.1. - [Release notes](https://github.com/yawkat/lz4-java/releases) - [Changelog](https://github.com/yawkat/lz4-java/blob/main/CHANGES.md) - [Commits](yawkat/lz4-java@v1.10.0...v1.10.1) --- updated-dependencies: - dependency-name: at.yawk.lz4:lz4-java dependency-version: 1.10.1 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> * fix error * fix error * fix compile error --------- Signed-off-by: dependabot[bot] <[email protected]> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
1 parent fea527d commit c2c2729

File tree

10 files changed

+65
-65
lines changed

10 files changed

+65
-65
lines changed

LICENSE-binary

Lines changed: 32 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -213,52 +213,53 @@ conditions of the following licenses.
213213
The binary distribution of this product bundles these dependencies under the
214214
following license. See licenses/ for text of these licenses.
215215

216-
Apache Software Foundation License 2.0
216+
Apache License 2.0
217217
--------------------------------------
218218
commons-cli:commons-cli:1.5.0
219219
commons-codec:commons-codec:1.16.1
220220
org.apache.commons:commons-collections4:4.4
221221
commons-io:commons-io:2.14.0
222-
org.apache.commons:commons-lang3:3.13.0
222+
org.apache.commons:commons-lang3:3.18.0
223223
com.nimbusds:content-type:2.2
224-
com.google.code.gson:gson:2.10.1
224+
com.google.code.gson:gson:2.13.1
225225
com.google.guava.guava:32.1.2-jre
226-
com.fasterxml.jackson.core:jackson-annotations:2.15.4
227-
com.fasterxml.jackson.core:jackson-core:2.15.4
228-
com.fasterxml.jackson.core:jackson-databind:2.15.4
226+
com.fasterxml.jackson.core:jackson-annotations:2.16.2
227+
com.fasterxml.jackson.core:jackson-core:2.16.2
228+
com.fasterxml.jackson.core:jackson-databind:2.16.2
229229
jakarta.inject:jakarta.inject:2.6.1
230-
org.lz4:lz4-java:1.8.0
230+
at.yawk.lz4:lz4-java:1.10.0
231231
com.github.stephenc.jcip:jcip-annotations:1.0-1
232232
com.github.ben-manes.caffeine:caffeine:2.9.3
233-
org.eclipse.jetty:jetty-http:9.4.56.v20240826
234-
org.eclipse.jetty:jetty-io:9.4.56.v20240826
235-
org.eclipse.jetty:jetty-security:9.4.56.v20240826
236-
org.eclipse.jetty:jetty-server:9.4.56.v20240826
237-
org.eclipse.jetty:jetty-servlet:9.4.56.v20240826
238-
org.eclipse.jetty:jetty-util:9.4.56.v20240826
239-
io.jsonwebtoken:jjwt-api:0.11.5
240-
io.jsonwebtoken:jjwt-impl:0.11.5
241-
io.jsonwebtoken:jjwt-jackson:0.11.5
242-
net.minidev:json-smart:2.5.0
233+
org.eclipse.jetty:jetty-http:9.4.57.v20241219
234+
org.eclipse.jetty:jetty-io:9.4.57.v20241219
235+
org.eclipse.jetty:jetty-security:9.4.57.v20241219
236+
org.eclipse.jetty:jetty-server:9.4.57.v20241219
237+
org.eclipse.jetty:jetty-servlet:9.4.57.v20241219
238+
org.eclipse.jetty:jetty-util:9.4.57.v20241219
239+
io.jsonwebtoken:jjwt-api:0.12.7
240+
io.jsonwebtoken:jjwt-impl:0.12.7
241+
io.jsonwebtoken:jjwt-jackson:0.12.7
242+
net.minidev:json-smart:2.5.2
243243
com.google.code.findbugs:jsr305:3.0.2
244244
com.nimbusds:lang-tag:1.7
245245
com.librato.metrics:librato-java:2.1.0
246246
org.apache.thrift:libthrift:0.14.1
247247
io.dropwizard.metrics:metrics-core:4.2.19
248248
io.dropwizard.metrics:metrics-jvm:3.2.2
249249
com.librato.metrics:metrics-librato:5.1.0
250-
de.fraunhofer.iosb.io.moquette:moquette-broker:0.17
251-
io.netty:netty-buffer:4.1.110.Final
252-
io.netty:netty-codec:4.1.110.Final
253-
io.netty:netty-codec-http:4.1.110.Final
254-
io.netty:netty-codec-mqtt:4.1.110.Final
255-
io.netty:netty-common:4.1.110.Final
256-
io.netty:netty-handler:4.1.110.Final
257-
io.netty:netty-resolver:4.1.110.Final
258-
io.netty:netty-transport:4.1.110.Final
259-
io.netty:netty-transport-native-epoll:4.1.110.Final:linux-x86_64
260-
io.netty:netty-transport-native-unix-common:4.1.110.Final
261-
com.nimbusds:nimbus-jose-jwt:9.37.3
250+
com.github.moquette-io.moquette:moquette-broker:0.18
251+
io.netty:netty-buffer:4.1.126.Final
252+
io.netty:netty-codec:4.1.126.Final
253+
io.netty:netty-codec-http:4.1.126.Final
254+
io.netty:netty-codec-mqtt:4.1.126.Final
255+
io.netty:netty-common:4.1.126.Final
256+
io.netty:netty-handler:4.1.126.Final
257+
io.netty:netty-resolver:4.1.126.Final
258+
io.netty:netty-transport:4.1.126.Final
259+
io.netty:netty-transport-native-epoll:4.1.126.Final:linux-aarch_64
260+
io.netty:netty-transport-native-epoll:4.1.126.Final:linux-x86_64
261+
io.netty:netty-transport-native-unix-common:4.1.126.Final
262+
com.nimbusds:nimbus-jose-jwt:9.37.4
262263
com.nimbusds:oauth2-oidc-sdk:10.15
263264
org.osgi:org.osgi.core:7.0.0
264265
org.osgi:osgi.cmpn:7.0.0
@@ -289,8 +290,8 @@ com.bugsnag:bugsnag:3.7.2
289290
EPL 1.0
290291
------------
291292
com.h2database:h2-mvstore:2.1.212
292-
ch.qos.logback:logback-classic:1.3.14
293-
ch.qos.logback:logback-core:1.3.14
293+
ch.qos.logback:logback-classic:1.3.15
294+
ch.qos.logback:logback-core:1.3.15
294295

295296

296297
CDDL 1.1

NOTICE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache IoTDB
2-
Copyright 2018-2024 The Apache Software Foundation.
2+
Copyright 2018-2025 The Apache Software Foundation.
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

NOTICE-binary

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
Apache IoTDB
2-
Copyright 2018-2024 The Apache Software Foundation.
2+
Copyright 2018-2025 The Apache Software Foundation.
33

44
This product includes software developed at
55
The Apache Software Foundation (http://www.apache.org/).

iotdb-core/datanode/pom.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -173,10 +173,6 @@
173173
<groupId>net.java.dev.jna</groupId>
174174
<artifactId>jna-platform</artifactId>
175175
</dependency>
176-
<dependency>
177-
<groupId>io.jsonwebtoken</groupId>
178-
<artifactId>jjwt-api</artifactId>
179-
</dependency>
180176
<dependency>
181177
<groupId>org.eclipse.milo</groupId>
182178
<artifactId>stack-core</artifactId>

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/protocol/thrift/impl/ClientRPCServiceImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,6 @@
171171
import org.apache.iotdb.service.rpc.thrift.TSyncTransportMetaInfo;
172172

173173
import io.airlift.units.Duration;
174-
import io.jsonwebtoken.lang.Strings;
175174
import org.apache.commons.lang3.StringUtils;
176175
import org.apache.thrift.TException;
177176
import org.apache.tsfile.block.column.Column;
@@ -1151,7 +1150,7 @@ public TSExecuteStatementResp executeGroupByQueryIntervalQuery(TSGroupByQueryInt
11511150

11521151
String database = req.getDatabase();
11531152
if (StringUtils.isEmpty(database)) {
1154-
String[] splits = Strings.split(req.getDevice(), "\\.");
1153+
String[] splits = req.getDevice().split("\\.");
11551154
database = String.format("%s.%s", splits[0], splits[1]);
11561155
}
11571156
String deviceId = req.getDevice();

iotdb-core/datanode/src/main/java/org/apache/iotdb/db/utils/datastructure/TVList.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -964,7 +964,7 @@ public TsBlock nextBatch() {
964964
TSDataType dataType = getDataType();
965965
int maxRowCountOfCurrentBatch =
966966
Math.min(
967-
paginationController.hasLimit()
967+
paginationController.hasSetLimit()
968968
? (int) paginationController.getCurLimit()
969969
: Integer.MAX_VALUE,
970970
Math.min(maxNumberOfPointsInPage, rows - index));

iotdb-core/datanode/src/test/java/org/apache/iotdb/db/auth/role/LocalFileRoleManagerTest.java

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
import org.apache.iotdb.db.utils.EnvironmentUtils;
3131
import org.apache.iotdb.db.utils.constant.TestConstant;
3232

33-
import io.jsonwebtoken.lang.Assert;
3433
import org.apache.commons.io.FileUtils;
3534
import org.junit.After;
3635
import org.junit.Before;
@@ -171,8 +170,8 @@ public void testPathCheckForUpgrade() throws AuthException, IllegalPathException
171170
}
172171
}
173172
}
174-
Assert.isTrue(manager.getRole("test").getPathPrivilegeList().size() == 4);
175-
Assert.isTrue(!manager.getRole("test").getServiceReady());
173+
assertEquals(4, manager.getRole("test").getPathPrivilegeList().size());
174+
assertFalse(manager.getRole("test").getServiceReady());
176175
manager.checkAndRefreshPathPri();
177176

178177
// after refresh. we will have three path:
@@ -217,17 +216,17 @@ public void testPrivRefreshSingle() throws AuthException, IllegalPathException {
217216
PartialPath path2 = new PartialPath("root.d.a");
218217
for (PrivilegeType pri : item.getSubPri()) {
219218
if (pri.isPathRelevant()) {
220-
Assert.isTrue(manager.getRole("test").checkPathPrivilege(path1, pri.ordinal()));
221-
Assert.isTrue(manager.getRole("test").checkPathPrivilege(path2, pri.ordinal()));
219+
assertTrue(manager.getRole("test").checkPathPrivilege(path1, pri.ordinal()));
220+
assertTrue(manager.getRole("test").checkPathPrivilege(path2, pri.ordinal()));
222221
manager.getRole("test").removePathPrivilege(path1, pri.ordinal());
223222
manager.getRole("test").removePathPrivilege(path2, pri.ordinal());
224223
} else {
225-
Assert.isTrue(manager.getRole("test").checkSysPrivilege(pri.ordinal()));
224+
assertTrue(manager.getRole("test").checkSysPrivilege(pri.ordinal()));
226225
manager.getRole("test").removeSysPrivilege(pri.ordinal());
227226
}
228227
}
229-
Assert.isTrue(manager.getRole("test").getPathPrivilegeList().isEmpty());
230-
Assert.isTrue(manager.getRole("test").getSysPrivilege().isEmpty());
228+
assertTrue(manager.getRole("test").getPathPrivilegeList().isEmpty());
229+
assertTrue(manager.getRole("test").getSysPrivilege().isEmpty());
231230
}
232231
}
233232
}

iotdb-core/metrics/interface/pom.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,6 @@
8282
<dependency>
8383
<groupId>io.netty</groupId>
8484
<artifactId>netty-codec-http</artifactId>
85-
<version>4.1.119.Final</version>
8685
</dependency>
8786
<dependency>
8887
<groupId>org.reactivestreams</groupId>

iotdb-core/node-commons/src/main/java/org/apache/iotdb/commons/auth/authorizer/OpenIdAuthorizer.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -194,11 +194,11 @@ public String getIoTDBUserName(String token) {
194194
private Claims validateToken(String token) {
195195
return Jwts.parser()
196196
// Basically ignore the Expiration Date, if there is any???
197-
.setAllowedClockSkewSeconds(Long.MAX_VALUE / 1000)
198-
// .setSigningKey(DatatypeConverter.parseBase64Binary(secret))
199-
.setSigningKey(providerKey)
200-
.parseClaimsJws(token)
201-
.getBody();
197+
.clockSkewSeconds(Long.MAX_VALUE / 1000)
198+
.verifyWith(providerKey)
199+
.build()
200+
.parseSignedClaims(token)
201+
.getPayload();
202202
}
203203

204204
private String getUsername(Claims claims) {

pom.xml

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@
6060
<argLine/>
6161
<awaitility.version>4.2.0</awaitility.version>
6262
<boost.include.dir/>
63+
<bouncycastle.version>1.81</bouncycastle.version>
6364
<!-- This was the last version to support Java 8 -->
6465
<caffeine.version>2.9.3</caffeine.version>
6566
<cglib.version>3.3.0</cglib.version>
@@ -86,7 +87,7 @@
8687
<fusesource-mqtt-client.version>1.16</fusesource-mqtt-client.version>
8788
<!-- JDK1.8 only support google java format 1.7-->
8889
<google.java.format.version>1.22.0</google.java.format.version>
89-
<gson.version>2.10.1</gson.version>
90+
<gson.version>2.13.1</gson.version>
9091
<guava.version>32.1.2-jre</guava.version>
9192
<!-- This was the last version to support Java 8 -->
9293
<h2.version>2.2.224</h2.version>
@@ -110,15 +111,15 @@
110111
<jersey.version>2.40</jersey.version>
111112
<!-- This was the last version to support Java 8 -->
112113
<jetty.version>9.4.57.v20241219</jetty.version>
113-
<jjwt.version>0.11.5</jjwt.version>
114+
<jjwt.version>0.12.7</jjwt.version>
114115
<jline.version>3.26.2</jline.version>
115116
<jna.version>5.14.0</jna.version>
116117
<json-smart.version>2.5.2</json-smart.version>
117118
<jtransforms.version>3.1</jtransforms.version>
118119
<junit.version>4.13.2</junit.version>
119120
<!-- This was the last version to support Java 8 -->
120-
<logback.version>1.3.15</logback.version>
121-
<lz4-java.version>1.8.0</lz4-java.version>
121+
<logback.version>1.3.16</logback.version>
122+
<lz4-java.version>1.10.1</lz4-java.version>
122123
<maven.assembly.version>3.6.0</maven.assembly.version>
123124
<maven.compiler.source>1.8</maven.compiler.source>
124125
<maven.compiler.target>1.8</maven.compiler.target>
@@ -129,8 +130,8 @@
129130
<!-- This was the last version to support Java 8 -->
130131
<!--mockito.version>4.11.0</mockito.version-->
131132
<moquette.version>0.18.0</moquette.version>
132-
<netty.version>4.1.115.Final</netty.version>
133-
<nimbus-jose-jwt.version>9.37.3</nimbus-jose-jwt.version>
133+
<netty.version>4.1.126.Final</netty.version>
134+
<nimbus-jose-jwt.version>9.37.4</nimbus-jose-jwt.version>
134135
<oauth2-oidc-sdk.version>10.15</oauth2-oidc-sdk.version>
135136
<!-- This was the last version to support Java 8 -->
136137
<openapi.generator.version>6.6.0</openapi.generator.version>
@@ -146,8 +147,8 @@
146147
-->
147148
<ratis.version>3.2.1</ratis.version>
148149
<reactive-streams.version>1.0.4</reactive-streams.version>
149-
<reactor-netty.version>1.1.20</reactor-netty.version>
150-
<reactor.version>3.5.18</reactor.version>
150+
<reactor-netty.version>1.2.9</reactor-netty.version>
151+
<reactor.version>3.7.9</reactor.version>
151152
<reflections.version>0.10.2</reflections.version>
152153
<slf4j.version>2.0.9</slf4j.version>
153154
<snappy-java.version>1.1.10.5</snappy-java.version>
@@ -175,7 +176,7 @@
175176
<thrift.version>0.14.1</thrift.version>
176177
<xz.version>1.9</xz.version>
177178
<zstd-jni.version>1.5.6-3</zstd-jni.version>
178-
<tsfile.version>1.1.3-251028-SNAPSHOT</tsfile.version>
179+
<tsfile.version>1.1.3-251212-SNAPSHOT</tsfile.version>
179180
</properties>
180181
<!--
181182
if we claim dependencies in dependencyManagement, then we do not claim
@@ -311,13 +312,18 @@
311312
<dependency>
312313
<groupId>org.bouncycastle</groupId>
313314
<artifactId>bcprov-jdk18on</artifactId>
314-
<version>1.78</version>
315+
<version>${bouncycastle.version}</version>
315316
</dependency>
316317
<dependency>
317318
<groupId>commons-io</groupId>
318319
<artifactId>commons-io</artifactId>
319320
<version>${commons-io.version}</version>
320321
</dependency>
322+
<dependency>
323+
<groupId>org.apache.tsfile</groupId>
324+
<artifactId>tsfile</artifactId>
325+
<version>${tsfile.version}</version>
326+
</dependency>
321327
<dependency>
322328
<groupId>org.apache.ratis</groupId>
323329
<artifactId>ratis-server</artifactId>
@@ -509,7 +515,7 @@
509515
<version>${zstd-jni.version}</version>
510516
</dependency>
511517
<dependency>
512-
<groupId>org.lz4</groupId>
518+
<groupId>at.yawk.lz4</groupId>
513519
<artifactId>lz4-java</artifactId>
514520
<version>${lz4-java.version}</version>
515521
</dependency>

0 commit comments

Comments
 (0)