Skip to content

CVE-2025-27607 Python JSON Logger has a Potential RCE via missing `msgspec-python313-pre` dependency

HighCVSS 8.8 EPSS 1.6%
Published
Updated
Exploit status
No public exploit known
CISA SSVC
Proof of concept public · automatable: no · technical impact: total
Technology
UbuntuDebian

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.

Upgrade path

6 packages: 1 fixed, 4 with no fix yet.

PackageAffectedFixed inStatus
ubuntu/python-pythonjsonlogger(Ubuntu 22.04) All versions No fix listed No fix yet
ubuntu/python-pythonjsonlogger(Ubuntu 24.04) All versions No fix listed No fix yet
ubuntu/python-pythonjsonlogger(Ubuntu 26.04) All versions No fix listed No fix yet
ubuntu/python-pythonjsonlogger(Ubuntu 26.10) All versions No fix listed No fix yet
nhairs python json logger < 3.3.0 3.3.0 Fixed
nhairs python-json-logger = >= 3.2.0, < 3.3.0 No fix listed Versions listed

Affected products

ProductAffected versionsFixed in
nhairs python-json-logger = >= 3.2.0, < 3.3.0 No fix listed
ubuntu/python-pythonjsonlogger(Ubuntu:22.04) All versions No fix listed
ubuntu/python-pythonjsonlogger(Ubuntu:24.04) All versions No fix listed
ubuntu/python-pythonjsonlogger(Ubuntu:26.04) All versions No fix listed
nhairs python json logger < 3.3.0 3.3.0
ubuntu/python-pythonjsonlogger(Ubuntu:26.10) All versions No fix listed

References