{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1",
    "cveMetadata": {
        "cveId": "CVE-2023-7158",
        "assignerOrgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
        "state": "PUBLISHED",
        "assignerShortName": "VulDB",
        "dateReserved": "2023-12-28T14:29:26.171Z",
        "datePublished": "2023-12-29T06:31:04.450Z",
        "dateUpdated": "2024-08-02T08:50:08.366Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "1af790b2-7ee1-4545-860a-a788eba489b5",
                "shortName": "VulDB",
                "dateUpdated": "2023-12-29T06:31:04.450Z"
            },
            "title": "MicroPython objslice.c slice_indices heap-based overflow",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "type": "CWE",
                            "cweId": "CWE-122",
                            "lang": "en",
                            "description": "CWE-122 Heap-based Buffer Overflow"
                        }
                    ]
                }
            ],
            "affected": [
                {
                    "vendor": "n/a",
                    "product": "MicroPython",
                    "versions": [
                        {
                            "version": "1.13.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.14.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.15.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.16.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.17.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.18.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.19.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.20.0",
                            "status": "affected"
                        },
                        {
                            "version": "1.21.0",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "descriptions": [
                {
                    "lang": "en",
                    "value": "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."
                },
                {
                    "lang": "de",
                    "value": "Es wurde eine kritische Schwachstelle in MicroPython bis 1.21.0 ausgemacht. Es betrifft die Funktion slice_indices der Datei objslice.c. Durch Manipulieren mit unbekannten Daten kann eine heap-based buffer overflow-Schwachstelle ausgenutzt werden. Der Angriff kann über das Netzwerk erfolgen. Der Exploit steht zur öffentlichen Verfügung. Ein Aktualisieren auf die Version 1.22.0 vermag dieses Problem zu lösen. Als bestmögliche Massnahme wird das Einspielen eines Upgrades empfohlen."
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "baseScore": 7.3,
                        "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
                        "baseSeverity": "HIGH"
                    }
                },
                {
                    "cvssV3_0": {
                        "version": "3.0",
                        "baseScore": 7.3,
                        "vectorString": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:L",
                        "baseSeverity": "HIGH"
                    }
                },
                {
                    "cvssV2_0": {
                        "version": "2.0",
                        "baseScore": 7.5,
                        "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P"
                    }
                }
            ],
            "timeline": [
                {
                    "time": "2023-12-28T00:00:00.000Z",
                    "lang": "en",
                    "value": "Advisory disclosed"
                },
                {
                    "time": "2023-12-28T01:00:00.000Z",
                    "lang": "en",
                    "value": "VulDB entry created"
                },
                {
                    "time": "2023-12-28T15:34:37.000Z",
                    "lang": "en",
                    "value": "VulDB entry last update"
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "value": "qbit (VulDB User)",
                    "type": "analyst"
                }
            ],
            "references": [
                {
                    "url": "https://vuldb.com/?id.249180",
                    "tags": [
                        "vdb-entry",
                        "technical-description"
                    ]
                },
                {
                    "url": "https://vuldb.com/?ctiid.249180",
                    "tags": [
                        "signature",
                        "permissions-required"
                    ]
                },
                {
                    "url": "https://github.com/micropython/micropython/issues/13007",
                    "tags": [
                        "exploit",
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://github.com/micropython/micropython/pull/13039",
                    "tags": [
                        "issue-tracking"
                    ]
                },
                {
                    "url": "https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f",
                    "tags": [
                        "issue-tracking",
                        "patch"
                    ]
                },
                {
                    "url": "https://github.com/micropython/micropython/releases/tag/v1.22.0",
                    "tags": [
                        "patch"
                    ]
                },
                {
                    "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/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/"
                },
                {
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/"
                }
            ]
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-02T08:50:08.366Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "url": "https://vuldb.com/?id.249180",
                        "tags": [
                            "vdb-entry",
                            "technical-description",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://vuldb.com/?ctiid.249180",
                        "tags": [
                            "signature",
                            "permissions-required",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/micropython/micropython/issues/13007",
                        "tags": [
                            "exploit",
                            "issue-tracking",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/micropython/micropython/pull/13039",
                        "tags": [
                            "issue-tracking",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/micropython/micropython/pull/13039/commits/f397a3ec318f3ad05aa287764ae7cef32202380f",
                        "tags": [
                            "issue-tracking",
                            "patch",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://github.com/micropython/micropython/releases/tag/v1.22.0",
                        "tags": [
                            "patch",
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/TEK46QAJOXXDZOWOIE2YACUOCZFWOBCK/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4E2HYWCZB5R4SHY4SZZZSFDMD64N4SOZ/",
                        "tags": [
                            "x_transferred"
                        ]
                    },
                    {
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/D3WWY5JY4RTJE25APB4REGDUDPATG6H7/",
                        "tags": [
                            "x_transferred"
                        ]
                    }
                ]
            }
        ]
    }
}