CVE-2026-138160
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ReadBackupTextLen() that allows attackers to overwrite stack memory via crafted bac…
Impact
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.
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-74cq-mvwr-5wgm
- 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/blob/1.45.1/libgammu/service/backup/backtext.c#L234-L277
- https://github.com/gammu/gammu
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-readbackuptextlen
- https://github.com/advisories/GHSA-9gmm-wvwr-7r73
- https://nvd.nist.gov/vuln/detail/CVE-2026-138160