RUSTSEC-2023-0076
`cpython` is unmaintained
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Projects that depend on crates.io package cpython (>= 0.0.0-0)
Vulnerability facts
- Affected
- cpython >= 0.0.0-0
- Fixed in
- No fix listed yet
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Unknown
- CVSS
- Not scored yet
- Modified
Description
The `cpython` crate and the underlying `python3-sys` and `python27-sys` crates have been marked as [no longer actively maintained] by the developer. There are also open issues for unsound code that is currently in these crates: - [cpython#265]: Using some string functions causes segmentation faults on big-endian architectures. Due to incorrect bitfield manipulations, it is possible to create invalid Python objects that crash the Python interpreter. - [cpython#294]: Python 3.12 is not supported. Due to ABI changes in Python 3.12, calling some string functions will result in invalid Python objects and / or cause out-of-bounds memory accesses. ## Recommended alternatives - [`pyo3`] (version 0.19.2 and newer) The `pyo3` crate is actively maintained. Preliminary support for Python 3.12 was added in version 0.19.2, and version 0.20.0 was released with full support for Python 3.12. Both versions implement string functions correctly on big-endian architectures. The endianness issue affecting the `cpython` crate was fixed in recent versions of `pyo3`. [no longer actively maintained]: https://github.com/dgrunwald/rust-cpython/commit/e815555 [cpython#265]: https://github.com/dgrunwald/rust-cpython/issues/265 [cpython#294]: https://github.com/dgrunwald/rust-cpython/issues/294 [`pyo3`]: https://crates.io/crates/pyo3
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| crates.io cpython | >= 0.0.0-0 | — | osv |
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 RUSTSEC-2023-0076. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/RUSTSEC-2023-0076.md Affected: cpython >= 0.0.0-0 Fixed in: no fixed version listed yet Steps: 1. Search this machine and project for cpython (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
Vendor advisories
FAQ
Is RUSTSEC-2023-0076 being exploited?
There is no confirmed exploitation: RUSTSEC-2023-0076 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known.
How serious is RUSTSEC-2023-0076?
It has no CVSS score yet. Unknown.
Which versions are affected by RUSTSEC-2023-0076?
cpython >= 0.0.0-0.
Is there a fix for RUSTSEC-2023-0076?
No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by RUSTSEC-2023-0076?
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.