CVE-2026-31072: Vulnerability in apscheduler
Critical. 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...
PyPI, CWE-502
- Exploitation
- None confirmed
- Severity
- 9.8 of 10
- Attack likelihood
- 0.8 % in 30 days
- Fix
- None recorded
- Patch deadline
- No deadline set
Details
- Advisory ID
- GHSA-9cfw-f3f9-7mm7
- EU ID
- EUVD-2026-30947
- Vector
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-502
- Published
- 19 May 2026
- Last change
- 27 Oct 2026
- Likelihood rank
- Higher than 58 % of all rated vulnerabilities
- Analysis status
- Deferred
- Ecosystem
- PyPI
Affected packages
Vulnerable version ranges and fixed releases
- apscheduler PyPI, Affected from 4.0.0a1 through 4.0.0a6. No fixed version recorded
Advisories
Vendor and security advisories
- gist.github.com/nedlir/11fb77f35a59cbba73392a086b02a9c6
- github.com/agronholm/apscheduler
- access.redhat.com/security/cve/CVE-2026-31072
- bugzilla.redhat.com/show_bug.cgi
- security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31072.json
- github.com/pypa/advisory-database/tree/main/vulns/apscheduler/PYSEC-2026-282.yaml