Skip to main content
CVE-2024-9979VulnerabilityPublished Updated

CVE-2024-9979: pyo3 · Use After Free

Affects pyo3Source CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.2% chance of exploitation in 30 days – higher than 10% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 15 Oct 2024

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.

What to do

Affected software

ProductAffectedFixed in
crates.iopyo3/pyo3pkg:cargo/pyo3/pyo3Other threatsAffected
  • =0.22.0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

In the interim, developers should audit their use of weak Python references in PyO3 to avoid unsound borrowing patterns that lead to use-after-free conditions. Employing memory safety tools such as sanitizers (e.g., AddressSanitizer) during development and testing can help detect similar issues early. Restricting local access to systems running vulnerable PyO3 versions can reduce exploitation risk. Additionally, applying strict access controls and isolating development environments can limit the impact of potential exploitation. Monitoring for unusual crashes or memory corruption in applications using PyO3 is recommended. Finally, maintain awareness of updates from PyO3 maintainers and security advisories for timely patch application.

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.

References

Community reviews

Loading reviews…