-
Notifications
You must be signed in to change notification settings - Fork 75
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-2020-36518 (High) detected in jackson-databind-2.12.6.jar #436
Comments
from FasterXML/jackson-databind#2816: "I’m sure that the same issue existing in 2.12.x and 2.11.x. May I know the fixing plan ? if the issue can only be fixed by upgrading to 2.14.x, when do you plan to release this version ?" and https://www.whitesourcesoftware.com/vulnerability-database/CVE-2020-36518 , no fix does not seem to exist now. Will monitor this for now. |
To be honest, I don't see how this is a CVE for only Jackson when both Gson and JSON-B have the same issue. I've created a small test program that creates a simple JSON string with only nested objects for any given depth, then tries with Jackson, Gson and JSON-B until there is a StackOverflowError.
Unsurprisingly, it's not just Jackson that fails but the others as well. Gson fails later, but it still fails. JSON-B fails at around the same depth. I even expect that most frameworks for unmarshalling XML, YAML, etc. have the same problem. Unless there is a max depth specified somewhere, the framework will fail. |
How can this become a CVE with a high rating? |
@kaituo Seems like this got fixed with 2.13.2.2 as updated here FasterXML/jackson-databind#2816. I later checked that Opensearch core also made the update already to fix this CVE. I'll include this fix in my PR to update to alpha1 qualifier shortly |
CVE-2020-36518 - High Severity Vulnerability
General data-binding functionality for Jackson: works on core streaming API
Library home page: http://github.com/FasterXML/jackson
Path to dependency file: /build.gradle
Path to vulnerable library: /hes/modules-2/files-2.1/com.fasterxml.jackson.core/jackson-databind/2.12.6/fac216b606c1086e36acea6e572ee61572ad1670/jackson-databind-2.12.6.jar
Dependency Hierarchy:
Found in HEAD commit: 855081675ac79d33fb4d1461091556bf6b566f78
Found in base branch: main
jackson-databind before 2.13.0 allows a Java StackOverflow exception and denial of service via a large depth of nested objects.
WhiteSource Note: After conducting further research, WhiteSource has determined that all versions of com.fasterxml.jackson.core:jackson-databind up to version 2.13.2 are vulnerable to CVE-2020-36518.
Publish Date: 2022-03-11
URL: CVE-2020-36518
Base Score Metrics:
Type: Upgrade version
Origin: FasterXML/jackson-databind#2816
Release Date: 2022-03-11
Fix Resolution: com.fasterxml.jackson.core:jackson-databind:2.12.6.1,2.13.2.1
The text was updated successfully, but these errors were encountered: