CVE-2026-138160: Gammu before 1.45.2 Stack-Based Buffer Overflow via ReadBackupTextLen()
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 GSMReadBackupFile calls, causing crashes or potential code execution.
Affected Software
Event History
Frequently Asked Questions
Which workflows are exposed to a crafted backup file?
The vulnerable parsing path can be reached through convertbackup, restore, and GSM_ReadBackupFile calls. Systems or applications that process backup files from untrusted sources through any of these paths are exposed.
What does an attacker need to exploit this issue?
An attacker needs to provide a crafted backup file containing overlong quoted text values. The supplied content is decoded into a 10,000-byte stack array, enabling stack-memory overwrite.
Are older installations affected?
Gammu versions before 1.45.2 are affected. Upgrade to 1.45.2 or later to obtain the fix.
What can be done if upgrading is not immediately possible?
Do not process backup files from untrusted or unverified sources using convertbackup, restore, or applications that call GSM_ReadBackupFile. Restrict who can supply backup files until the software can be updated.