python-pythonjsonlogger — security advisory
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.
- Products
- python-pythonjsonlogger
- Affected versions
- 0.1.11-2, 2.0.1-1, 2.0.1-2, 2.0.1-3, 2.0.1-4, 3.2.1-1, 3.3.0-1
- Fixed versions
- Not specified
- CVEs
- CVE-2025-27607
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 31 Oct 2026, 01:26 UTC · Revision 1
Source evidence
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.
osv:UBUNTU-CVE-2025-27607
python-pythonjsonlogger
Fixed versions: Not specified
python-pythonjsonlogger
Fixed versions: Not specified
python-pythonjsonlogger
Fixed versions: Not specified
python-pythonjsonlogger
Fixed versions: Not specified
python-pythonjsonlogger
Fixed versions: Not specified
python-pythonjsonlogger
Fixed versions: Not specified
Complete source record
{
"id": "665b37cb6e90bed8110b47d01fbac58d272684e2cef9b15e6fa80b68041242b1",
"url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-27607",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "UBUNTU-CVE-2025-27607",
"summary": "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.",
"evidence": "osv:UBUNTU-CVE-2025-27607",
"products": [
{
"name": {
"value": "python-pythonjsonlogger",
"evidence": "/affected/0/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "0.1.11-2",
"evidence": "/affected/0/versions"
}
]
},
{
"name": {
"value": "python-pythonjsonlogger",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.1-1",
"evidence": "/affected/1/versions"
},
{
"value": "2.0.1-2",
"evidence": "/affected/1/versions"
}
]
},
{
"name": {
"value": "python-pythonjsonlogger",
"evidence": "/affected/2/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "2.0.1-3",
"evidence": "/affected/2/versions"
},
{
"value": "2.0.1-4",
"evidence": "/affected/2/versions"
}
]
},
{
"name": {
"value": "python-pythonjsonlogger",
"evidence": "/affected/3/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.2.1-1",
"evidence": "/affected/3/versions"
},
{
"value": "3.3.0-1",
"evidence": "/affected/3/versions"
}
]
},
{
"name": {
"value": "python-pythonjsonlogger",
"evidence": "/affected/4/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.3.0-1",
"evidence": "/affected/4/versions"
}
]
},
{
"name": {
"value": "python-pythonjsonlogger",
"evidence": "/affected/5/package/name"
},
"prerequisites": [],
"fixed_versions": [],
"affected_versions": [
{
"value": "3.3.0-1",
"evidence": "/affected/5/versions"
}
]
}
],
"severity": "high",
"structured": {
"id": "UBUNTU-CVE-2025-27607",
"aliases": [
"UBUNTU-CVE-2025-27607"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H"
},
{
"type": "Ubuntu",
"score": "medium"
}
],
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pythonjsonlogger",
"purl": "pkg:deb/ubuntu/python-pythonjsonlogger?arch=source&distro=focal",
"ecosystem": "Ubuntu:20.04:LTS"
},
"versions": [
"0.1.11-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pythonjsonlogger",
"binary_version": "0.1.11-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pythonjsonlogger",
"purl": "pkg:deb/ubuntu/python-pythonjsonlogger?arch=source&distro=jammy",
"ecosystem": "Ubuntu:22.04:LTS"
},
"versions": [
"2.0.1-1",
"2.0.1-2"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pythonjsonlogger",
"binary_version": "2.0.1-2"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pythonjsonlogger",
"purl": "pkg:deb/ubuntu/python-pythonjsonlogger?arch=source&distro=noble",
"ecosystem": "Ubuntu:24.04:LTS"
},
"versions": [
"2.0.1-3",
"2.0.1-4"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pythonjsonlogger",
"binary_version": "2.0.1-4"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pythonjsonlogger",
"purl": "pkg:deb/ubuntu/python-pythonjsonlogger?arch=source&distro=questing",
"ecosystem": "Ubuntu:25.10"
},
"versions": [
"3.2.1-1",
"3.3.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pythonjsonlogger",
"binary_version": "3.3.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pythonjsonlogger",
"purl": "pkg:deb/ubuntu/python-pythonjsonlogger?arch=source&distro=stonking",
"ecosystem": "Ubuntu:26.10"
},
"versions": [
"3.3.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pythonjsonlogger",
"binary_version": "3.3.0-1"
}
]
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
}
]
}
],
"package": {
"name": "python-pythonjsonlogger",
"purl": "pkg:deb/ubuntu/python-pythonjsonlogger?arch=source&distro=resolute",
"ecosystem": "Ubuntu:26.04:LTS"
},
"versions": [
"3.3.0-1"
],
"database_specific": {
"source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-27607.json"
},
"ecosystem_specific": {
"binaries": [
{
"binary_name": "python3-pythonjsonlogger",
"binary_version": "3.3.0-1"
}
]
}
}
],
"modified": "2026-10-17T12:56:49.527825656Z",
"provider": "osv",
"upstream": [
"CVE-2025-27607"
],
"references": [
"https://ubuntu.com/security/CVE-2025-27607",
"https://www.cve.org/CVERecord?id=CVE-2025-27607",
"https://github.com/nhairs/python-json-logger/commit/2548e3a2e3cedf6bef3ee7c60c55b7c02d1af11a",
"https://github.com/nhairs/python-json-logger/commit/e7761e56edb980cfab0165e32469d5fd017a5d72",
"https://github.com/nhairs/python-json-logger/security/advisories/GHSA-wmxh-pxcx-9w24"
]
},
"related_cves": [
{
"value": "CVE-2025-27607",
"evidence": "/upstream"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 356394,
"published_at": "2025-03-07T17:15:00+00:00"
}