GHSA-47qc-857f-7w7f

Suggest an improvement
Source
https://github.com/advisories/GHSA-47qc-857f-7w7f
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2026/02/GHSA-47qc-857f-7w7f/GHSA-47qc-857f-7w7f.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-47qc-857f-7w7f
Aliases
Published
2026-02-19T20:25:46Z
Modified
2026-02-23T07:26:19.729428Z
Severity
  • 7.2 (High) CVSS_V4 - 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 CVSS Calculator
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.

It 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.

PyO3 0.28.2 fixed the issue by using the type of (e.g.) NativeSub correctly.

Database specific
{
    "nvd_published_at": null,
    "github_reviewed_at": "2026-02-19T20:25:46Z",
    "github_reviewed": true,
    "severity": "HIGH",
    "cwe_ids": [
        "CWE-843"
    ]
}
References

Affected packages

crates.io / pyo3

Package

Affected 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"