{"answers":{"affected":"3 open source packages ship an affected version, including pyo3.","exploited":"There is no known exploitation of GHSA-vxcf-c7mx-pg53 in the wild and no public exploit code.","fix":"Upgrade pyo3 to 0.23.3 or later.","what":"GHSA-vxcf-c7mx-pg53 is a vulnerability in pyo3, published on 4 Dec 2024."},"fix_prompt":"Check this codebase for GHSA-vxcf-c7mx-pg53 and fix it if it is affected.\n\nWhat it is: GHSA-vxcf-c7mx-pg53 is a vulnerability in pyo3, published on 4 Dec 2024. \nExploitation: There is no known exploitation of GHSA-vxcf-c7mx-pg53 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- pyo3 (crates.io): affected from 0.23.0; fixed in 0.23.3\n- pyo3 (crates.io): affected from 0.23.0; fixed in 0.23.3\n- pyo3 (crates.io): affected from 0.23.0; fixed in 0.23.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/GHSA-vxcf-c7mx-pg53/ (Markdown: https://insights.sbomify.com/GHSA-vxcf-c7mx-pg53/index.md)","id":"GHSA-vxcf-c7mx-pg53","markdown":"https://insights.sbomify.com/GHSA-vxcf-c7mx-pg53/index.md","name":"GHSA-vxcf-c7mx-pg53","record":{"aliases":["RUSTSEC-2024-0409"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["denial_of_service"],"network_reachable":"unknown","non_default_config":true,"product_category":"Python binding library","requires_auth":"none","summary":"Incorrect build configuration causes compiled Python wheels to crash the interpreter, requiring users to upgrade PyO3 and rebuild artifacts.","user_interaction":"not_required","vuln_class":"other"},"analysis_generated_by":"qwen3.8-flash-next","assigner":null,"cpe":[],"cvss":{"score":null,"severity":null,"source":null,"vector":null,"version":null},"cwes":[],"description":"In PyO3 0.23.0 the `PYO3_CONFIG_FILE` environment variable used to configure builds regressed such that changing the environment variable would no longer trigger PyO3 to reconfigure and recompile. In combination with workflows using tools such as `maturin` to build for multiple versions in a single build, this leads to Python wheels being compiled against the wrong Python API version.\n\nAll users who distribute artefacts for multiple Python versions are encouraged to update and rebuild with PyO3 0.23.3. Affected wheels produced from PyO3 0.23.0 through 0.23.2 are highly unstable and will crash the Python interpreter in unpredictable ways.","ecosystems":["crates.io"],"exploits":{"exploitdb":null,"first_seen":null,"github_poc":null,"max_poc_stars":null,"metasploit":null,"nuclei":null,"refs":[],"tier":null},"has_fix":true,"headline":"Build corruption when using `PYO3_CONFIG_FILE` environment variable","id":"GHSA-vxcf-c7mx-pg53","indexable":true,"kev":null,"kind":"advisory","links":{"ecosystem":"crates.io","product":null,"products":[],"type":"other","year":"2024"},"n_packages":3,"n_references":null,"packages":[{"ecosystem":"crates.io","fixed":["0.23.3"],"introduced":["0.23.0"],"last_affected":[],"package":"pyo3","purl":null,"source":"GHSA-vxcf-c7mx-pg53"},{"ecosystem":"crates.io","fixed":["0.23.3"],"introduced":["0.23.0"],"last_affected":[],"package":"pyo3","purl":"pkg:cargo/pyo3","source":"GHSA-vxcf-c7mx-pg53"},{"ecosystem":"crates.io","fixed":["0.23.3"],"introduced":["0.23.0"],"last_affected":[],"package":"pyo3","purl":"pkg:cargo/pyo3","source":"RUSTSEC-2024-0409"}],"products":null,"published":"2024-12-04","related":[],"sources":[{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"open","licence":"CC0 1.0","name":"RustSec","prefix":"RUSTSEC"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":null,"updated":null,"vendors":null},"summary":"Incorrect build configuration causes compiled Python wheels to crash the interpreter, requiring users to upgrade PyO3 and rebuild artifacts.","url":"https://insights.sbomify.com/GHSA-vxcf-c7mx-pg53/"}