Description
A flaw was found in PyO3. This vulnerability causes a use-after-free issue, potentially leading to memory corruption or crashes via unsound borrowing from weak Python references.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | pyo3 | 0.22.0 – < 0.22.4 | 0.22.4 |
| Red Hat | Red Hat Ansible Automation Platform 2 | — | — |
| Red Hat | Red Hat Enterprise Linux 10 | — | — |
| Red Hat | Red Hat Enterprise Linux 8 | — | — |
| Red Hat | Red Hat Enterprise Linux 9 | — | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | rust-pyo3 | 0.22.5-1 | — |
| Debian 13 | rust-pyo3 | 0.22.5-1 | — |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| crates.io | pyo3 | >= 0.22.0, < 0.22.4 | 0.22.4 | GHSA-6jgw-rgmm-7cv6 |