
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2016-20040 is a stack-based buffer overflow vulnerability in TiEmu 3.03-nogdb+dfsg-3, a Texas Instruments calculator emulator. The flaw exists in the ROM parameter handling of the application's command-line interface, allowing local attackers to crash the application or execute arbitrary code by supplying an oversized ROM parameter. The vulnerability was formally published on March 28, 2026, despite the CVE identifier referencing 2016, and was assigned by VulnCheck. It carries a CVSS v3.1 base score of 8.4 (High) and a CVSS v4.0 base score of 8.6 (High) (VulnCheck Advisory, EUVD).
The root cause is an out-of-bounds write (CWE-787) resulting from insufficient bounds checking on the ROM parameter passed to the TiEmu command-line interface. An attacker can supply an oversized string as the ROM parameter, overflowing a stack-allocated buffer and overwriting the saved instruction pointer with attacker-controlled addresses, enabling arbitrary code execution. The official CWE classification also references CWE-22 (Path Traversal), though the primary exploitation mechanism is the stack buffer overflow. A public proof-of-concept exploit is available on Exploit-DB (Exploit-DB, VulnCheck Advisory).
Successful exploitation allows a local attacker to crash the TiEmu application (denial of service) or execute arbitrary code in the context of the user running the emulator, resulting in high confidentiality, integrity, and availability impact. Since the attack vector is local and no privileges are required, any user with access to the system and the ability to invoke the TiEmu binary can exploit this vulnerability. The scope is limited to the affected host, with no direct lateral movement capability, but code execution could be leveraged for privilege escalation depending on the system configuration (VulnCheck Advisory).
A public proof-of-concept exploit has been available on Exploit-DB since at least 2016 (exploit ID 39692), making this vulnerability straightforward to weaponize (Exploit-DB). The EPSS score is approximately 0.017% (0.000170), indicating a low probability of active exploitation in the wild at this time. There is no known attribution to specific threat actors, and the vulnerability does not appear in the CISA Known Exploited Vulnerabilities (KEV) catalog. Detection coverage exists via Tenable Nessus plugin 304206 (Tenable Nessus).
tiemu command (e.g., tiemu --rom=$(python3 -c 'print("A"*<offset> + "<return_address>")')), causing the stack buffer to overflow and overwriting the saved return address.tiemu process (e.g., /bin/sh, /bin/bash) following invocation with an unusually long ROM argument./var/log/syslog) showing segmentation faults or abnormal termination of the tiemu process; application crash reports referencing stack corruption./tmp; unexpected files created by the tiemu process owner after execution.No vendor patch has been publicly announced for TiEmu 3.03-nogdb+dfsg-3 as of the publication date. Users should avoid running TiEmu with untrusted or externally supplied ROM parameters. Where possible, restrict access to the TiEmu binary to trusted users only, and consider removing or disabling the package if it is not actively needed. Monitoring for the Tenable Nessus plugin 304206 can help identify vulnerable installations (Tenable Nessus, VulnCheck Advisory).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."