Skip to content
OpenAdvisories
High · 8.8 Public exploit CVE-2025-27607 EUVD-2025-7799

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

Published Mar 7, 2025 · Updated Mar 7, 2025 · 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 products

VendorProductAffectedFixed
nhairs python-json-logger >= 3.2.0, < 3.3.0 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Ubuntu 26.10 python-pythonjsonlogger No fix yet —
Ubuntu 26.04 LTS python-pythonjsonlogger No fix yet —
Ubuntu 25.10 python-pythonjsonlogger No fix yet —
Ubuntu 24.04 LTS python-pythonjsonlogger No fix yet —
Ubuntu 22.04 LTS python-pythonjsonlogger No fix yet —
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu 20.04 LTS python-pythonjsonlogger No fix yet —

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

GitHub 1 repository

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 1

References