CVE-2025-27607: Python 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
python-json-loggerto a version that resolves this vulnerability.Fixed in 3.3.0
Event History
Frequently Asked Questions
What is the severity of CVE-2025-27607?
CVE-2025-27607 has been assessed as high severity due to its potential for remote code execution.
How do I fix CVE-2025-27607?
To fix CVE-2025-27607, users should upgrade to Python JSON Logger version 3.3.0 or higher.
What vulnerability does CVE-2025-27607 address?
CVE-2025-27607 addresses a remote code execution vulnerability caused by a missing dependency in Python JSON Logger.
What software is affected by CVE-2025-27607?
CVE-2025-27607 affects the Python JSON Logger versions prior to 3.3.0.
How did CVE-2025-27607 occur?
CVE-2025-27607 occurred because the msgspec-python313-pre dependency was deleted, leaving the name open for exploitation.