Home › CVE › Vulnerabilities
CVE-2026-138164 — Gammu
One of 5 Gammu vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesData protectionSummary
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer.
Severity breakdown
Medium · 4.8
An attacker without an account can exploit this with local access if a user views or visits something.
- Attack from
- local access (a logged-in user, or a malicious file opened on the device)
- Attack complexity
- low (no special conditions)
- Special conditions
- none
- Login needed
- no
- User action needed
- yes, a user must view or visit something
- Impact
- low on integrity, none on confidentiality and availability
- Impact on other systems
- none
Weakness
- CWE-121: Stack-based Buffer Overflow
Affected and fixed versions
| Product | Affected versions | Fixed in |
|---|---|---|
| Gammu | < 1.45.2 | 1.45.2 |
References by type
Vendor advisories
Patches and fixed releases
- github.com/gammu/gammu/commit/6ea5148f35995aa8ca02b0c5e4654a125405e799
- github.com/gammu/gammu/releases/tag/1.45.2
Other references
Affected
- Gammu
What to do
- Follow the vendor advisory and the references below for fixed versions and workarounds.
Frequently asked questions
What is CVE-2026-138164?
Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in SaveBackupText() in backtext.c that allows attackers to corrupt stack memory by supplying long text fields. Attackers can craft a backup with long calendar or note fields that, when converted with gammu convertbackup, writes hex digits past the 10,000-byte stack buffer. Weakness type: Stack-based Buffer Overflow (CWE-121).
How severe is CVE-2026-138164?
CVE-2026-138164 has a CVSS 4.0 base score of 4.8 (medium), from the CNA (vulncheck.com). An attacker without an account can exploit this with local access if a user views or visits something.
Is CVE-2026-138164 being exploited?
Not as far as is known: CVE-2026-138164 is not in CISA's Known Exploited Vulnerabilities catalog as of November 29, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-138164?
Gammu < 1.45.2 (fixed in 1.45.2).
How do I fix CVE-2026-138164?
Update to a fixed release: Gammu 1.45.2.