CVE-2026-138163
Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with …
Impact
Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.
An attacker can exploit this with local access to the system, without logging in, but a user has to be involved, for example by viewing content. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.
Affected products (Gammu)
| Product | Affected versions |
|---|---|
| Gammu | before 1.45.2 |
Weakness classification
References
- NVD record
- CVE.org record
- GitHub advisory
- https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79
- https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e
- https://github.com/gammu/gammu/releases/tag/1.45.2
- https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L2814-L2896
- https://github.com/gammu/gammu
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-heap-buffer-overflow-via-readwapsettingsentry
- https://github.com/advisories/GHSA-frvx-qrj8-74hh
- https://nvd.nist.gov/vuln/detail/CVE-2026-138163