CVE-2026-1998
micropython runtime.c mp_import_all memory corruption
CVE-2026-1998 is a medium vulnerability (CVSS 4.8) in Micropython, published February 6, 2026. No source lists public exploit code. EPSS puts the chance of exploitation in the next 30 days at 0.22%, the 13th percentile. Fixed in micropython 1.26.1-2.1.
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
Attack profile
How easy it is to exploit
- Attack vector
- Local
- Complexity
- Low
- Privileges needed
- Low
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- None
- Availability
- Low
Exploit likelihood
What each source reports
CVE List Score used
4.8
micropython runtime.c mp_import_all memory corruption
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
CVE-2026-1998- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C - CVSS 3.0
- 3.3 Low
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L/E:P/RL:O/RC:C - CVSS 2.0
- 1.7
AV:L/AC:L/Au:S/C:N/I:N/A:P/E:POC/RL:OF/RC:C - Weakness
- CWE-119
- Updated
- 2026-11-02
EUVDEUVD-2026-5694
4.8
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
EUVD-2026-5694- CVSS 4.0
- 4.8 Medium
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - Updated
- 2026-11-02
GitHub AdvisoriesGHSA-p2vv-8mpq-57x2
1.9
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function...
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
GHSA-p2vv-8mpq-57x2- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/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 - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Weakness
- CWE-119, CWE-787
- Updated
- 2026-11-02
NVD
1.9
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
CVE-2026-1998- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P/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 - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 2.0
- 1.7 Low
AV:L/AC:L/Au:S/C:N/I:N/A:P - Weakness
- CWE-119, CWE-787
- Updated
- 2026-11-02
OSV
1.9
micropython runtime.c mp_import_all memory corruption
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
CVE-2026-1998- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - Weakness
- CWE-119
- Updated
- 2026-11-02
OSVDEBIAN-CVE-2026-1998
5.5
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
DEBIAN-CVE-2026-1998- CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - Updated
- 2026-11-02
OSVUBUNTU-CVE-2026-1998
1.9
A flaw has been found in micropython up to 1.27.0. This vulnerability affects the function mp_import_all of the file py/runtime.c. This manipulation causes memory corruption. The attack needs to be launched locally. The exploit has been published and may be used. Patch name: 570744d06c5ba9dba59b4c3f432ca4f0abd396b6. It is suggested to install a patch to address this issue.
- Record
UBUNTU-CVE-2026-1998- CVSS 4.0
- 1.9 Low
CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:P - CVSS 3.1
- 5.5 Medium
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H - CVSS 3.1
- 3.3 Low
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L - Updated
- 2026-11-02
OSVopenSUSE-SU-2026:10156-1 No score
micropython-1.26.1-2.1 on GA media
These are all security issues fixed in the micropython-1.26.1-2.1 package on the GA media of openSUSE Tumbleweed.
- Record
openSUSE-SU-2026:10156-1- Updated
- 2026-11-02
OSVopenSUSE-SU-2026:20199-1 No score
Security update for micropython
This update for micropython fixes the following issues:
Changes in micropython:
-
CVE-2026-1998: Fixed segmentation fault in
mp_map_lookupviamp_import_all(bsc#1257803). -
Version 1.26.1
- esp32: update esp_tinyusb component to v1.7.6
- tools: add an environment variable MICROPY_MAINTAINER_BUILD
- esp32: add IDF Component Lockfiles to git repo
- shared/tinyusb: fix hang from new tx_overwritabe_if_not_connected flag
- shared/tinyusb/mp_usbd_cdc: rewrite USB CDC TX loop
- tools/mpremote: don't apply Espressif DTR/RTS quirk to TinyUSB CDC dev
-
Fix building on single core systems
- Skip tests/thread/stress_schedule.py when single core system detected
- Record
openSUSE-SU-2026:20199-1- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
micropythonDebian:13 |
All versions, plus listed versions 1.25.0+ds-11.26.1+ds-1 |
None known |
micropythonDebian:14 |
All versions, plus listed versions 1.25.0+ds-11.26.1+ds-1 |
None known |
micropythonUbuntu:Pro:20.04:LTS |
All versions, plus listed versions 1.12-11.12-1ubuntu0.1~esm1 |
None known |
micropythonUbuntu:Pro:22.04:LTS |
All versions, plus listed versions 1.17+ds-1ubuntu11.17+ds-1.11.17+ds-1.1ubuntu21.17+ds-1.1ubuntu2+esm1 |
None known |
micropythonUbuntu:Pro:24.04:LTS |
All versions, plus listed versions 1.19.1+ds-11.22.1+ds-11.22.1+ds-1build11.22.1+ds-1build21.22.1+ds-1ubuntu0.24.04.1~esm1 |
None known |
micropythonUbuntu:25.10 |
All versions, plus listed versions 1.24.1+ds-11.25.0+ds-1 |
None known |
micropythonUbuntu:26.10 |
All versions, plus listed versions 1.26.1+ds-1 |
None known |
micropythonUbuntu:26.04:LTS |
All versions, plus listed versions 1.25.0+ds-11.26.1+ds-1 |
None known |
micropythonopenSUSE:Tumbleweed |
before 1.26.1-2.1 | 1.26.1-2.1 |
micropythonopenSUSE:Leap 16.0 |
before 1.26.1-bp160.1.1 | 1.26.1-bp160.1.1 |
History
| When | Changed | Sources |
|---|---|---|
| 2026-11-02 | created | CVE List, EUVD, GitHub Advisories, NVD, OSV |
References
vuldb.com?id.344546
vuldb.com?ctiid.344546
vuldb.com?submit.743396
github.com/micropython/micropython/issues/18639
github.com/micropython/micropython/pull/18671
github.com/dpgeorge/micropython/commit/570744d06c5ba9dba59b4c3f432ca4f0abd396b6
Show 9 moreShow less
github.com/micropython/micropython
nvd.nist.gov/vuln/detail/CVE-2026-1998
github.com/advisories/GHSA-p2vv-8mpq-57x2
github.com/CVEProject/cvelistV5/tree/main/cves/2026/1xxx/CVE-2026-1998.json
security-tracker.debian.org/tracker/CVE-2026-1998
ubuntu.com/security/CVE-2026-1998
cve.org/CVERecord?id=CVE-2026-1998
suse.com/security/cve/CVE-2026-1998
bugzilla.suse.com/1257803