{"id":"GHSA-47qc-857f-7w7f","aliases":["GHSA-47qc-857f-7w7f","RUSTSEC-2026-0013"],"related":[],"kind":"vulnerability","state":"published","title":"PyO3 has type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature","summary":"PyO3 0.28.1 added support for `#[pyclass(extends=PyList)] struct NativeSub` (and other native types) when targeting Python 3.12 and up with the `abi3` feature.\n\nIt was discovered that subclasses of such classes would use the type of the subclass when attempting to access to data of `NativeSub` contained within Python objects, amounting to memory corruption.\n\nPyO3 0.28.2 fixed the issue by using the type of (e.g.) `NativeSub` correctly.","summaryFormat":"markdown","summarySource":"ghsa","descriptions":[{"lang":"en","text":"PyO3 0.28.1 added support for `#[pyclass(extends=PyList)] struct NativeSub` (and other native types) when targeting Python 3.12 and up with the `abi3` feature.\n\nIt was discovered that subclasses of such classes would use the type of the subclass when attempting to access to data of `NativeSub` contained within Python objects, amounting to memory corruption.\n\nPyO3 0.28.2 fixed the issue by using the type of (e.g.) `NativeSub` correctly.","format":"markdown","source":"ghsa"}],"published":"2026-02-18T12:00:00.000Z","modified":"2026-02-23T07:26:19.729Z","severity":{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","rating":"HIGH"},"severities":[{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U","rating":"HIGH"}],"cwes":["CWE-843"],"affected":[{"ranges":[{"type":"semver","introduced":"0.28.0","status":"affected","fixed":"0.28.2"}],"ecosystem":"crates.io","package":"pyo3","purl":"pkg:cargo/pyo3","source":"ghsa"},{"ranges":[{"type":"semver","introduced":"0.28.0","status":"affected","fixed":"0.28.2"}],"ecosystem":"crates.io","package":"pyo3","purl":"pkg:cargo/pyo3","source":"rustsec"}],"references":[{"url":"https://github.com/PyO3/pyo3/pull/5807#issuecomment-3913251784","tags":["web"],"sources":["ghsa","rustsec"]},{"url":"https://github.com/PyO3/pyo3/commit/75abd8602896b350fd8c778e52e0a74b4644ccca","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/PyO3/pyo3","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/PyO3/pyo3/releases/tag/v0.28.2","tags":["web"],"sources":["ghsa"]},{"url":"https://rustsec.org/advisories/RUSTSEC-2026-0013.html","tags":["advisory","web"],"sources":["ghsa","rustsec"]},{"url":"https://crates.io/crates/pyo3","tags":["package"],"sources":["rustsec"]}],"credits":[],"sources":[{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-47qc-857f-7w7f","url":"https://github.com/advisories/GHSA-47qc-857f-7w7f","licence":"CC-BY-4.0","modified":"2026-02-23T07:26:19.729Z"},{"source":"rustsec","name":"RustSec Advisory Database","id":"RUSTSEC-2026-0013","url":"https://rustsec.org/advisories/RUSTSEC-2026-0013.html","licence":"CC0-1.0","modified":"2026-02-23T07:15:28.000Z"}],"updatedAt":"2026-11-25T22:56:43.304Z"}