Jupyter nbconvert
nbconvert has an uncontrolled search path that leads to unauthorized code execution on Windows
The nbconvert tool, jupyter nbconvert, converts Jupyter notebooks to various other formats via Jinja templates. Versions of nbconvert up to and including 7.16.6 on Windows have a vulnerability in which converting a notebook containing SVG output to a PDF results in unauthorized code execution. Specifically, a third party can create a `inkscape.bat` file that defines a Windows batch script, capable of arbitrary code execution. When a user runs `jupyter nbconvert --to pdf` on a notebook containing SVG output to a PDF on a Windows platform from this directory, the `inkscape.bat` file is run unexpectedly. This issue has been patched in version 7.17.0.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 7.17.0
Fixed in 7.17.0
Mitigation
Upgrade nbconvert to 7.17.0 or later.
References
- Vendor advisory github.com/jupyter/nbconvert/security/advisori…
- Patch github.com/jupyter/nbconvert/commit/c9ac1d1040…
- Release notes github.com/jupyter/nbconvert/releases/tag/v7.1…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.