CVE-2025-27607
Nhairs Python Json Logger vulnerability
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
Python Json Logger. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Nhairs Python Json Logger runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/nhairs/python-json-logger/security/advisories/GHSA-wmxh-pxcx-9w24 · Exploit
- github.com/nhairs/python-json-logger/commit/2548e3a2e3cedf6bef3ee7c60c55b7c02d1af11a · Patch
- github.com/nhairs/python-json-logger/commit/e7761e56edb980cfab0165e32469d5fd017a5d72 · Patch
- nvd.nist.gov/vuln/detail/CVE-2025-27607
- cve.org/CVERecord?id=CVE-2025-27607
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.