Skip to content

Commit 4c0d835

Browse files
authored
#64: Fix CVE-2023-39410 in org.apache.avro:avro (#65)
1 parent 5f915fd commit 4c0d835

File tree

8 files changed

+173
-106
lines changed

8 files changed

+173
-106
lines changed

.vscode/settings.json

Lines changed: 23 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
11
{
2-
"editor.formatOnSave": true,
3-
"editor.codeActionsOnSave": {
4-
"source.organizeImports": true,
5-
"source.generate.finalModifiers": true,
6-
"source.fixAll": true
7-
},
8-
"java.codeGeneration.useBlocks": true,
9-
"java.saveActions.organizeImports": true,
10-
"java.sources.organizeImports.starThreshold": 3,
11-
"java.sources.organizeImports.staticStarThreshold": 3,
12-
"java.test.config": {
13-
"vmArgs": [
14-
"-Djava.util.logging.config.file=src/test/resources/logging.properties"
15-
]
16-
},
17-
"sonarlint.connectedMode.project": {
18-
"connectionId": "exasol",
19-
"projectKey": "com.exasol:parquet-io-java"
20-
}
21-
}
2+
"editor.formatOnSave": true,
3+
"editor.codeActionsOnSave": {
4+
"source.organizeImports": true,
5+
"source.generate.finalModifiers": true,
6+
"source.fixAll": true
7+
},
8+
"java.codeGeneration.useBlocks": true,
9+
"java.saveActions.organizeImports": true,
10+
"java.sources.organizeImports.starThreshold": 3,
11+
"java.sources.organizeImports.staticStarThreshold": 3,
12+
"java.test.config": {
13+
"vmArgs": [
14+
"-Djava.util.logging.config.file=src/test/resources/logging.properties"
15+
]
16+
},
17+
"sonarlint.connectedMode.project": {
18+
"connectionId": "exasol",
19+
"projectKey": "com.exasol:parquet-io-java"
20+
},
21+
"files.watcherExclude": {
22+
"**/target": true
23+
}
24+
}

dependencies.md

Lines changed: 87 additions & 81 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/changelog.md

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

doc/changes/changes_2.0.6.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Parquet for Java 2.0.6, released 2023-10-24
2+
3+
Code name: Fix CVE-2023-39410 and CVE-2023-42503
4+
5+
## Summary
6+
7+
This release fixes the following vulnerabilities:
8+
9+
* CVE-2023-39410 in compile dependency `org.apache.avro:avro`
10+
* CVE-2023-42503 in compile dependency `org.apache.commons:commons-compress`
11+
12+
## Security
13+
14+
* #64: Fixed CVE-2023-39410 in `org.apache.avro:avro`
15+
16+
## Dependency Updates
17+
18+
### Compile Dependency Updates
19+
20+
* Added `org.apache.avro:avro:1.11.3`
21+
* Added `org.apache.commons:commons-compress:1.24.0`
22+
23+
### Test Dependency Updates
24+
25+
* Added `nl.jqno.equalsverifier:equalsverifier:3.15.2`
26+
* Updated `org.mockito:mockito-core:5.5.0` to `5.6.0`
27+
* Updated `org.mockito:mockito-junit-jupiter:5.5.0` to `5.6.0`

pk_generated_parent.pom

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pom.xml

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,20 +3,20 @@
33
<modelVersion>4.0.0</modelVersion>
44
<groupId>com.exasol</groupId>
55
<artifactId>parquet-io-java</artifactId>
6-
<version>2.0.5</version>
6+
<version>2.0.6</version>
77
<name>Parquet for Java</name>
88
<description>This project provides a library that reads Parquet files into Java objects.</description>
99
<url>https://github.com/exasol/parquet-io-java/</url>
1010
<parent>
1111
<artifactId>parquet-io-java-generated-parent</artifactId>
1212
<groupId>com.exasol</groupId>
13-
<version>2.0.5</version>
13+
<version>2.0.6</version>
1414
<relativePath>pk_generated_parent.pom</relativePath>
1515
</parent>
1616
<properties>
1717
<scala.version>2.13.12</scala.version>
1818
<scala.compat.version>2.13</scala.compat.version>
19-
<mockito.version>5.5.0</mockito.version>
19+
<mockito.version>5.6.0</mockito.version>
2020
</properties>
2121
<dependencies>
2222
<dependency>
@@ -103,6 +103,18 @@
103103
</exclusion>
104104
</exclusions>
105105
</dependency>
106+
<dependency>
107+
<!-- Upgrade transitive dependency of org.apache.hadoop:hadoop-client to fix CVE-2023-39410 -->
108+
<groupId>org.apache.avro</groupId>
109+
<artifactId>avro</artifactId>
110+
<version>1.11.3</version>
111+
</dependency>
112+
<dependency>
113+
<!-- Upgrade transitive dependency of org.apache.avro:avro to fix CVE-2023-42503 -->
114+
<groupId>org.apache.commons</groupId>
115+
<artifactId>commons-compress</artifactId>
116+
<version>1.24.0</version>
117+
</dependency>
106118
<dependency>
107119
<groupId>org.scala-lang</groupId>
108120
<artifactId>scala-library</artifactId>
@@ -144,6 +156,12 @@
144156
<version>3.3.0-SNAP4</version>
145157
<scope>test</scope>
146158
</dependency>
159+
<dependency>
160+
<groupId>nl.jqno.equalsverifier</groupId>
161+
<artifactId>equalsverifier</artifactId>
162+
<version>3.15.2</version>
163+
<scope>test</scope>
164+
</dependency>
147165
</dependencies>
148166
<build>
149167
<plugins>

src/main/java/com/exasol/parquetio/data/ChunkIntervalImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
/**
66
* An implementation of {@link ChunkInterval} that holds {@code start} and {@code end} position of row group chunks.
77
*/
8-
public class ChunkIntervalImpl implements ChunkInterval {
8+
public final class ChunkIntervalImpl implements ChunkInterval {
99

1010
private final long start;
1111
private final long end;
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
package com.exasol.parquetio.data;
2+
3+
import org.junit.jupiter.api.Test;
4+
5+
import nl.jqno.equalsverifier.EqualsVerifier;
6+
7+
class ChunkIntervalImplTest {
8+
@Test
9+
void verifyEqualsContract() {
10+
EqualsVerifier.forClass(ChunkIntervalImpl.class).verify();
11+
}
12+
}

0 commit comments

Comments
 (0)