# CVE-2023-38898: Reference count issue in _asyncio._swap_current_task()

- Severity: Medium 5.3 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.80%, higher than 53% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2023-08-15T00:00:00.000Z
- Modified: 2026-06-17T06:11:16.967Z
- Also known as: PSF-2023-7, BIT-PYTHON-2023-38898
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: mitre

## 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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- https://github.com/python/cpython: from a474e04388c2ef6aca75c26cb70a1b6200235feb before d2cbb6e918d9ea39f0dd44acb53270f2dac07454; before 9e6f8d46150c1a0af09d68ce63c603cf321994aa
- python python: 3.13.0
- python (Bitnami): from 3.13.0-alpha0 up to 3.13.0-alpha0

## Every score

- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/python/cpython/issues/105987> (exploit, issue-tracking, patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-38898> (advisory)

## Sources

- CVE List: [CVE-2023-38898](https://www.cve.org/CVERecord?id=CVE-2023-38898), CVE Terms of Use, modified 2024-10-08
- Python Software Foundation: [PSF-2023-7](https://osv.dev/vulnerability/PSF-2023-7), CC-BY-4.0, modified 2026-05-22
- NVD: [CVE-2023-38898](https://nvd.nist.gov/vuln/detail/CVE-2023-38898), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-PYTHON-2023-38898](https://osv.dev/vulnerability/BIT-PYTHON-2023-38898), Apache-2.0, modified 2026-05-22

---

Page: https://cve.day/CVE-2023-38898 · Whole record: https://cve.day/CVE-2023-38898.json · Rebuilt by cve.day 2026-11-25T22:58:27.140Z
