Security mailing lists by PureSourceCode

RUSTSEC-2026-0013

HIGH

PyO3 has type confusion when accessing data from sublasses of subclasses of native types with `abi3` feature

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.

Published
18 Feb 2026
Last modified
23 Feb 2026
Weakness
CWE-843
Also known as
GHSA-47qc-857f-7w7f
Sources
OSV GHSA-47qc-857f-7w7fJSONOSVJSON

Scores

SourceScored byVersionScoreVector / decision
OSV GitHub CVSS 4.0 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

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io pyo3 >= 0.28.0, < 0.28.2 0.28.2

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 18 Feb 2026)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 19 Feb 2026)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.