Description
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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| nhairs | python-json-logger | >= 3.2.0, < 3.3.0 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | python-pythonjsonlogger | No fix yet | — |
| Ubuntu 26.04 LTS | python-pythonjsonlogger | No fix yet | — |
| Ubuntu 25.10 | python-pythonjsonlogger | No fix yet | — |
| Ubuntu 24.04 LTS | python-pythonjsonlogger | No fix yet | — |
| Ubuntu 22.04 LTS | python-pythonjsonlogger | No fix yet | — |
Show 1 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 20.04 LTS | python-pythonjsonlogger | No fix yet | — |
Public exploits
Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.
GitHub 1 repository
-
Barsug/msgspec-python313-pre ★ 0 · Mar 14, 2025
CVE-2025-27607 fix
Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.
Advisories 1
- WID-SEC-2025-1648 IBM Cognos Analytics (Python JSON Logger): Schwachstelle ermöglicht Codeausführung BSI CERT-Bund (WID) · Jul 27, 2025