{"id":"GHSA-47qc-857f-7w7f","aliases":["RUSTSEC-2026-0013"],"url":"https://o3.security/vulnerability/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.","published":"2026-02-19T20:25:46Z","modified":"2026-02-23T07:26:19.729428Z","cvss":null,"epss":null,"cisaKev":null,"exploitsKnown":0,"affectedPackages":[{"ecosystem":"crates.io","name":"pyo3","fixedVersion":"0.28.2"}],"fix":{"url":"https://github.com/PyO3/pyo3/pull/5807#issuecomment-3913251784","label":"PyO3/pyo3#5807"},"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-02-23T07:26:19.729428Z"}}