{"id":"UBUNTU-CVE-2023-7158","details":"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.","modified":"2026-05-20T16:16:25.957683086Z","published":"2023-12-29T07:15:00Z","upstream":["CVE-2023-7158"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2023-7158"},{"type":"REPORT","url":"https://github.com/micropython/micropython/issues/13007"},{"type":"REPORT","url":"https://github.com/micropython/micropython/pull/13039"},{"type":"REPORT","url":"https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f"},{"type":"REPORT","url":"https://github.com/micropython/micropython/releases/tag/v1.22.0"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2023-7158"}],"affected":[{"package":{"name":"giac","ecosystem":"Ubuntu:18.04:LTS","purl":"pkg:deb/ubuntu/giac?arch=source&distro=bionic"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libgiac0","binary_version":"1.2.3.57+dfsg1-2build3"},{"binary_name":"xcas","binary_version":"1.2.3.57+dfsg1-2build3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7158.json"}},{"package":{"name":"giac","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/giac?arch=source&distro=focal"},"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"],"ecosystem_specific":{"binaries":[{"binary_version":"1.5.0.85+dfsg1-3","binary_name":"libgiac0"},{"binary_name":"xcas","binary_version":"1.5.0.85+dfsg1-3"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7158.json"}},{"package":{"name":"giac","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/giac?arch=source&distro=jammy"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libgiac0","binary_version":"1.7.0.39+dfsg2-1build2"},{"binary_version":"1.7.0.39+dfsg2-1build2","binary_name":"xcas"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7158.json"}},{"package":{"name":"giac","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/giac?arch=source&distro=noble"},"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"],"ecosystem_specific":{"binaries":[{"binary_name":"libgiac0t64","binary_version":"1.9.0.93+dfsg2-2"},{"binary_name":"xcas","binary_version":"1.9.0.93+dfsg2-2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7158.json"}},{"package":{"name":"giac","ecosystem":"Ubuntu:25.10","purl":"pkg:deb/ubuntu/giac?arch=source&distro=questing"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0.93+dfsg2-3build1"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.0.93+dfsg2-3build1","binary_name":"libgiac0t64"},{"binary_name":"xcas","binary_version":"1.9.0.93+dfsg2-3build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7158.json"}},{"package":{"name":"giac","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/giac?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.9.0.93+dfsg2-3build1","1.9.0.93+dfsg2-3build2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.9.0.93+dfsg2-3build2","binary_name":"libgiac0t64"},{"binary_name":"xcas","binary_version":"1.9.0.93+dfsg2-3build2"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-7158.json"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L"},{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},{"type":"Ubuntu","score":"medium"}]}