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.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| — | MicroPython | 1.22.2 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | micropython | 1.24.0+ds-1 | — |
| Debian 13 | micropython | 1.24.0+ds-1 | — |
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu Pro 24.04 LTS | micropython | 1.22.1+ds-1ubuntu0.24.04.1~esm1 | USN-7472-1 |
| Ubuntu Pro 22.04 LTS | micropython | 1.17+ds-1.1ubuntu2+esm1 | USN-7472-1 |
| Ubuntu Pro 20.04 LTS | micropython | 1.12-1ubuntu0.1~esm1 | USN-7472-1 |
openSUSE
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| openSUSE Tumbleweed | micropython | 1.28.0-2.1 | openSUSE-SU-2026:10704-1 |
Affected packages
| Ecosystem | Package | Affected | Fixed | Record |
|---|---|---|---|---|
| PyPI | micropython-copy | <= 3.3.3.post3 | — | GHSA-pwwp-3q7j-9mx8 |
| PyPI | micropython-copy | all versions | — | PYSEC-2024-92 |
| PyPI | micropython-io | <= 0.1 | — | GHSA-pwwp-3q7j-9mx8 |
| PyPI | micropython-io | all versions | — | PYSEC-2024-94 |
Advisories 2
- openSUSE-SU-2026:10704-1 micropython-1.28.0-2.1 on GA media SUSE / openSUSE Security Updates · May 7, 2026
- USN-7472-1 micropython vulnerabilities Ubuntu Security Notices (USN) · Apr 27, 2026
References
- VDB-277765 | MicroPython objarray.c use after free vdb-entry
- VDB-277765 | CTI Indicators (IOB, IOC, IOA) signature permissions-required
- Submit #409316 | micropython v1.22.2 Use After Free third-party-advisory
- https://github.com/micropython/micropython/issues/13283 issue-tracking
- https://github.com/micropython/micropython/issues/13283#issuecomment-1918479709 issue-tracking
- https://github.com/micropython/micropython/commit/4bed614e707c0644c06e117f848fa12605c711cd patch
- https://github.com/micropython/micropython/releases/tag/v1.23.0 patch