Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CVE-2024-0397
Summary
A defect was discovered in the Python "ssl" module where there is a memory race condition with the "ssl.SSLContext" methods "cert_store_stats()" and "get_ca_certs()". The race condition can be triggered if the methods are called at the same time as certificates are loaded into the "SSLContext", such as during the TLS handshake with a certificate directory configured. This issue affects cpython package versions through 3.7.17, 3.8.0a1 through 3.8.19, 3.9.0a1 through 3.9.19, 3.10.0a1 through 3.10.13, 3.11.0a1 through 3.11.8, 3.12.0a1 through 3.12.2 and 3.13.0a1 through 3.13.0a4.
- HIGH
- NETWORK
- NONE
- UNCHANGED
- NONE
- NONE
- HIGH
- HIGH
CWE-362 - Race Condition
A race condition occurs in a shared memory program when two threads/processes access the same shared memory data, and at least one thread executes a write operation. This vulnerability manipulates the time to check vs. time to use (TOC/TOU) gap between the threads in the critical section to cause disorientation in the shared data. The impact can vary from compromising the confidentiality of the system to causing the system to crash or to execute arbitrary code.
References
Advisory Timeline
- Published