Advisory

GHSA-9cfw-f3f9-7mm7

Also known as: CVE-2026-31072, PYSEC-2026-282

Summary

APScheduler's JSONSerializer and CBORSerializer are vulnerable to Remote Code Execution (RCE) via Insecure Deserialization

Details

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

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2026-05-19 18:32 UTC
Modified
2026-10-27 16:15 UTC

Affected packages and fixes

apscheduler

PyPI · All systems

Affected

  • introduced 4.0.0a1, last affected 4.0.0a6 (ecosystem)

Fixed versions

None listed

Fix

No fixed version is listed.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences