Skip to content
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

Jackson.databind -Vulnerable in version 2.11.4 & No such Method error in 2.13.2 (latest version) #3429

Closed
MohanRamu opened this issue Mar 25, 2022 · 8 comments
Labels
to-evaluate Issue that has been received but not yet evaluated

Comments

@MohanRamu
Copy link

shade(group: 'com.fasterxml.jackson.core', name: 'jackson-core')

Jackson Data bind jar in gradle project fails to execute test cases when i use latest version-2.13.2 due to No such method error in com.fasterxml.jackson.core.JsonParser.getReadCapabilities()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;

When i use 2.11.4 it is working as expected, but it is highly vulnerable in sonarqube report.

@MohanRamu MohanRamu added the to-evaluate Issue that has been received but not yet evaluated label Mar 25, 2022
@MohanRamu MohanRamu changed the title Jackson.databind -Vulnerable in version 2.1.4 & No such Method error in 2.13.2 (higher) Jackson.databind -Vulnerable in version 2.11.4 & No such Method error in 2.13.2 (higher) Mar 25, 2022
@MohanRamu MohanRamu changed the title Jackson.databind -Vulnerable in version 2.11.4 & No such Method error in 2.13.2 (higher) Jackson.databind -Vulnerable in version 2.11.4 & No such Method error in 2.13.2 (latest version) Mar 25, 2022
@yawkat
Copy link
Member

yawkat commented Mar 25, 2022

The error sounds like you're still using an outdated version (pre 2.12) of jackson-core. You will need to update that to 2.13.2.

2.11 is unsupported and will not receive a backport: https://twitter.com/fasterxml/status/1507198466732175378

@MohanRamu
Copy link
Author

The error sounds like you're still using an outdated version (pre 2.12) of jackson-core. You will need to update that to 2.13.2.

2.11 is unsupported and will not receive a backport: https://twitter.com/fasterxml/status/1507198466732175378

With the version 2.13.2, i got No such method error in com.fasterxml.jackson.core.JsonParser.getReadCapabilities()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;
java.lang.NoSuchMethodError: com.fasterxml.jackson.core.JsonParser.getReadCapabilities()Lcom/fasterxml/jackson/core/util/JacksonFeatureSet;

@yawkat
Copy link
Member

yawkat commented Mar 25, 2022

You need 2.13.2.1 of jackson-databind, and 2.13.2 of jackson-core. You do not have the latter.

@MohanRamu
Copy link
Author

image

jackson-databind 2.13.2 is the latest, i could not find 2.13.2.1

@yawkat
Copy link
Member

yawkat commented Mar 25, 2022

It's not visible on mvnrepository yet, but it is available on maven central.

@MohanRamu
Copy link
Author

Could not download jackson-databind 2.13.2.1
Required by:
project :ae-features > com.fasterxml.jackson.core:jackson-databind:2.13.2.1

Could not find com.fasterxml.jackson:jackson-bom:2.13.2.1.
Searched in the following locations:
- file:/C:/Users/mohramu/.m2/repository/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom
- https://repo.maven.apache.org/maven2/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.pom
- https://nexusrepo.***.com/repository/***-unite-product/com/fasterxml/jackson/jackson-bom/2.13.2.1/jackson-bom-2.13.2.1.jar

@yawkat
Copy link
Member

yawkat commented Mar 25, 2022

That error is tracked under #3428. Please see the comments there for a workaround.

@cowtowncoder
Copy link
Member

@MohanRamu as per notes, there is no jackson-bom version 2.13.2.1, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
to-evaluate Issue that has been received but not yet evaluated
Projects
None yet
Development

No branches or pull requests

3 participants