CVE-2026-138162
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversize…
Impact
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.
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. Specific conditions have to be met, which makes an attack harder. 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-3x76-xc9w-q78p
- https://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689
- https://github.com/gammu/gammu/releases/tag/1.45.2
- https://github.com/gammu/gammu/blob/1.45.1/libgammu/phone/alcatel/alcatel.c#L876-L916
- https://github.com/gammu/gammu
- https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-alcatel-encodestring
- https://github.com/advisories/GHSA-gr2c-gxjj-cc7v
- https://nvd.nist.gov/vuln/detail/CVE-2026-138162