{"id":"CVE-2024-8947","aliases":["DEBIAN-CVE-2024-8947","EUVD-2024-0103","GHSA-pwwp-3q7j-9mx8","PYSEC-2024-92","PYSEC-2024-94","UBUNTU-CVE-2024-8947","USN-7472-1","openSUSE-SU-2026:10704-1"],"status":"published","title":"MicroPython objarray.c use after free","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","severity":{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01021,"percentile":0.63657,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-416"],"published":"2024-09-17T18:31:06Z","modified":"2026-11-02T12:03:16Z","fixes":[{"ecosystem":"Debian:13","package":"micropython","fixed_in":["1.24.0+ds-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"micropython","fixed_in":["1.24.0+ds-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:20.04:LTS","package":"micropython","fixed_in":["1.12-1ubuntu0.1~esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:22.04:LTS","package":"micropython","fixed_in":["1.17+ds-1.1ubuntu2+esm1"],"sources":["osv"]},{"ecosystem":"Ubuntu:Pro:24.04:LTS","package":"micropython","fixed_in":["1.22.1+ds-1ubuntu0.24.04.1~esm1"],"sources":["osv"]},{"ecosystem":"openSUSE:Tumbleweed","package":"micropython","fixed_in":["1.28.0-2.1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"micropython-copy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.3.3.post3"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"micropython-io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.24.0+ds-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.24.0+ds-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"micropython-copy","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"3.3.3.post3"}]}],"versions":["0.0.1","0.0.2","3.3.3-2","3.3.3.post3"]},{"source":"osv","ecosystem":"PyPI","package":"micropython-io","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"last_affected":"0.1"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.1"]},{"source":"osv","ecosystem":"PyPI","package":"micropython-copy","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"4bed614e707c0644c06e117f848fa12605c711cd"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0.1","0.0.2","3.3.3-2","3.3.3.post3"]},{"source":"osv","ecosystem":"PyPI","package":"micropython-io","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"4bed614e707c0644c06e117f848fa12605c711cd"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.0.1","0.0.2","0.0.3","0.1","v1.22.0","v1.23.0-preview","v1.22.0-preview","v1.21.0","v1.20.0","v1.19.1","v1.19","v1.18","v1.17","v1.16","v1.15","v1.14","v1.13","v1.12","v1.11","v1.10","v1.9.4","v1.9.3","v1.9.2","v1.9.1","v1.9","v1.8.7","v1.8.6","v1.8.5","v1.8.4","v1.8.3","v1.8.2","v1.8.1","v1.8","v1.7","v1.6","v1.5.2","v1.5.1","v1.5","v1.4.6","v1.4.5","v1.4.4","v1.4.3","v1.4.2","v1.4.1","v1.4","v1.3.10","v1.3.9","v1.3.8","v1.3.7","v1.3.6","v1.3.5","v1.3.4","v1.3.3","v1.3.2","v1.3.1","v1.3","v1.2","v1.1.1","v1.1","v1.0.1","v1.0","v1.0-rc1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12-1ubuntu0.1~esm1"}]}],"versions":["1.12-1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17+ds-1.1ubuntu2+esm1"}]}],"versions":["1.17+ds-1ubuntu1","1.17+ds-1.1","1.17+ds-1.1ubuntu2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.1+ds-1ubuntu0.24.04.1~esm1"}]}],"versions":["1.19.1+ds-1","1.22.1+ds-1","1.22.1+ds-1build1","1.22.1+ds-1build2"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.12-1ubuntu0.1~esm1"}]}],"versions":["1.12-1"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:22.04:LTS","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.17+ds-1.1ubuntu2+esm1"}]}],"versions":["1.17+ds-1ubuntu1","1.17+ds-1.1","1.17+ds-1.1ubuntu2"],"bundled":3},{"source":"osv","ecosystem":"Ubuntu:Pro:24.04:LTS","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.22.1+ds-1ubuntu0.24.04.1~esm1"}]}],"versions":["1.19.1+ds-1","1.22.1+ds-1","1.22.1+ds-1build1","1.22.1+ds-1build2"],"bundled":3},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"micropython","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"1.28.0-2.1"}]}]}],"products":[{"vendor":"micropython","product":"micropython"}],"references":[{"url":"https://vuldb.com/?id.277765","tags":["vdb-entry","Third Party Advisory","advisory","web","report"]},{"url":"https://vuldb.com/?ctiid.277765","tags":["signature","permissions-required","Permissions Required","report","web"]},{"url":"https://vuldb.com/?submit.409316","tags":["third-party-advisory","Third Party Advisory","advisory","web","report"]},{"url":"https://github.com/micropython/micropython/issues/13283","tags":["issue-tracking","Exploit","Third Party Advisory","report","web","evidence"]},{"url":"https://github.com/micropython/micropython/issues/13283#issuecomment-1918479709","tags":["issue-tracking","Exploit","Third Party Advisory","report","web","evidence"]},{"url":"https://github.com/micropython/micropython/commit/4bed614e707c0644c06e117f848fa12605c711cd","tags":["patch","Patch","fix","web","report"]},{"url":"https://github.com/micropython/micropython/releases/tag/v1.23.0","tags":["patch","Release Notes","fix","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-8947","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/micropython-copy/PYSEC-2024-92.yaml","tags":["web"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/micropython-io/PYSEC-2024-94.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-pwwp-3q7j-9mx8","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/8xxx/CVE-2024-8947.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2024-8947","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2024-8947","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2024-8947","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-7472-1","tags":["advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-42553","tags":["report"]},{"url":"https://ubuntu.com/security/CVE-2024-8946","tags":["report"]},{"url":"","tags":["advisory"]},{"url":"https://www.suse.com/security/cve/CVE-2024-8947","tags":["web"]}],"sources":{"cve":[{"id":"CVE-2024-8947","title":"MicroPython objarray.c use after free","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T18:31:06.916Z","modified":"2024-09-17T20:11:29.093Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium","assessor":"cna"},{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna"},{"version":"3.0","score":5.6,"vector":"CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"cna"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","assessor":"cna"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:34:09.216761Z"}],"euvd":[{"id":"EUVD-2024-0103","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T18:31:06Z","modified":"2024-09-17T20:11:29Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-03T00:28:21.470786Z"}],"ghsa":[{"id":"GHSA-pwwp-3q7j-9mx8","title":"Use After Free in MicroPython","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T21:30:32Z","modified":"2024-09-25T18:18:17Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"},{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:38:06.29677Z"}],"nvd":[{"id":"CVE-2024-8947","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T19:15:29.483Z","modified":"2026-06-17T08:23:36.64Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium","assessor":"secondary"},{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":5.1,"vector":"AV:N/AC:H/Au:N/C:P/I:P/A:P","level":"medium","assessor":"secondary"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T14:10:26.717759Z"}],"osv":[{"id":"CVE-2024-8947","title":"MicroPython objarray.c use after free","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T18:31:06.916Z","modified":"2026-10-28T10:42:12.731539055Z","cvss":[{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:44:45.712478Z"},{"id":"DEBIAN-CVE-2024-8947","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T19:15:29.483Z","modified":"2026-11-02T12:03:16.024937333Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:44.747956Z"},{"id":"GHSA-pwwp-3q7j-9mx8","title":"Use After Free in MicroPython","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T21:30:32Z","modified":"2024-09-25T18:27:01.853486Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","level":"medium"}],"cwes":["CWE-416"],"updated_at":"2026-11-02T15:46:53.700556Z"},{"id":"PYSEC-2024-92","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T19:15:00Z","modified":"2024-09-25T18:27:01.853486Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:54.242332Z"},{"id":"PYSEC-2024-94","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T19:15:00Z","modified":"2026-06-10T17:01:26.494949131Z","cvss":[{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:52:54.242332Z"},{"id":"UBUNTU-CVE-2024-8947","description":"A vulnerability was found in MicroPython 1.22.2. It has been declared as critical. Affected by this vulnerability is an unknown functionality of the file py/objarray.c. The manipulation leads to use after free. The attack can be launched remotely. The complexity of an attack is rather high. The exploitation appears to be difficult. Upgrading to version 1.23.0 is able to address this issue. The identifier of the patch is 4bed614e707c0644c06e117f848fa12605c711cd. It is recommended to upgrade the affected component. In micropython objarray component, when a bytes object is resized and copied into itself, it may reference memory that has already been freed.","status":"published","published":"2024-09-17T19:15:00Z","modified":"2026-02-04T04:28:36.335994Z","cvss":[{"version":"3.1","score":5.6,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L","level":"medium"},{"version":"3.1","score":8.1,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"high"},{"version":"4.0","score":6.3,"vector":"CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N","level":"medium"}],"updated_at":"2026-11-02T16:55:18.664792Z"},{"id":"openSUSE-SU-2026:10704-1","title":"micropython-1.28.0-2.1 on GA media","description":"These are all security issues fixed in the micropython-1.28.0-2.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2026-05-06T00:00:00Z","modified":"2026-05-07T08:47:47.438027Z","updated_at":"2026-11-02T16:58:38.415593Z"},{"id":"USN-7472-1","title":"micropython vulnerabilities","description":"Junwha Hong and Wonil Jang discovered that Micropython incorrectly handled\nthe length of a buffer in mp_vfs_umount, leading to a heap-based buffer \noverflow vulnerability. If a user or automated system were tricked into\nopening a specially crafted file, an attacker could possibly use this issue\nto cause a denial of service or possibly execute arbitrary code.\n(CVE-2024-8946)\n\n\nJunwha Hong and Wonil Jang discovered that Micropython incorrectly handled\nmemory, leading to a use-after-free vulnerability under certain \ncircumstances. If a user or automated system were tricked into opening a \nspecially crafted file, an attacker could possibly use this issue to\ncause a denial of service or possibly execute arbitrary code. \n(CVE-2024-8947)\n\nIt was discovered that Middleware USB Host MCU Component incorrectly\nhandled memory, leading to a buffer overflow vulnerability, If a user or \nautomated system were tricked into opening a specially crafted file, an \nattacker could possibly use this issue to cause a denial of service or\npossibly execute arbitrary code. (CVE-2021-42553)\n","status":"published","published":"2025-05-01T13:04:26Z","modified":"2026-04-27T17:56:36.281355Z","updated_at":"2026-11-02T16:58:19.988474Z"}]}}
