Skip to content
FlawDB
Sign in
Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

GHSA-vxcf-c7mx-pg53

MEDIUM

Build corruption when using `PYO3_CONFIG_FILE` environment variable

Also known as RUSTSEC-2024-0409

Mitigation

  • Upgrade pyo3 to 0.23.3 or later.

Who should check

  • Projects that depend on crates.io package pyo3 (>= 0.23.0, < 0.23.3)

Vulnerability facts

Affected
pyo3 >= 0.23.0, < 0.23.3
Fixed in
0.23.3
Exploited in the wild
Not in CISA KEV
Public exploit / PoC
None known
Remote exploitation
Unknown
CVSS
Not scored yet
Published
Modified

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

Affected and fixed versions

Package / productAffectedFixedSource
crates.io pyo3>= 0.23.0, < 0.23.30.23.3osv

Check your systems with an agent

Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.

Check whether anything I run is affected by GHSA-vxcf-c7mx-pg53. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/GHSA-vxcf-c7mx-pg53.md
Affected: pyo3 >= 0.23.0, < 0.23.3
Fixed in: 0.23.3

Steps:
1. Search this machine and project for pyo3 (crates.io): dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.

References

FAQ

Is GHSA-vxcf-c7mx-pg53 being exploited?

There is no confirmed exploitation: GHSA-vxcf-c7mx-pg53 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.

How serious is GHSA-vxcf-c7mx-pg53?

It has no CVSS score yet. Unknown.

Which versions are affected by GHSA-vxcf-c7mx-pg53?

pyo3 >= 0.23.0, < 0.23.3.

Is there a fix for GHSA-vxcf-c7mx-pg53?

Yes. Fixed in 0.23.3. Upgrade pyo3 to 0.23.3 or later.

How do I check if I'm affected by GHSA-vxcf-c7mx-pg53?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

Sponsors