CVE-2025-27607
JSON

8.8high

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

Severity
8.8high CVSS:3.1 by GitHub_M
Exploit likelihood
1.61% (higher than 76% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
GitHub_M

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

Product or packageVersionsReported by
nhairs python-json-logger>= 3.2.0, < 3.3.0CVE List
nhairs python_json_loggerbefore 3.3.0NVD

Classification

CWE-829

SSVC (CISA-ADP): exploitation poc, automatable no, technical impact total.

What each source says

CVE List

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.

NVD (es)

Python JSON Logger es un formateador JSON para el registro de Python. Entre el 30 de diciembre de 2024 y el 4 de marzo de 2025, Python JSON Logger fue vulnerable a RCE debido a una dependencia faltante. Esto ocurrió porque el propietario eliminó msgspec-python313-pre, lo que dejó el nombre abierto a que un tercero lo reclamara. Si se reclamaba el paquete, les permitiría realizar RCE en cualquier usuario de Python JSON Logger que instalara las dependencias de desarrollo en Python 3.13 (por ejemplo, pip install python-json-logger[dev]). Este problema se ha resuelto con la versión 3.3.0.

References

Sources

SourceRecordLicence
CVE ListCVE-2025-27607 changed 2025-03-07CVE Terms of Use
NVDCVE-2025-27607 changed 2026-06-17Public domain