Azure Databricks and CVE-2022-42889

Janne Kujanpää 256 Reputation points
2022-10-19T06:21:28.553+00:00

Azure Databricks is shipping Apache commons text package: e.g.

  • 1.6 on 10.4 LTS runtime
  • 1.9 on 11.2 runtime

Is vulnerable component actively being used by Databricks?
Is it exploitable through common data processing patterns customer use with Databricks?
Is it going to be hot-patched?
Guidance for customer-side mitigations?

The proof that component is shipped by default on Databricks cluster:
251766-image.png

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,517 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,641 Reputation points Moderator
    2022-10-20T14:46:42.683+00:00

    Hello @Janne Kujanpää ,

    Thanks for the question and using MS Q&A platform.

    The below are the steps to update Apache Commos Text 1.10 version:

    Step1: Create an init script as shown below:

    252551-image.png

    init script:

    #!/bin/bash  
    wget --quiet -O /dbfs/tmp/commons-text-1.10.0.jar https://repo1.maven.org/maven2/org/apache/commons/commons-text/1.10.0/commons-text-1.10.0.jar  
    rm -rf /databricks/jars/*commons-text*.jar  
    cp /dbfs/tmp/commons-text-1.10.0.jar /databricks/jars/  
    

    Step2: After you run the above snippet from a notebook, there will the apache-commons-text-install.sh file in /dbfs/databricks/scripts folder

    Step3: After confirming the file is good, add this to the init script to the cluster as shown below:

    252447-image.png

    Step4: Restart the cluster, after that you will see the 1.10 version

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is jhow you can be part of Q&A Volunteer Moderators

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.