Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ RUSTSEC-2026-0177 — pyo3

⚪ Unknown ✅ No Known Exploit OSV
N/A
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

Missing Sync bound on PyCFunction::new_closure closures

PyCFunction::new_closure (and the temporary new_closure_bound complement in

the 0.21–0.22 series) required the supplied closure to be Send + 'static but

not Sync. The resulting PyCFunction is a Python callable that can be

invoked from any Python thread, which means the closure may be called

concurrently from multiple threads, and needs a Sync bound to prevent

possible data races.

The problem exists under all Python versions but is particularly vulnerable under

the newer free-threaded Python variant, which do not have serial execution

imposed by the Global Interpreter Lock. Under releases protected by the GIL,

the ability to "detach" from the Python interpreter temporarily inside the closure

(e.g. by Python::detach) makes it possible for interleaved and/or concurrent

execution of various portions of the closure.

PyO3 0.29.0 added a Sync bound to close this thread-safety bug.

Affected software

RUSTSEC-2026-0177 is recorded against 1 package.

  • pyo3

Timeline and source

Published on 11 June 2026 and last revised on 13 June 2026. No public exploit is currently recorded for this entry. Record sourced from OSV.

References

crates.io (Package)
rustsec.org (Advisory)
github.com (Web)

Other advisories for this package

pyo3 has other advisories on record. If you are patching this one, these are worth checking on the same host:

Details

Severity Unknown
CVSS Score N/A
CVSS Vector N/A
CWE N/A
Public Exploit ✅ No
Source OSV
Published 2026-06-11
Updated 2026-08-20
Modified 2026-06-13
Fix URL N/A

Affected Packages

Software From version Fixed in
pyo3 — —

Free Vulnerability Check

Is your site affected by RUSTSEC-2026-0177?

BotEraser helps you identify potentially vulnerable plugins and themes by checking your installation against RUSTSEC-2026-0177 and other known CVE records.

Scan My Site Free →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesRustsecRustsec 2026
✓