Read the docs
TI-2026-66241 Aliases GHSA-47qc-857f-7w7f

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

Priority LOW 38CWE-843Published · Updated

Key facts

Attack vector
—
Privileges required
—
User interaction
—
Attack complexity
—
Impact type
—
Confidentiality · integrity · availability
—
Fix status
Fixed

No CVSS vector from any source. Fix status from GitHub.

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

Why it matters now

Fix Fixed pyo3 (crates.io): 0.28.2

SSVC decision points

Not available: CISA has not published SSVC decision points for this record.

Affected products

VendorProductAffected versionsFixed inStatusSource
—pyo3 (crates.io)0.28.0 to before 0.28.20.28.2Patch availableGHSA-47qc-857f-7w7f
  • pyo3 (crates.io) Vendor— Affected 0.28.0 to before 0.28.2 Fixed in 0.28.2 Patch available GHSA-47qc-857f-7w7f

Remediation

  • Fix · GHSA-47qc-857f-7w7f pyo3 (crates.io) Fixed in 0.28.2 Advisory →

Timeline

  1. 2026-10-03 Threatist record created from GHSA-47qc-857f-7w7f

References

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences