Skip to main content
5 CVEs HIGH CVSS 8.5

Gammu Buffer Overflow Vulnerabilities

2026-11-28

CVE-2026-138160 HIGH PATCH

Stack-based buffer overflow in Gammu's backup text decoder (ReadBackupTextLen) lets a crafted backup file corrupt stack memory whenever a victim runs 'gammu convertbackup', performs a restore, or calls GSM_ReadBackupFile on it, terminating the process and potentially enabling code execution. Every Gammu release before 1.45.2 is affected, and the reachable default is the UTF-16 branch that Gammu itself writes, so an apparently ordinary Gammu export containing an over-long calendar Text value is enough to trigger it. The attack is local and requires the victim to actively import or convert the malicious file (unauthenticated per the supplied CVSS vectors, PR:N, but UI:P), the upstream GHSA publishes a proof-of-concept that reproducibly crashes hardened and unhardened builds, code execution was not demonstrated by the reporters, and no confirmed active exploitation is reported in the supplied data.

8.5
CVSS
0.2%
EPSS
CVE-2026-138161 HIGH PATCH

Gammu before 1.45.2 contains an unchecked strcpy() in LoadBackup() that copies the attacker-controlled MD5 checksum from a text backup into the fixed-size GSM_Backup.MD5Original[100] field, overflowing into adjacent backup fields and entry pointers. A victim must load a crafted .backup file through the Gammu CLI (gammu convertbackup, or a restore path) and the affected code is reached unauthenticated, but the attack is local and requires that user interaction. The demonstrated outcome is a deterministic process abort - a FORTIFY __strcpy_chk failure on hardened builds or a SIGSEGV through the corrupted state on plain builds - with code execution possible in principle for this bug class but not demonstrated; there is no CISA KEV entry and no confirmed active exploitation, and a public crash reproducer is published in the upstream advisory.

8.5
CVSS
0.2%
EPSS
CVE-2026-138163 HIGH PATCH

Heap-based buffer overflow in Gammu's text backup parser (before 1.45.2) lets an attacker who supplies a crafted backup file corrupt heap memory in any process that loads it through convertbackup, restore, or the GSM_ReadBackupFile library call. The defect is in ReadWAPSettingsEntry() in libgammu/service/backup/backtext.c, which writes one GSM_WAPSettings record per TitleNN key in a [WAPSettings] or [MMSSettings] section without bounding the count against the four-element Settings array; the published reproducer reliably terminates the CLI (AddressSanitizer heap-buffer-overflow; SIGSEGV in 10 of 10 hardened -O2 runs), while code execution was not demonstrated and would require defeating heap hardening and ASLR. Access is unauthenticated per the CVSS vectors (PR:N) but exploitation is local: the victim must choose to convert or restore the attacker-supplied file. There is no CISA KEV entry and no confirmed active exploitation; a public PoC reproducer and the upstream fix commit are published, and the vendor released 1.45.2 with a bound check that returns ERR_CORRUPTED.

8.5
CVSS
0.2%
EPSS
CVE-2026-138162 HIGH PATCH

Stack-based buffer overflow in Gammu's Alcatel handset driver (libgammu, all versions before 1.45.2) lets an attacker who supplies a crafted backup file overwrite roughly 212 bytes of stack memory when the victim restores it to an attached Alcatel-family phone via 'gammu restore' or 'addnew'. Exploitation is local, high complexity and requires user interaction: the victim must perform the restore, an Alcatel driver must be selected (explicitly through 'model = alcatel' or auto-selected when AT identification such as 'OT - C55x' maps to the F_ALCATEL feature), and the backup must carry a phonebook text field of about 200 GSM extension characters that the encoder expands two-for-one. The researchers reproduced stack corruption against an emulated handset and published a working PoC backup generator, but there is no confirmed active exploitation (not in CISA KEV) and physical-device and vCard/LDIF delivery paths remain unverified; version 1.45.2 fixes the flaw.

7.3
CVSS
0.2%
EPSS
CVE-2026-138164 MEDIUM PATCH

Gammu's backup writer overflows a fixed 10,000-byte stack buffer when hex-encoding a text field of 2,500 characters or more, and the overflow is reachable by running 'gammu convertbackup' on an attacker-supplied text backup whose calendar or note Text field is long enough. All versions before 1.45.2 are affected per the wildcard CPE; the issue is local (AV:L) and requires the victim to convert a crafted backup (UI:P), and the demonstrated consequence is a limited integrity write with no observed crash on optimized builds, so confidentiality and availability impact are unproven. A reproduction with sanitizer output is published in the upstream advisory, but it is a proof-of-concept rather than working exploit code, and there is no CISA KEV entry indicating active exploitation. Vendor-released patch: 1.45.2.

4.8
CVSS
0.2%
EPSS

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy