CVE-2026-138161: Gammu 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 (ASLR, DEP, stack protection) 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 low, so a working exploit is expected to be reliable. 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 | Low | No special conditions are needed; the attack is repeatable. |
| 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:L/PR:N/UI:R/S:U/C:H/I:H/A:H
Weakness: Buffer Overflow
Input larger than the destination buffer overwrites adjacent memory, which can crash the software or let an attacker run code.
Classified as CWE-120.
Description
Gammu before 1.45.2 contains a buffer overflow vulnerability in LoadBackup() that allows attackers to corrupt memory by supplying an overlong MD5 value in a crafted backup file. Attackers can overwrite adjacent phonebook and calendar entry pointers via strcpy() into MD5Original when files are loaded with convertbackup or restore, causing crashes or potential code execution.
Advisory text as published in the NVD record.
References
- Patchhttps://github.com/gammu/gammu/commit/91f62b818edaa221276d898e19ad4d092c36cdcb
- Patchhttps://github.com/gammu/gammu/releases/tag/1.45.2
- Advisoryhttps://github.com/gammu/gammu/security/advisories/GHSA-cp4c-2vv3-mrr7
- Advisoryhttps://www.vulncheck.com/advisories/gammu-before-1.45.2-buffer-overflow-via-loadbackup-md5-checksum
- Referencehttps://github.com/gammu/gammu
- Referencehttps://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L3282