CVE-2024-9979

Pyo3: risk of use-after-free in `borrowed` reads from python weak references

State
Published
Severity
5.3 Medium
Published
Oct 15, 2024
Updated
Nov 20, 2025
Reserved
Oct 15, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.15.3 MediumCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:Lredhat

Weaknesses

Affected Products

ProductVersions
pyo3
  • 0.22.0 to before 0.22.4Affected
Red Hat Ansible Automation Platform 2Red Hat
    Red Hat Ansible Automation Platform 2Red Hat
      Red Hat Enterprise Linux 10Red Hat
        Red Hat Enterprise Linux 8Red Hat
          Red Hat Enterprise Linux 8Red Hat
            Red Hat Enterprise Linux 9Red Hat
              Red Hat Enterprise Linux 9Red Hat

                References

                Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.