# CVE-2026-31072: APScheduler's JSONSerializer and CBORSerializer are vulnerable to Remote Code Execution (RCE) via Insecure Deserialization

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.01%, higher than 62% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-05-19T00:00:00.000Z
- Modified: 2026-10-27T16:15:05.357Z
- Also known as: GHSA-9cfw-f3f9-7mm7, PYSEC-2026-282
- Weaknesses: CWE-502
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## 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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- ansible-automation-platform-tech-preview/metrics-service-rhel9: no versions given
- python-APScheduler: no versions given
- quay/quay-rhel8: no versions given
- quay/quay-rhel9: no versions given
- satellite/iop-advisor-backend-rhel9: no versions given
- satellite/iop-host-inventory-rhel9: no versions given
- satellite/iop-vmaas-rhel9: no versions given
- satellite/iop-vulnerability-engine-rhel9: no versions given
- apscheduler (PyPI): from 4.0.0a1 up to 4.0.0a6

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- redhat-SADP: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://gist.github.com/nedlir/11fb77f35a59cbba73392a086b02a9c6> (exploit, web)
- <https://github.com/agronholm/apscheduler> (package)
- <https://access.redhat.com/security/cve/CVE-2026-31072> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2479907> (issue-tracking, web)
- <https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-31072.json> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-31072> (advisory)
- <https://github.com/pypa/advisory-database/tree/main/vulns/apscheduler/PYSEC-2026-282.yaml> (web)
- <https://pypi.org/project/apscheduler> (package, web)
- <https://github.com/advisories/GHSA-9cfw-f3f9-7mm7> (advisory)

## Sources

- CVE List: [CVE-2026-31072](https://www.cve.org/CVERecord?id=CVE-2026-31072), CVE Terms of Use, modified 2026-07-15
- GitHub Advisory Database: [GHSA-9cfw-f3f9-7mm7](https://github.com/advisories/GHSA-9cfw-f3f9-7mm7), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2026-31072](https://nvd.nist.gov/vuln/detail/CVE-2026-31072), Public domain, modified 2026-07-24
- PyPA Advisory Database: [PYSEC-2026-282](https://osv.dev/vulnerability/PYSEC-2026-282), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2026-31072 · Whole record: https://cve.day/CVE-2026-31072.json · Rebuilt by cve.day 2026-11-25T22:59:21.986Z
