Vulnerability · Published May 19, 2026 · Assigned by mitre
CVE-2026-31072
Critical 9.8
In plain English
A critical-severity unsafe deserialization in the apscheduler package (Debian). Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.8% (higher than 57% of all known vulnerabilities).
Official description
The JSONSerializer and CBORSerializer in APScheduler (all versions including 3.10.x and 4.0.0a5) are vulnerable to Remote Code Execution (RCE) via Insecure Deserialization. The unmarshal_object function allows for arbitrary class instantiation and state injection by dynamically importing modules and calling __setstate__ on any class available in the Python environment. An attacker can exploit this by submitting a specially crafted JSON or CBOR payload to an application using these serializers
Affected packages & fixed versions
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian:12 | apscheduler | no fix listed | DEBIAN-CVE-2026-31072 |
| Debian:13 | apscheduler | no fix listed | DEBIAN-CVE-2026-31072 |
| Debian:14 | apscheduler | no fix listed | DEBIAN-CVE-2026-31072 |
| PyPI | apscheduler | no fix listed | GHSA-9cfw-f3f9-7mm7 |
| PyPI | apscheduler | no fix listed | PYSEC-2026-282 |
| Ubuntu:22.04:LTS | apscheduler | no fix listed | UBUNTU-CVE-2026-31072 |
| Ubuntu:24.04:LTS | apscheduler | no fix listed | UBUNTU-CVE-2026-31072 |
| Ubuntu:25.10 | apscheduler | no fix listed | UBUNTU-CVE-2026-31072 |
| Ubuntu:26.04:LTS | apscheduler | no fix listed | UBUNTU-CVE-2026-31072 |
Affected products (as reported)
Weakness: CWE-502 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
References
- https://github.com/agronholm/apscheduler
- https://gist.github.com/nedlir/11fb77f35a59cbba73392a086b02a9c6
- https://access.redhat.com/security/cve/CVE-2026-31072 vdb-entry, x_refsource_REDHAT
- RHBZ#2479907 issue-tracking, x_refsource_REDHAT
- https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31072.json x_sadp-csaf-vex