CVE-2025-27607 Python JSON Logger has a Potential RCE via missing `msgspec-python313-pre` dependency
Attackers could execute code on systems installing development dependencies for Python JSON Logger due to a hijacked package name.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- A user has to click or open something
- Fix
- None listed
What is CVE-2025-27607?
CVE-2025-27607 is a high-severity vulnerability in nhairs python-json-logger, published on 7 Mar 2025. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Official 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.
Weakness: CWE-829
Which versions are affected by CVE-2025-27607?
It affects 1 product.
Products include Nhairs Python Json Logger.
How do I fix CVE-2025-27607?
No fix has been published for CVE-2025-27607 yet. Limit exposure of the affected software until one is available.
Is CVE-2025-27607 being exploited?
It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-27607 exists.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-wmxh-pxcx-9w24, UBUNTU-CVE-2025-27607.