CVE-2024-39700 Remote Code Execution (RCE) vulnerability in jupyterlab extension template `update-integration-tests` GitHub Action

Critical 10.0 Published Updated

Remote code execution in JupyterLab extension template's GitHub Action allows attackers to execute arbitrary code via malicious pull requests.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2024-39700?

CVE-2024-39700 is a critical code injection vulnerability in jupyterlab extension-template, published on 16 Jul 2024. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

JupyterLab extension template is a `copier` template for JupyterLab extensions. Repositories created using this template with `test` option include `update-integration-tests.yml` workflow which has an RCE vulnerability. Extension authors hosting their code on GitHub are urged to upgrade the template to the latest version. Users who made changes to `update-integration-tests.yml`, accept overwriting of this file and re-apply your changes later. Users may wish to temporarily disable GitHub Actions while working on the upgrade. We recommend rebasing all open pull requests from untrusted users as actions may run using the version from the `main` branch at the time when the pull request was created. Users who are upgrading from template version prior to 4.3.0 may wish to leave out proposed changes to the release workflow for now as it requires additional configuration.

Weakness: CWE-94

Which versions are affected by CVE-2024-39700?

2 open source packages ship an affected version, including jupyterlab. It affects 1 product.

PackageAffectedFixed in
jupyterlab BitnamiAll versions4.3.0
jupyterlab PyPIAll versions4.3.0

Products include Jupyter Jupyterlab.

How do I fix CVE-2024-39700?

Upgrade jupyterlab to 4.3.0 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2024-39700 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2024-39700 exists.

Public exploit code: 2 proofs of concept on GitHub.

Sources

Also known as BIT-jupyterlab-2024-39700, GHSA-45gq-v5wm-82wg, PYSEC-2024-322.

Is CVE-2024-39700 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free