{"id":"GHSA-47qc-857f-7w7f","summary":"PyO3 has type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature","details":"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.","aliases":["RUSTSEC-2026-0013"],"modified":"2026-02-23T07:26:19.729428Z","published":"2026-02-19T20:25:46Z","database_specific":{"github_reviewed_at":"2026-02-19T20:25:46Z","github_reviewed":true,"severity":"HIGH","cwe_ids":["CWE-843"],"nvd_published_at":null},"references":[{"type":"WEB","url":"https://github.com/PyO3/pyo3/pull/5807#issuecomment-3913251784"},{"type":"WEB","url":"https://github.com/PyO3/pyo3/commit/75abd8602896b350fd8c778e52e0a74b4644ccca"},{"type":"PACKAGE","url":"https://github.com/PyO3/pyo3"},{"type":"WEB","url":"https://github.com/PyO3/pyo3/releases/tag/v0.28.2"},{"type":"WEB","url":"https://rustsec.org/advisories/RUSTSEC-2026-0013.html"}],"affected":[{"package":{"name":"pyo3","ecosystem":"crates.io","purl":"pkg:cargo/pyo3"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0.28.0"},{"fixed":"0.28.2"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-47qc-857f-7w7f/GHSA-47qc-857f-7w7f.json"}}],"schema_version":"1.7.3","severity":[{"type":"CVSS_V4","score":"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"}]}