CVE-2025-27607Python JSON Logger has a Potential RCE via missing `msgspec-python313-pre` dependency
Python JSON Logger is a JSON Formatter for Python Logging. Between 30 December 2024 and 4 March 2025 Python JSON Logger was vulnerable to RCE through a missing dependency. This occurred because msgspec-python313-pre was deleted by the owner leaving the name open to being claimed by a third party. If the package was claimed, it would allow them RCE on any Python JSON Logger user who installed the development dependencies on Python 3.13 (e.g. pip install python-json-logger[dev]). This issue has been resolved with 3.3.0.
What to do
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 26.10 | python-pythonjsonlogger | Fix pending | UBUNTU-CVE-2025-27607 | |
| Ubuntu 26.04 | python-pythonjsonlogger | Under investigation | UBUNTU-CVE-2025-27607 | |
| Ubuntu 25.10 | python-pythonjsonlogger | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-27607 | |
| Ubuntu 24.04 | python-pythonjsonlogger | Under investigation | UBUNTU-CVE-2025-27607 | |
| Ubuntu 22.04 | python-pythonjsonlogger | Under investigation | UBUNTU-CVE-2025-27607 | |
| Ubuntu 20.04 | python-pythonjsonlogger | Will not fix Ubuntu decided not to fix this in this release | UBUNTU-CVE-2025-27607 |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- nhairs python-json-logger: affected: >= 3.2.0, < 3.3.0
References
- https://github.com/nhairs/python-json-logger/security/advisories/GHSA-wmxh-pxcx-9w24
- https://github.com/nhairs/python-json-logger/commit/2548e3a2e3cedf6bef3ee7c60c55b7c02d1af11a
- https://github.com/nhairs/python-json-logger/commit/e7761e56edb980cfab0165e32469d5fd017a5d72
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.