Security mailing lists by PureSourceCode

RUSTSEC-2024-0409

MEDIUM

Build corruption when using `PYO3_CONFIG_FILE` environment variable

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.

All 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.

Published
4 Dec 2024
Last modified
28 Oct 2025
Also known as
GHSA-vxcf-c7mx-pg53
Sources
OSV GHSA-vxcf-c7mx-pg53JSONOSVJSON

Affected

SourceVendor / ecosystemProduct / packageAffected versionsFixed in
OSV crates.io pyo3 >= 0.23.0, < 0.23.3 0.23.3

References

History

  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 4 Dec 2024)
  • 25 Nov 2026 20:14 UTC · OSV: first stored (published 5 Dec 2024)
An unhandled error has occurred. Reload ×

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please retry or reload the page.