{"answers":{"affected":"It affects 1 product.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-1998 exists.","fix":"Apply the vendor's patch.","what":"CVE-2026-1998 is a medium-severity memory corruption vulnerability in micropython, published on 6 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2026-1998 and fix it if it is affected.\n\nWhat it is: CVE-2026-1998 is a medium-severity memory corruption vulnerability in micropython, published on 6 Feb 2026. It can only be exploited from the same machine or local network, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-1998 exists.\n\nAffected product: micropython. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-1998/ (Markdown: https://insights.sbomify.com/CVE-2026-1998/index.md)","id":"CVE-2026-1998","markdown":"https://insights.sbomify.com/CVE-2026-1998/index.md","name":"CVE-2026-1998","record":{"aliases":["DEBIAN-CVE-2026-1998","GHSA-p2vv-8mpq-57x2","UBUNTU-CVE-2026-1998","openSUSE-SU-2026:10156-1","openSUSE-SU-2026:20199-1"],"analysis":{"component_type":"library","fix_type":"patch","impacts":["code_execution","denial_of_service"],"network_reachable":"adjacent_or_local","non_default_config":false,"product_category":"MicroPython runtime","requires_auth":"low_privilege","summary":"A local attacker can exploit memory corruption in MicroPython's import function to potentially execute arbitrary code or cause a denial of service.","user_interaction":"not_required","vuln_class":"memory_corruption"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"VulDB","cpe":[{"product":"micropython","vendor":"micropython"}],"cvss":{"score":4.8,"severity":"medium","source":"cna","vector":"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","version":"4.0"},"cwes":[{"id":"CWE-787","name":"Out-of-bounds Write"},{"id":"CWE-119","name":"Improper Restriction of Operations within the Bounds of a Memory Buffer"}],"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.","ecosystems":["openSUSE:Leap 16.0","openSUSE:Tumbleweed"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"weaponised"},"has_fix":true,"headline":"micropython runtime.c mp_import_all memory corruption","id":"CVE-2026-1998","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"memory_corruption","year":"2026"},"n_packages":2,"n_references":8,"next":{"headline":"Missing authorization in Enterprise Server","id":"CVE-2026-1999"},"packages":[{"ecosystem":"openSUSE:Leap 16.0","fixed":["1.26.1-bp160.1.1"],"introduced":["0"],"last_affected":[],"package":"micropython","purl":"pkg:rpm/opensuse/micropython\u0026distro=openSUSE%20Leap%2016.0","source":"openSUSE-SU-2026:20199-1"},{"ecosystem":"openSUSE:Tumbleweed","fixed":["1.26.1-2.1"],"introduced":["0"],"last_affected":[],"package":"micropython","purl":"pkg:rpm/opensuse/micropython\u0026distro=openSUSE%20Tumbleweed","source":"openSUSE-SU-2026:10156-1"}],"prev":{"headline":"Certain HP OfficeJet Pro Printers - Information Disclosure","id":"CVE-2026-1997"},"products":["micropython"],"published":"2026-02-06","related":[{"cvss_score":7.3,"headline":"MicroPython objslice.c slice_indices heap-based overflow","id":"CVE-2023-7158","kev_date_added":null,"published":"2023-12-29"},{"cvss_score":6.9,"headline":"MicroPython VFS Unmount vfs.c mp_vfs_umount heap-based overflow","id":"CVE-2024-8946","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":6.9,"headline":"MicroPython objint.c mpz_as_bytes heap-based overflow","id":"CVE-2024-8948","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":6.3,"headline":"MicroPython objarray.c use after free","id":"CVE-2024-8947","kev_date_added":null,"published":"2024-09-17"},{"cvss_score":5.5,"headline":"MicroPython modselect.c poll_set_add_fd use after free","id":"CVE-2023-7152","kev_date_added":null,"published":"2023-12-29"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"SUSE","prefix":"openSUSE"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"poc","technical_impact":"partial"},"state":"PUBLISHED","updated":"2026-02-23","vendors":["n/a"]},"summary":"A local attacker can exploit memory corruption in MicroPython's import function to potentially execute arbitrary code or cause a denial of service.","url":"https://insights.sbomify.com/CVE-2026-1998/"}