Skip to main content
EPSS 0.2%top 89%

CVE-2026-1998: Memory Corruption in micropython

0
Medium
VulnerabilityCVE-2026-1998cvecve-2026-1998
Published: 02/06/2026 (02/06/2026, 06:02:08 UTC)
Source: CVE Database V5
Product: micropython

Description

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.

CVSS v4.0

Score 4.8medium

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
Low
User Interaction
None
Vuln. Confidentiality
None
Vuln. Integrity
None
Vuln. Availability
Low
Subsq. Confidentiality
None
Subsq. Integrity
None
Subsq. Availability
None
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

Affected software

GitHub Actionsmore threats →ai
micropython/micropython
pkg:github/micropython/micropython
Affected versions
=1.0=1.1=1.2=1.3=1.4=1.5=1.6=1.7=1.8=1.9=1.10=1.11=1.12=1.13=1.14=1.15=1.16=1.17=1.18=1.19=1.20=1.21=1.22=1.23=1.24=1.25=1.26=1.27.0

Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 02/23/2026, 22:04:21 UTC

Technical Analysis

CVE-2026-1998 identifies a memory corruption vulnerability in the micropython interpreter, affecting all versions up to 1.27.0. The vulnerability resides in the mp_import_all function of the py/runtime.c source file, which is responsible for handling import operations in micropython. Improper handling or manipulation of this function can lead to memory corruption, potentially causing crashes or enabling an attacker to execute arbitrary code or escalate privileges locally. The attack requires local access with limited privileges and does not need user interaction, making it feasible for an insider threat or an attacker who has already gained some access to the device. The vulnerability has a CVSS 4.8 score, reflecting a medium severity due to the local attack vector and limited scope of impact. Although no known exploits in the wild have been reported, a proof-of-concept exploit has been published, increasing the risk of exploitation. The micropython project has released a patch identified by commit 570744d06c5ba9dba59b4c3f432ca4f0abd396b6 to remediate this issue. Organizations using micropython, especially in embedded or IoT environments, should apply this patch to mitigate potential risks.

Potential Impact

The primary impact of this vulnerability is memory corruption, which can lead to application crashes, denial of service, or potentially arbitrary code execution if exploited successfully. Since the attack requires local access with limited privileges, the threat is mainly from insiders or attackers who have already compromised the device to some extent. For embedded systems and IoT devices running micropython, exploitation could disrupt device functionality or be leveraged as a stepping stone for further attacks within a network. This could affect operational continuity, data integrity, and potentially confidentiality if attackers escalate privileges. Given micropython's use in various embedded applications worldwide, the vulnerability could impact industries relying on these devices, including manufacturing, healthcare, and smart infrastructure. However, the lack of remote exploitability and user interaction requirement limits the scope and ease of exploitation, reducing the overall risk compared to remote vulnerabilities.

Mitigation Recommendations

Organizations should immediately apply the official patch released for micropython, identified by commit 570744d06c5ba9dba59b4c3f432ca4f0abd396b6, to remediate the vulnerability. Beyond patching, it is critical to restrict local access to devices running micropython by enforcing strict access controls and monitoring for unauthorized access attempts. Implementing robust endpoint security measures on devices can help detect and prevent exploitation attempts. Regularly auditing and updating embedded device firmware and software will reduce exposure to known vulnerabilities. For environments where patching is delayed, consider isolating affected devices from critical networks to limit potential impact. Additionally, employing runtime protections such as memory safety tools or sandboxing micropython processes can mitigate exploitation risks. Organizations should also educate personnel about the risks of local attacks and ensure that devices are physically secured to prevent unauthorized local access.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
VulDB
Date Reserved
2026-02-05T17:09:46.272Z
Cvss Version
4.0
State
PUBLISHED

Threat ID: 69858a71f9fa50a62fe12639

Added to database: 02/06/2026, 06:30:09 UTC

Last enriched: 02/23/2026, 22:04:21 UTC

Last updated: 09/10/2026, 19:36:52 UTC

Views: 231

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses