CVE-2026-138162: Gammu Stack-based Buffer Overflow
Published 2026-11-28 · Updated 2026-12-03 · Source disclosure@vulncheck.com
Not known to be exploited · high severity — update Gammu to 1.45.2 or later in your next patch cycle.
What to do
- Update Gammu to version 1.45.2 or later. Versions before 1.45.2 are affected.
- Until it is patched, limit who has a local account on systems running Gammu.
- Keep exploit mitigations (stack canaries, ASLR, DEP) enabled and avoid exposing the affected interface to untrusted input.
- Exploitation needs a victim to act, so warn users of the affected system about unexpected links and files.
Affected and fixed versions
| Product | Affected | Fixed in |
|---|---|---|
| Gammu | < 1.45.2 | 1.45.2 |
Derived by HackerFeeds from the advisory text, CVSS vector and weakness class. Confirm versions against the vendor advisory before acting.
How it can be exploited
Exploiting it requires local access to the system, or getting a user to open a crafted file; the attacker does not need an account, and a victim has to take an action such as opening a link or file. Attack complexity is high, so exploitation depends on conditions the attacker does not control. The impact on confidentiality, integrity and availability is rated high.
| Attack vector | Local | Exploiting it requires local access to the system, or getting a user to open a crafted file. |
|---|---|---|
| Attack complexity | High | Success depends on conditions outside the attacker's control. |
| Privileges required | None | The attacker does not need an account. |
| User interaction | Required | A victim has to take an action, such as opening a link or file. |
| Confidentiality | High | Total loss of confidentiality. |
| Integrity | High | Total loss of integrity. |
| Availability | High | Total loss of availability. |
CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: Stack-based Buffer Overflow
Oversized input overwrites the stack, which can crash the software or let an attacker take control of execution.
Classified as CWE-121.
Description
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.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689
- Patchhttps://github.com/gammu/gammu/releases/tag/1.45.2
- Advisoryhttps://github.com/gammu/gammu/security/advisories/GHSA-3x76-xc9w-q78p
- Advisoryhttps://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-alcatel-encodestring
- Advisoryhttps://github.com/gammu/gammu/security/advisories/GHSA-3x76-xc9w-q78p
- Referencehttps://github.com/gammu/gammu
- Referencehttps://github.com/gammu/gammu/blob/1.45.1/libgammu/phone/alcatel/alcatel.c#L876-L916