From f5f2c8079c0a9ebdb09fbd3951b643c5f7147d57 Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 15 Oct 2024 14:09:45 +0000 Subject: [PATCH] Publish GHSA-f8x4-f32r-w556 --- .../GHSA-f8x4-f32r-w556.json | 61 +++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 advisories/github-reviewed/2024/10/GHSA-f8x4-f32r-w556/GHSA-f8x4-f32r-w556.json diff --git a/advisories/github-reviewed/2024/10/GHSA-f8x4-f32r-w556/GHSA-f8x4-f32r-w556.json b/advisories/github-reviewed/2024/10/GHSA-f8x4-f32r-w556/GHSA-f8x4-f32r-w556.json new file mode 100644 index 00000000000..dddd0aa5492 --- /dev/null +++ b/advisories/github-reviewed/2024/10/GHSA-f8x4-f32r-w556/GHSA-f8x4-f32r-w556.json @@ -0,0 +1,61 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-f8x4-f32r-w556", + "modified": "2024-10-15T14:08:25Z", + "published": "2024-10-15T14:08:25Z", + "aliases": [ + + ], + "summary": "PyO3 has a risk of use-after-free in `borrowed` reads from Python weak references", + "details": "The family of functions to read \"borrowed\" values from Python weak references were fundamentally unsound, because the weak reference does itself not have ownership of the value. At any point the last strong reference could be cleared and the borrowed value would become dangling.\n\nIn PyO3 0.22.4 these functions have all been deprecated and patched to leak a strong reference as a mitigation. PyO3 0.23 will remove these functions entirely.\n\n", + "severity": [ + { + "type": "CVSS_V4", + "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N" + } + ], + "affected": [ + { + "package": { + "ecosystem": "crates.io", + "name": "pyo3" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0.22.0" + }, + { + "fixed": "0.22.4" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/PyO3/pyo3/pull/4590" + }, + { + "type": "PACKAGE", + "url": "https://github.com/PyO3/pyo3" + }, + { + "type": "WEB", + "url": "https://rustsec.org/advisories/RUSTSEC-2024-0378.html" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-416" + ], + "severity": "MODERATE", + "github_reviewed": true, + "github_reviewed_at": "2024-10-15T14:08:25Z", + "nvd_published_at": null + } +} \ No newline at end of file