{"id":"CVE-2023-7152","aliases":["CVE-2023-7152","PYSEC-2023-256","PYSEC-2023-257","PYSEC-2023-258","PYSEC-2023-259"],"related":[],"kind":"vulnerability","state":"published","title":"MicroPython modselect.c poll_set_add_fd use after free","summary":"A vulnerability, which was classified as critical, has been found in MicroPython 1.21.0/1.22.0-preview. Affected by this issue is the function poll_set_add_fd of the file extmod/modselect.c. The manipulation leads to use after free. The exploit has been disclosed to the public and may be used. The patch is identified as 8b24aa36ba978eafc6114b6798b47b7bfecdca26. It is recommended to apply a patch to fix this issue. VDB-249158 is the identifier assigned to this vulnerability.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability, which was classified as critical, has been found in MicroPython 1.21.0/1.22.0-preview. Affected by this issue is the function poll_set_add_fd of the file extmod/modselect.c. The manipulation leads to use after free. The exploit has been disclosed to the public and may be used. The patch is identified as 8b24aa36ba978eafc6114b6798b47b7bfecdca26. It is recommended to apply a patch to fix this issue. VDB-249158 is the identifier assigned to this vulnerability.","source":"cvelist"},{"lang":"de","text":"Eine kritische Schwachstelle wurde in MicroPython 1.21.0/1.22.0-preview entdeckt. Betroffen davon ist die Funktion poll_set_add_fd der Datei extmod/modselect.c. Durch Manipulieren mit unbekannten Daten kann eine use after free-Schwachstelle ausgenutzt werden. Der Exploit steht zur öffentlichen Verfügung. Der Patch wird als 8b24aa36ba978eafc6114b6798b47b7bfecdca26 bezeichnet. Als bestmögliche Massnahme wird Patching empfohlen.","source":"cvelist"},{"lang":"es","text":"Una vulnerabilidad fue encontrada en MicroPython 1.21.0/1.22.0-preview y clasificada como crítica. La función poll_set_add_fd del archivo extmod/modselect.c es afectada por esta vulnerabilidad. La manipulación conduce a use after free. La explotación ha sido divulgada al público y puede utilizarse. El parche se identifica como 8b24aa36ba978eafc6114b6798b47b7bfecdca26. Se recomienda aplicar un parche para solucionar este problema. VDB-249158 es el identificador asignado a esta vulnerabilidad.","source":"nvd"}],"published":"2023-12-29T04:31:04.054Z","modified":"2026-06-17T06:52:11.407Z","severity":{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"VulDB","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:A/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":5.5,"rating":"MEDIUM"},{"scorer":"VulDB","scheme":"CVSS:2.0","vector":"AV:A/AC:L/Au:S/C:P/I:P/A:P","score":5.2,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"version":"1.21.0","status":"affected"},{"version":"1.22.0-preview","status":"affected"}],"product":"MicroPython","source":"cvelist"},{"ranges":[{"status":"affected","version":"1.21.0"},{"status":"affected","version":"1.22.0"}],"vendor":"micropython","product":"micropython","cpe":"cpe:2.3:a:micropython:micropython:1.21.0:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"8b24aa36ba978eafc6114b6798b47b7bfecdca26"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-copy","purl":"pkg:pypi/micropython-copy","repo":"https://github.com/jimmo/micropython","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"8b24aa36ba978eafc6114b6798b47b7bfecdca26"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-io","purl":"pkg:pypi/micropython-io","repo":"https://github.com/jimmo/micropython","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"8b24aa36ba978eafc6114b6798b47b7bfecdca26"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-os","purl":"pkg:pypi/micropython-os","repo":"https://github.com/jimmo/micropython","source":"pysec"},{"ranges":[{"type":"git","introduced":"0","status":"affected","fixed":"8b24aa36ba978eafc6114b6798b47b7bfecdca26"},{"type":"ecosystem","introduced":"0","status":"affected"}],"ecosystem":"PyPI","package":"micropython-select","purl":"pkg:pypi/micropython-select","repo":"https://github.com/jimmo/micropython","source":"pysec"}],"references":[{"url":"https://vuldb.com/?id.249158","tags":["advisory","technical-description","third-party-advisory","vdb-entry","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://vuldb.com/?ctiid.249158","tags":["advisory","permissions-required","signature","third-party-advisory","vdb-entry","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/micropython/micropython/issues/12887","tags":["exploit","issue-tracking","report","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://github.com/jimmo/micropython/commit/8b24aa36ba978eafc6114b6798b47b7bfecdca26","tags":["fix","patch","x-transferred"],"sources":["cvelist","nvd","pysec"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/","tags":["x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/","tags":["x-transferred"],"sources":["cvelist","nvd"]}],"credits":["Junwha Hong","Wonil Jang","qbit (VulDB User)"],"assigner":"VulDB","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-7152","url":"https://www.cve.org/CVERecord?id=CVE-2023-7152","licence":"CVE Terms of Use","modified":"2025-02-13T17:27:04.101Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-7152","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-7152","licence":"Public domain","modified":"2026-06-17T06:52:11.407Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-256","url":"https://osv.dev/vulnerability/PYSEC-2023-256","licence":"CC-BY-4.0","modified":"2024-02-29T07:56:27.309Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-257","url":"https://osv.dev/vulnerability/PYSEC-2023-257","licence":"CC-BY-4.0","modified":"2024-02-29T07:56:27.309Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-258","url":"https://osv.dev/vulnerability/PYSEC-2023-258","licence":"CC-BY-4.0","modified":"2024-02-29T07:56:27.309Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-259","url":"https://osv.dev/vulnerability/PYSEC-2023-259","licence":"CC-BY-4.0","modified":"2024-02-29T07:56:27.309Z"}],"updatedAt":"2026-11-25T22:58:31.731Z","epss":{"score":0.00892,"percentile":0.6049,"date":"2026-12-01T12:00:22.000Z"}}