Skip to content

Commit 2c1dc8b

Browse files
committed
Fix: Update SSHJ to 0.39.0
Which requires Java 8 but fixes CVE-2023-48795, now that we enabled core library desugaring. Bug: #921
1 parent 2e1a4db commit 2c1dc8b

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

app/build.gradle

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -157,11 +157,13 @@ dependencies {
157157
// org.bouncycastle:bcprov-jdk15to18 instead.
158158
exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
159159
}
160-
// SSHJ 0.36.0 requires Java 8.
161-
//noinspection GradleDependency
162-
implementation ('com.hierynomus:sshj:0.35.0') {
163-
exclude group: 'org.bouncycastle', module: 'bcprov-jdk15on'
160+
def bouncy_castle_version = '1.78.1'
161+
implementation "org.bouncycastle:bcprov-jdk15to18:$bouncy_castle_version"
162+
implementation ('com.hierynomus:sshj:0.39.0') {
163+
exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
164+
exclude group: 'org.bouncycastle', module: 'bcpkix-jdk18on'
164165
}
166+
implementation "org.bouncycastle:bcpkix-jdk15to18:$bouncy_castle_version"
165167
implementation 'com.leinardi.android:speed-dial:3.3.0'
166168
implementation ('com.rapid7.client:dcerpc:0.12.1') {
167169
// SMBJ-RPC depends on the JRE flavor of Guava which targets Java 8.
@@ -186,7 +188,6 @@ dependencies {
186188
implementation ('eu.agno3.jcifs:jcifs-ng:2.1.10') {
187189
exclude group: 'org.bouncycastle', module: 'bcprov-jdk18on'
188190
}
189-
implementation 'org.bouncycastle:bcprov-jdk15to18:1.78.1'
190191
implementation platform('io.coil-kt:coil-bom:2.7.0')
191192
implementation 'io.coil-kt:coil'
192193
implementation 'io.coil-kt:coil-gif'

0 commit comments

Comments
 (0)