Inclusion of Functionality from Untrusted Control Sphere in python-json-logger - CVE-2025-27607

 

Inclusion of Functionality from Untrusted Control Sphere in python-json-logger - CVE-2025-27607

Published: July 3, 2025


Vulnerability identifier: #VU112162
CSH Severity: High
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Amber
CVE-ID: CVE-2025-27607
CWE-ID: CWE-829
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: nhairs
Affected software:
python-json-logger

Detailed vulnerability description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The vulnerability exists due to 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]). A remote attacker can trick the victim into opening a specially crafted data, trigger the vulnerability and execute arbitrary code on the target system.


How to mitigate CVE-2025-27607

Install updates from vendor's website.

Sources