{"id":"CVE-2023-7158","aliases":["EUVD-2023-59339","GHSA-x33q-m927-7mq6","UBUNTU-CVE-2023-7158","openSUSE-SU-2024:13566-1"],"status":"published","title":"MicroPython objslice.c slice_indices heap-based overflow","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","severity":{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01228,"percentile":0.69091,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-122","CWE-787"],"published":"2023-12-29T06:31:04Z","modified":"2026-10-28T02:31:01Z","fixes":[{"ecosystem":"openSUSE:Tumbleweed","package":"micropython","fixed_in":["1.22.0-1.1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Ubuntu:18.04:LTS","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.3.57+dfsg1-2build1","1.2.3.57+dfsg1-2build2","1.2.3.57+dfsg1-2build3"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.4.9.69+dfsg1-2build1","1.5.0.85+dfsg1-2","1.5.0.85+dfsg1-3"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.6.0.41+dfsg1-1","1.7.0.39+dfsg2-1build1","1.7.0.39+dfsg2-1build2"]},{"source":"osv","ecosystem":"Ubuntu:24.04:LTS","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0.35+dfsg2-1.1","1.9.0.59+dfsg2-1","1.9.0.69+dfsg2-1","1.9.0.93+dfsg2-2"]},{"source":"osv","ecosystem":"Ubuntu:25.10","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0.93+dfsg2-3build1"]},{"source":"osv","ecosystem":"Ubuntu:26.10","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0.93+dfsg2-3build2","1.9.0.93+dfsg2-4"]},{"source":"osv","ecosystem":"Ubuntu:26.04:LTS","package":"giac","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0.93+dfsg2-3build1","1.9.0.93+dfsg2-3build2"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.0-1.1"}]}]}],"products":[{"vendor":"micropython","product":"micropython"}],"references":[{"url":"https://vuldb.com/?id.249180","tags":["vdb-entry","technical-description","x_transferred","Third Party Advisory","advisory"]},{"url":"https://vuldb.com/?ctiid.249180","tags":["signature","permissions-required","x_transferred","Permissions Required","Third Party Advisory","report"]},{"url":"https://github.com/micropython/micropython/issues/13007","tags":["exploit","issue-tracking","x_transferred","Exploit","Issue Tracking","report"]},{"url":"https://github.com/micropython/micropython/pull/13039","tags":["issue-tracking","x_transferred","Issue Tracking","report"]},{"url":"https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f","tags":["issue-tracking","patch","x_transferred","Patch","fix","report"]},{"url":"https://github.com/micropython/micropython/releases/tag/v1.22.0","tags":["patch","x_transferred","Release Notes","fix","report"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/","tags":["x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/","tags":["x_transferred","web"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/","tags":["x_transferred","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-7158","tags":["advisory"]},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK"},{"url":"https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7"},{"url":"https://github.com/advisories/GHSA-x33q-m927-7mq6"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/7xxx/CVE-2023-7158.json","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2023-7158","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2023-7158","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2023-7158","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2023-7158","title":"MicroPython objslice.c slice_indices heap-based overflow","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","status":"published","published":"2023-12-29T06:31:04.45Z","modified":"2025-02-13T17:27:04.658Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"cna"},{"version":"3.0","score":7.3,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"cna"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","assessor":"cna"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T14:35:33.794347Z"}],"euvd":[{"id":"EUVD-2023-59339","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","status":"published","published":"2023-12-29T06:31:04Z","modified":"2025-02-13T17:27:04Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"updated_at":"2026-11-03T00:03:47.607822Z"}],"ghsa":[{"id":"GHSA-x33q-m927-7mq6","title":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical....","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","status":"published","published":"2023-12-29T09:30:25Z","modified":"2024-04-06T03:30:47Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:57:03.777371Z"}],"nvd":[{"id":"CVE-2023-7158","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","status":"published","published":"2023-12-29T07:15:11.06Z","modified":"2026-06-17T06:52:12.303Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high","assessor":"secondary"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"primary"},{"version":"2.0","score":7.5,"vector":"AV:N/AC:L/Au:N/C:P/I:P/A:P","level":"high","assessor":"secondary"}],"cwes":["CWE-122","CWE-787"],"updated_at":"2026-11-02T14:08:59.830468Z"}],"osv":[{"id":"CVE-2023-7158","title":"MicroPython objslice.c slice_indices heap-based overflow","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","status":"published","published":"2023-12-29T06:31:04.45Z","modified":"2026-10-28T02:31:01.977546497Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"}],"cwes":["CWE-122"],"updated_at":"2026-11-02T15:44:37.180532Z"},{"id":"UBUNTU-CVE-2023-7158","description":"A vulnerability was found in MicroPython up to 1.21.0. It has been classified as critical. Affected is the function slice_indices of the file objslice.c. The manipulation leads to heap-based buffer overflow. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.22.0 is able to address this issue. It is recommended to upgrade the affected component. The identifier of this vulnerability is VDB-249180.","status":"published","published":"2023-12-29T07:15:00Z","modified":"2026-10-17T12:56:43.062412029Z","cvss":[{"version":"3.1","score":7.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"high"},{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T16:54:41.555387Z"},{"id":"openSUSE-SU-2024:13566-1","title":"micropython-1.22.0-1.1 on GA media","description":"These are all security issues fixed in the micropython-1.22.0-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2025-05-07T18:15:35.713085Z","updated_at":"2026-11-02T16:58:36.327643Z"}]}}
