Skip to content

Commit 5d742da

Browse files
authored
build: update jetty dependencies to 12.0.12 to fix CVE-2024-6763 (#2921)
* build-update-jetty-dependencies-to-12.0.12-to-fix-CVE-2024-6763- * checkstyle
1 parent 9ad5345 commit 5d742da

File tree

2 files changed

+78
-2
lines changed

2 files changed

+78
-2
lines changed

pom.xml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,7 @@
9898
<mssql-jdbc.version>13.2.1.jre11</mssql-jdbc.version>
9999
<neo4j-driver.version>4.4.18</neo4j-driver.version>
100100
<okio.version>3.16.2</okio.version>
101+
<jetty.version>12.0.12</jetty.version>
101102
<!-- Socket factory JARs for Cloud SQL -->
102103
<mysql-socket-factory.version>1.15.2</mysql-socket-factory.version>
103104
<postgres-socket-factory.version>1.25.3</postgres-socket-factory.version>
@@ -246,6 +247,80 @@
246247
<artifactId>okio</artifactId>
247248
<version>${okio.version}</version>
248249
</dependency>
250+
<!-- Enforce non-vulnerable version of Jetty HTTP (CVE-2024-6763) -->
251+
<!-- Using Jetty 12 EE8 artifacts for compatibility with Hadoop -->
252+
<dependency>
253+
<groupId>org.eclipse.jetty</groupId>
254+
<artifactId>jetty-http</artifactId>
255+
<version>${jetty.version}</version>
256+
</dependency>
257+
<dependency>
258+
<groupId>org.eclipse.jetty</groupId>
259+
<artifactId>jetty-server</artifactId>
260+
<version>${jetty.version}</version>
261+
</dependency>
262+
<dependency>
263+
<groupId>org.eclipse.jetty</groupId>
264+
<artifactId>jetty-client</artifactId>
265+
<version>${jetty.version}</version>
266+
</dependency>
267+
<dependency>
268+
<groupId>org.eclipse.jetty</groupId>
269+
<artifactId>jetty-io</artifactId>
270+
<version>${jetty.version}</version>
271+
</dependency>
272+
<dependency>
273+
<groupId>org.eclipse.jetty</groupId>
274+
<artifactId>jetty-util</artifactId>
275+
<version>${jetty.version}</version>
276+
</dependency>
277+
<dependency>
278+
<groupId>org.eclipse.jetty</groupId>
279+
<artifactId>jetty-security</artifactId>
280+
<version>${jetty.version}</version>
281+
</dependency>
282+
<dependency>
283+
<groupId>org.eclipse.jetty</groupId>
284+
<artifactId>jetty-util-ajax</artifactId>
285+
<version>${jetty.version}</version>
286+
</dependency>
287+
<dependency>
288+
<groupId>org.eclipse.jetty</groupId>
289+
<artifactId>jetty-xml</artifactId>
290+
<version>${jetty.version}</version>
291+
</dependency>
292+
<dependency>
293+
<groupId>org.eclipse.jetty</groupId>
294+
<artifactId>jetty-alpn-client</artifactId>
295+
<version>${jetty.version}</version>
296+
</dependency>
297+
<!-- EE8 specific artifacts for compatibility with Hadoop -->
298+
<dependency>
299+
<groupId>org.eclipse.jetty.ee8</groupId>
300+
<artifactId>jetty-ee8-servlet</artifactId>
301+
<version>${jetty.version}</version>
302+
</dependency>
303+
<dependency>
304+
<groupId>org.eclipse.jetty.ee8</groupId>
305+
<artifactId>jetty-ee8-webapp</artifactId>
306+
<version>${jetty.version}</version>
307+
</dependency>
308+
<!-- WebSocket artifacts with correct Jetty 12 coordinates -->
309+
<dependency>
310+
<groupId>org.eclipse.jetty.websocket</groupId>
311+
<artifactId>jetty-websocket-jetty-api</artifactId>
312+
<version>${jetty.version}</version>
313+
</dependency>
314+
<dependency>
315+
<groupId>org.eclipse.jetty.websocket</groupId>
316+
<artifactId>jetty-websocket-jetty-client</artifactId>
317+
<version>${jetty.version}</version>
318+
</dependency>
319+
<dependency>
320+
<groupId>org.eclipse.jetty.websocket</groupId>
321+
<artifactId>jetty-websocket-jetty-common</artifactId>
322+
<version>${jetty.version}</version>
323+
</dependency>
249324
</dependencies>
250325
</dependencyManagement>
251326

v2/googlecloud-to-googlecloud/src/test/java/com/google/cloud/teleport/v2/templates/bigtablechangestreamstovectorsearch/VectorSearchResourceManager.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,10 @@
3737
import com.google.cloud.aiplatform.v1.UpsertDatapointsRequest;
3838
import com.google.protobuf.TextFormat;
3939
import java.util.List;
40+
import java.util.Set;
41+
import java.util.concurrent.ConcurrentHashMap;
4042
import java.util.concurrent.TimeUnit;
4143
import org.apache.beam.it.common.ResourceManager;
42-
import org.eclipse.jetty.util.ConcurrentHashSet;
4344
import org.slf4j.Logger;
4445
import org.slf4j.LoggerFactory;
4546
import org.threeten.bp.Duration;
@@ -112,7 +113,7 @@ public IndexEndpoint getTestEndpoint() {
112113
// will slowly grow over time, so we should figure out how to periodically purge the index, but
113114
// that could cause running instances of this test to fail, so it's not perfect.
114115
// Using ConcurrentHashSet instead of HashSet to support parallelized test cases
115-
private ConcurrentHashSet<String> pendingDatapoints = new ConcurrentHashSet<>();
116+
private final Set<String> pendingDatapoints = ConcurrentHashMap.newKeySet();
116117

117118
private VectorSearchResourceManager(String projectNumber, String region) throws Exception {
118119
this.projectNumber = projectNumber;

0 commit comments

Comments
 (0)