-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CVE-2022-31684: Vulnerability issue with latest azure sdk binaries 1.4.1 #32646
Comments
@[email protected] |
Thanks for filing this issue @moyalshailendra. To start, we are going to be releasing new versions of the SDKs next month where the Reactor Netty CVE is resolved. Also, When you upgrade The error should be resolvable by making sure that the latest versions of the Azure SDKs are being used and by ensuring Reactor Core 3.4.17 or later is being used (I don't recommend using Reactor Core 3.5.0 with the Azure SDKs yet as we have not upgraded to them ourselves, but the Azure SDKs try their best to not rely on APIs being removed by 3.5.x so they most likely will work with Reactor Core 3.5.x). |
Thanks for looking this up @alzimmermsft I have tried updating the version for the azure identity jar with the latest version which is 1.7.2, but the dependent jar still takes the lower version of reactor-netty-http jar. Also, when the Azure SDK was updated to the latest version of 1.2.8, the the dependent azure identity and the reactor-core-http were updated through the azure sdk upgrade, but reactor-core-http falls in vulnerable version which is 1.0.23. [INFO] +- com.azure:azure-identity:jar:1.7.0:compile |
Thanks for the update @Soorajskmr07. For the first case you gave where updating the This then leads to the second part where you're using |
A new release of |
Describe the bug
We have a springboot application which uses azure-identity jar of version 1.4.1 for the api rest calls towards the azure services.
azure-identity jar has the following sub dependencies as shown below,in which netty_reactor-netty-http jar is one of them with version 1.0.11.
Exception or Stack Trace
ERROR LOGS:
mcnp | worker1.cp4narcbuild70.cp.fyre.ibm.com | mcnp:cp4na-o-mcnp-65b4b59f78-2tkbc | 2022-11-30 10:01:20.913 ERROR 1 --- [nio-8444-exec-9] com.ibm.mcnp.gateway.j.a.b : Failed to list VNets: java.lang.NoSuchMethodError: reactor/core/publisher/MonoSink.contextView()Lreactor/util/context/ContextView; (loaded from jar
/data/mcnp-2.6.2-alpha-16.jar!/BOOT-INF/lib/reactor-core-3.4.10.jar!/ by org.springframework.boot.loader.LaunchedURLClassLoader@e7532b5f) called from class reactor.netty.http.client.HttpClientConnect$HttpObserver (loaded from jar
/data/mcnp-2.6.2-alpha-16.jar!/BOOT-INF/lib/reactor-netty-http-1.0.24.jar!/ by org.springframework.boot.loader.LaunchedURLClassLoader@e7532b5f).
java.util.concurrent.ExecutionException: java.lang.NoSuchMethodError: reactor/core/publisher/MonoSink.contextView()Lreactor/util/context/ContextView; (loaded from jar
/data/mcnp-2.6.2-alpha-16.jar!/BOOT-INF/lib/reactor-core-3.4.10.jar!/ by org.springframework.boot.loader.LaunchedURLClassLoader@e7532b5f) called from class reactor.netty.http.client.HttpClientConnect$HttpObserver (loaded from jar
/data/mcnp-2.6.2-alpha-16.jar!/BOOT-INF/lib/reactor-netty-http-1.0.24.jar!/ by org.springframework.boot.loader.LaunchedURLClassLoader@e7532b5f).
at java.base/java.util.concurrent.FutureTask.report(Unknown Source)
To Reproduce
Consume identity jar in any microservice and see the dependency tree.
Code Snippet
Add the code snippet that causes the issue.
Expected behavior
It should consume latest reactor-netty http jar version without vulnerability.
Screenshots
[INFO] +- com.azure:azure-identity:jar:1.4.1:compile
[INFO] | +- com.azure:azure-core-http-netty:jar:1.11.2:compile
[INFO] | | +- io.netty:netty-handler-proxy:jar:4.1.68.Final:compile
[INFO] | | | \- io.netty:netty-codec-socks:jar:4.1.77.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.68.Final:compile
[INFO] | | +- io.netty:netty-codec-http2:jar:4.1.68.Final:compile
[INFO] | | +- io.netty:netty-transport-native-unix-common:jar:4.1.68.Final:compile
[INFO] | | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.77.Final:compile
[INFO] | | +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.77.Final:compile
[INFO] | | | \- io.netty:netty-transport-classes-kqueue:jar:4.1.77.Final:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-http:jar:1.0.11:compile
[INFO] | | +- io.netty:netty-resolver-dns:jar:4.1.77.Final:compile
[INFO] | | | \- io.netty:netty-codec-dns:jar:4.1.77.Final:compile
[INFO] | | +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.77.Final:compile
[INFO] | | | \- io.netty:netty-resolver-dns-classes-macos:jar:4.1.77.Final:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-core:jar:1.0.11:compile
Setup (please complete the following information):
If you suspect a dependency version mismatch (e.g. you see
NoClassDefFoundError
,NoSuchMethodError
or similar), please check out Troubleshoot dependency version conflict article first. If it doesn't provide solution for the problem, please provide:mvn dependency:tree -Dverbose
)[INFO] +- com.azure:azure-identity:jar:1.4.1:compile
[INFO] | +- com.azure:azure-core-http-netty:jar:1.11.2:compile
[INFO] | | +- io.netty:netty-handler-proxy:jar:4.1.68.Final:compile
[INFO] | | | \- io.netty:netty-codec-socks:jar:4.1.77.Final:compile
[INFO] | | +- io.netty:netty-buffer:jar:4.1.68.Final:compile
[INFO] | | +- io.netty:netty-codec-http2:jar:4.1.68.Final:compile
[INFO] | | +- io.netty:netty-transport-native-unix-common:jar:4.1.68.Final:compile
[INFO] | | +- io.netty:netty-transport-native-epoll:jar:linux-x86_64:4.1.77.Final:compile
[INFO] | | +- io.netty:netty-transport-native-kqueue:jar:osx-x86_64:4.1.77.Final:compile
[INFO] | | | \- io.netty:netty-transport-classes-kqueue:jar:4.1.77.Final:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-http:jar:1.0.11:compile
[INFO] | | +- io.netty:netty-resolver-dns:jar:4.1.77.Final:compile
[INFO] | | | \- io.netty:netty-codec-dns:jar:4.1.77.Final:compile
[INFO] | | +- io.netty:netty-resolver-dns-native-macos:jar:osx-x86_64:4.1.77.Final:compile
[INFO] | | | \- io.netty:netty-resolver-dns-classes-macos:jar:4.1.77.Final:compile
[INFO] | | \- io.projectreactor.netty:reactor-netty-core:jar:1.0.11:compile
Additional context
Since the netty_reactor-netty-http jar has been been reported as vulnerable and is recommended to use a higher version 1.0.24(PFA). But once the netty_reactor-netty-http jar is updated to 1.0.24 version, the azure functions breaks wih the below error(NoSuchMethodError),since the updated version of netty jar is incompatible with azure. Kindly help in resolving the incompatibility issue as we cannot move the netty jar to any lower versions.
Information Checklist
Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report
The text was updated successfully, but these errors were encountered: