{"id":"UBUNTU-CVE-2026-31072","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","modified":"2026-06-10T01:15:08.023140434Z","published":"2026-05-19T16:16:00Z","withdrawn":"2026-06-09T23:27:30Z","upstream":["CVE-2026-31072"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-31072"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-31072"},{"type":"REPORT","url":"https://gist.github.com/nedlir/11fb77f35a59cbba73392a086b02a9c6"},{"type":"REPORT","url":"https://github.com/agronholm/apscheduler"}],"affected":[{"package":{"name":"apscheduler","ecosystem":"Ubuntu:16.04:LTS","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=xenial"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["2.1.2-2"],"ecosystem_specific":{"binaries":[{"binary_version":"2.1.2-2","binary_name":"python-apscheduler"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}},{"package":{"name":"apscheduler","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=bionic"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.3.1-1","3.4.0-1","3.4.0-2ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"python-apscheduler","binary_version":"3.4.0-2ubuntu1"},{"binary_version":"3.4.0-2ubuntu1","binary_name":"python3-apscheduler"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}},{"package":{"name":"apscheduler","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.5.3-1","3.6.1-1.1","3.6.3-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-apscheduler","binary_version":"3.6.3-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}},{"package":{"name":"apscheduler","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.7.0-1","3.8.0-1","3.8.1-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-apscheduler","binary_version":"3.8.1-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}},{"package":{"name":"apscheduler","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.9.1-2"],"ecosystem_specific":{"binaries":[{"binary_version":"3.9.1-2","binary_name":"python3-apscheduler"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}},{"package":{"name":"apscheduler","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.11.0-1"],"ecosystem_specific":{"binaries":[{"binary_version":"3.11.0-1","binary_name":"python3-apscheduler"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}},{"package":{"name":"apscheduler","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/apscheduler?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["3.11.0-1","3.11.1-1","3.11.2-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-apscheduler","binary_version":"3.11.2-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-31072.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}