CVE-2026-138160
7.8HighPublished Nov 28, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- None
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-121
What an attacker gets
Attackers can execute arbitrary code or crash the application by providing a malicious backup file. This requires a user to trigger a restore or backup process with a crafted file.
Root cause
A stack-based buffer overflow occurs in ReadBackupTextLen() because it fails to properly validate the length of quoted text values before copying them into a fixed-size stack array.
Affected versions
Gammu versions before 1.45.2
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to Gammu 1.45.2 or later. Do not process untrusted backup files until the update is applied.
$ sudo apt-get update && sudo apt-get install --only-upgrade gammuAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD description
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted backup files. Attackers can supply overlong quoted text values decoded into a 10,000-byte stack array during convertbackup, restore, or GSM_ReadBackupFile calls, causing crashes or potential code execution.
References
- https://github.com/gammu/gammu
- https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L234-L277
- https://github.com/gammu/gammu/commit/8063e55b23b575ee0dc645ce6e94d8bdade0c0cf
- https://github.com/gammu/gammu/commit/f224198cc316b590ac0c853aa98cfbcf491a16fe
- https://github.com/gammu/gammu/releases/tag/1.45.2
- https://github.com/gammu/gammu/security/advisories/GHSA-74cq-mvwr-5wgm
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-readbackuptextlen
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1381617.8HighAttackers can achieve code execution by providing a crafted backup file with an overlong MD5 value. This requires a user to process a malicious file using convertbackup or restore.
- CVE-2026-1381627.0HighAttackers can execute arbitrary code or crash the application by providing a crafted backup file. This requires a user to perform a restore or addnew operation on an attached Alcatel phone.
- CVE-2026-1381198.8HighUnauthenticated attackers can steal session cookies and take over Kestra instances by tricking a logged-in user into clicking a malicious link. This is a reflected cross-site scripting attack that executes arbitrary JavaScript in the user's browser.
- CVE-2026-1381187.8HighAttackers can execute arbitrary Python code by providing a malicious .hspy or .zspy file. A user must open or restore a crafted model file for the exploit to trigger.
- CVE-2026-13800410.0CriticalRemote unauthenticated attackers can execute arbitrary OS commands with root privileges. This is achieved by sending a crafted request to the UPnP Igd Control Endpoint.
- CVE-2026-1380039.0CriticalRemote attackers can execute arbitrary code via a stack-based buffer overflow. This requires sending a crafted SOAPAction request to the UPnP interface.