Skip to content

How to fix vulnerability failure on EMR image

0

Hi Team, we are using the EMR serverless v7.0.0 base image for the ETL tasks. A critical vulnerability failure occurs on the below file during container scanning using the inspector. How to get this vulnerability fixed? usr/lib/hudi/hudi-aws-bundle-0.14.0-amzn-1.jar

Description : FasterXML jackson-databind 2.x before 2.9.8 might allow attackers to have unspecified impact by leveraging failure to block the jboss-common-core class from polymorphic deserialization.

asked 2 years ago300 views
2 Answers
0

Verify Current EMR Release:

Check the AWS documentation to see if there is a newer version of the EMR Serverless image or the hudi-aws-bundle that includes a patched version of jackson-databind. AWS may have released a new version that addresses this vulnerability.

Custom EMR Build:

If the current EMR release does not have the fix, consider creating a custom EMR image where you update the jackson-databind library to a version that is not vulnerable. You can do this by: Downloading the latest non-vulnerable version of jackson-databind (2.9.8 or later) from Maven. Replacing the old version in the hudi-aws-bundle with the updated jar. Rebuilding or packaging the updated library into your EMR environment.

You can temporarily mitigate the issue by disabling polymorphic deserialization for certain classes if updating the library is not immediately possible. Here's an example in Java: ObjectMapper mapper = new ObjectMapper(); mapper.disable(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES); mapper.enableDefaultTyping(ObjectMapper.DefaultTyping.NON_FINAL, JsonTypeInfo.As.WRAPPER_ARRAY);

AWS
EXPERT
answered 2 years ago
  • Thanks, @Deekshitha Urs, Can you provide more information on the 3rd point. At present, we are not using the hudi in our application. The base packages provide all these bundles.

0

To address the vulnerability in the hudi-aws-bundle-0.14.0-amzn-1.jar file on your EMR Serverless v7.0.0 image, start by checking for a newer EMR version that might include an updated, secure version of Hudi.

If upgrading is not feasible, consider creating a custom EMR image with updated libraries or manually replacing the vulnerable jackson-databind library within the JAR file.

Additionally, applying available patches or implementing security safeguards can help mitigate the issue.

EXPERT
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.