5.3medium
Reference count issue in _asyncio._swap_current_task()
- Severity
- 5.3medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.80% (higher than 53% of CVEs)
- Published
- Last changed
- Assigned by
- mitre
- Also known as
- PSF-2023-7BIT-PYTHON-2023-38898
Description
An issue in Python cpython v.3.7 allows an attacker to obtain sensitive information via the _asyncio._swap_current_task component. NOTE: this is disputed by the vendor because (1) neither 3.7 nor any other release is affected (it is a bug in some 3.12 pre-releases); (2) there are no common scenarios in which an adversary can call _asyncio._swap_current_task but does not already have the ability to call arbitrary functions; and (3) there are no common scenarios in which sensitive information, which is not already accessible to an adversary, becomes accessible through this bug.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Unspecified product | n/a | CVE List |
| https://github.com/python/cpython | from a474e04388c2ef6aca75c26cb70a1b6200235feb before d2cbb6e918d9ea39f0dd44acb53270f2dac07454, before 9e6f8d46150c1a0af09d68ce63c603cf321994aa | Python Software Foundation |
| python python | 3.13.0 | NVD |
| python (Bitnami) | from 3.13.0-alpha0 up to 3.13.0-alpha0 | Bitnami Vulnerability Database |
All scores
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N |
| Bitnami Vulnerability Database | medium rating |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
An issue in Python cpython v.3.7 allows an attacker to obtain sensitive information via the _asyncio._swap_current_task component. NOTE: this is disputed by the vendor because (1) neither 3.7 nor any other release is affected (it is a bug in some 3.12 pre-releases); (2) there are no common scenarios in which an adversary can call _asyncio._swap_current_task but does not already have the ability to call arbitrary functions; and (3) there are no common scenarios in which sensitive information, which is not already accessible to an adversary, becomes accessible through this bug.
Python Software Foundation
An issue in Python CPython 3.12.0b1 allows an attacker to obtain sensitive information via the _asyncio._swap_current_task() component.
NVD (es)
Un problema en Python cpython v.3.7 permite a un atacante obtener información sensible a través del componente _asyncio._swap_current_task. NOTA: esto es discutido por el vendedor porque (1) ni la versión 3.7 ni ninguna otra está afectada (es un fallo en algunas versiones previas a la 3.12); (2) no hay escenarios comunes en los que un adversario pueda llamar a _asyncio._swap_current_task pero no tenga ya la capacidad de llamar a funciones arbitrarias; y (3) no hay escenarios comunes en los que información sensible, que no esté ya accesible para un adversario, se vuelva accesible a través de este fallo.
References
| https://github.com/python/cpython/issues/105987 | exploit, issue-tracking, patch, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2023-38898 | advisory | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2023-38898 changed 2024-10-08 | CVE Terms of Use |
| Python Software Foundation | PSF-2023-7 changed 2026-05-22 | CC-BY-4.0 |
| NVD | CVE-2023-38898 changed 2026-06-17 | Public domain |
| Bitnami Vulnerability Database | BIT-PYTHON-2023-38898 changed 2026-05-22 | Apache-2.0 |