Intel

AIKIDO-2026-10228

pyo3 is vulnerable to Undefined Behavior

Undefined Behavior Pre-CVE
Found by Aikido Intel before public disclosure or CVE publication.
Published Feb 22, 2026

20

Low Risk

This Affects:

RUSTpyo3
0.28.0 - 0.28.1
Fixed in 0.28.2
Are you affected? Scan for Free

TL;DR

Affected versions of this package are vulnerable to memory corruption when extending native Python types (e.g., #[pyclass(extends=PyList)]) on Python 3.12+ with the abi3 feature enabled. Subclasses incorrectly use their own type when accessing base class data, leading to improper memory access. The issue is fixed by ensuring the correct base type is used during data access.

Who does this affect?

You are affected if you are using a version that falls within the vulnerable range.

Background info

pyo3 is vulnerable to Undefined Behavior in versions 0.28.0 - 0.28.1.

How to fix this

Upgrade the pyo3 library to the patch version.