pyo3 is vulnerable to Buffer Overflow
30
CVE Score
Low
Buffer Overflow
Affected versions of this package are vulnerable to an out-of-bounds read in PyString::from_object, which directly forwards &str arguments to the Python C API without ensuring a null-terminated string. This could cause the Python interpreter to read beyond the allocated data, potentially leaking sensitive information in an exception message. In PyO3 0.24.1, this issue is mitigated by allocating a CString to ensure proper null termination, and PyO3 0.25 is expected to introduce an alternative API that accepts &CStr arguments.
Upgrade the pyo3 library to the patch version.
You are affected if you are using a version that falls within the vulnerable range.
0.21.0 - 0.24.0
Fixed in 0.24.1pyo3 is vulnerable to Buffer Overflow in versions 0.21.0 - 0.24.0.
Secure your code, cloud, and runtime in one central system. Connect a repo to discover what the reasoning agents find in your codebase.
No credit card required | Scan results in 32 seconds.
I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.