CVEfocus › CVE database › CVE-2026-31072

CVE-2026-31072

CVSS 9.8 CriticalEPSS 1.0% (higher than 62% of CVEs)Published 2026-05-19Updated 2026-07-15Assigner: mitre

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

CWE-502

What to do

PyPI has not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

1Fix pending
4Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04apschedulerNot affected
vulnerable_code_not_present
Ubuntu 25.10apschedulerNot affected
vulnerable_code_not_present
Ubuntu 24.04apschedulerNot affected
vulnerable_code_not_present
Ubuntu 22.04apschedulerNot affected
vulnerable_code_not_present
PyPI libraryapschedulerFix pendingGHSA-9cfw-f3f9-7mm7

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.