Skip to content
Fencer Vulns
medium 5.3

CVE-2024-9979 json

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

published 2024-10-12 2 y ago modified 2026-11-05 3 d ago also GHSA-6jgw-rgmm-7cv6 , RUSTSEC-2024-0378 , EUVD-2024-2969

cvss
5.3
version 3.1, CNA
cisa kev
Not listed
not in CISA's catalog
epss
0.2%
EPSS 0.2% chance of exploitation in 30 days, percentile 10%
public exploits
0
none known

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.

Patch / fix

  • crates.io pyo3 0.22.4
  • rust-pyo3 Debian 14, Debian 13 0.22.5-1

debian advisories DEBIAN-CVE-2024-9979

Vendor advisories

What the vendors themselves say about their products: affected, fixed or not affected, and what to do.

red hat product security vex CVE-2024-9979 updated cvss 5.3

pyo3: Risk of use-after-free in `borrowed` reads from Python weak references

  • Red Hat Enterprise Linux 10 python-rpds-py
    affected: workaround, no fix planned “Will not fix”
  • Red Hat Ansible Automation Platform 2 python3.11-nh3, python3.11-rpds-py Red Hat Enterprise Linux 8 python3.11-cryptography, python3.12-cryptography Red Hat Enterprise Linux 9 python3.11-cryptography, python3.12-cryptography
    not affected: vulnerable code not present

Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf

CISA SSVC

Exploitation
none
Automatable
no
Technical impact
partial
Assessed
2 y ago

Exploit prediction

0.21% chance of exploitation in the next 30 days, higher than 10% of all scored CVEs (FIRST EPSS, 2026-11-08).

CVSS scores

assigned by version score vector
CNA 3.1 5.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
GitHub 3.1 5.3 CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Affected packages

ecosystem package affected fixed in
crates.io pyo3
>=0.22.0, <0.22.4
0.22.4

Affected products

  • 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

Classification

Weakness

References

Sources

Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.