Skip to main content
← All vulnerabilities
CVE-2024-9979GHSA-6JGW-RGMM-7CV6RUSTSEC-2024-0378

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

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.22.4
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: none
  • Automatable: no
  • Technical impact: partial

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: none · Automatable: no · Technical impact: partial

  3. Record last updated

Affected versions

  • pyo3

    From 0.22.0 · fixed in 0.22.4

  • python3.11-nh3

    Version range not reported

  • python3.11-rpds-py

    Version range not reported

  • python-rpds-py

    Version range not reported

  • python3.11-cryptography

    Version range not reported

  • python3.12-cryptography

    Version range not reported

  • python3.11-cryptography

    Version range not reported

  • python3.12-cryptography

    Version range not reported

  • pyo3crates.io

    From 0.22.0 · fixed in 0.22.4

References 5

access.redhat.com

bugzilla.redhat.com

crates.io

GitHub · PyO3/pyo3

rustsec.org