Home › CVE › Vulnerabilities
CVE-2026-138161 — Gammu
One of 5 Gammu vulnerabilities published together by NVD: our article covers all of them.
VulnerabilitiesData protectionResearch article
Gammu Buffer Overflow Vulnerability in LoadBackup() Allows Code Execution
| CVE | CVE-2026-138161 |
|---|---|
| Vendor and product | Gammu |
| Published | November 28, 2026 10:20 UTC |
| Research cut-off | November 28, 2026 09:55 UTC |
| Sources reviewed | 2: NVD record (last modified 2026-11-28); CISA KEV catalog |
Executive summary
CVE-2026-138161 affects Gammu versions prior to 1.45.2, with a CVSS 3.1 score of 7.8 HIGH [1]. The flaw, a buffer overflow in LoadBackup(), could allow attackers to overwrite memory and potentially execute arbitrary code [1]. The reviewed sources do not report exploitation [2]. The main action is to update to the fixed version 1.45.2.
Key points
Vulnerability identification
| CVE ID | Vendor | Product | CWE | CVSS 4.0 Score | CVSS 3.1 Score | Published Date | Last Modified Date | Record Status |
|---|---|---|---|---|---|---|---|---|
| CVE-2026-138161 | Gammu | Gammu | CWE-120 | 8.5 HIGH | 7.8 HIGH | 2026-11-28 | 2026-11-28 | Received |
Vulnerability description
A buffer overflow flaw exists in the LoadBackup() function of Gammu versions before 1.45.2. Attackers can corrupt memory by providing an excessively long MD5 value in a specially crafted backup file. This could allow overwriting of adjacent phonebook and calendar entry pointers through the strcpy() function during file loading via convertbackup or restore, which might result in crashes or code execution [1].
Attack surface and exploitation prerequisites
The CVSS 3.1 score from the record rates the vulnerability as requiring local access and low attack complexity, and it requires user interaction [1]. The attacker must have local access to the system to exploit this flaw [1].
Impact analysis
The CVSS 3.1 vector indicates high impact on confidentiality (C:H), integrity (I:H), and availability (A:H). The vulnerability could allow attackers to corrupt memory, which may lead to crashes or potential code execution [1].
Affected products and versions
| Affected Version | Fixed Version |
|---|---|
| Gammu < 1.45.2 | 1.45.2 |
Exploitation and threat intelligence status
CVE-2026-138161 is not listed in the CISA Known Exploited Vulnerabilities Catalog as of 2026-11-28 [2]. The reviewed sources do not report exploitation.
Detection and exposure assessment
Readers can determine if they are exposed by checking if they are using Gammu versions less than 1.45.2. No detection steps are provided by the sources.
Remediation
The fixed version for Gammu is 1.45.2 [1]. Users are advised to update to this version to address the vulnerability.
Remediation checklist
- Update Gammu to version 1.45.2 [1].
- Review system logs for any signs of memory corruption or unexpected behavior.
- Restrict access to systems running Gammu to prevent local exploitation.
Evidence gaps
- The sources do not describe the affected component's internals.
- The sources do not mention a workaround.
- The sources do not provide a complete version range beyond what is listed.
- The sources do not describe the attack lifecycle or scenarios.
- The sources do not provide indicators of compromise.
References
- CVE-2026-138161 record. NIST National Vulnerability Database (NVD), 2026-11-28. https://nvd.nist.gov/vuln/detail/CVE-2026-138161. Accessed 2026-11-28.
- Known Exploited Vulnerabilities Catalog. Cybersecurity and Infrastructure Security Agency (CISA), 2026-11-28. https://www.cisa.gov/known-exploited-vulnerabilities-catalog. Accessed 2026-11-28.
Summary
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.
Severity breakdown
High · 8.5
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
- high on confidentiality, integrity and availability
- Impact on other systems
- none
Weakness
- CWE-120: Buffer Copy without Checking Size of Input ('Classic 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/91f62b818edaa221276d898e19ad4d092c36cdcb
- github.com/gammu/gammu/releases/tag/1.45.2
Other references
Affected
- Gammu
Frequently asked questions
What is CVE-2026-138161?
CVE-2026-138161 affects Gammu versions prior to 1.45.2, with a CVSS 3.1 score of 7.8 HIGH. The flaw, a buffer overflow in LoadBackup(), could allow attackers to overwrite memory and potentially execute arbitrary code. The reviewed sources do not report exploitation. The main action is to update to the fixed version 1.45.2. Weakness type: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') (CWE-120).
How severe is CVE-2026-138161?
CVE-2026-138161 has a CVSS 4.0 base score of 8.5 (high), 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-138161 being exploited?
Not as far as is known: CVE-2026-138161 is not in CISA's Known Exploited Vulnerabilities catalog as of November 28, 2026. EPSS estimates a 0.2% chance that it is exploited in the next 30 days.
Which versions are affected by CVE-2026-138161?
Gammu < 1.45.2 (fixed in 1.45.2).
How do I fix CVE-2026-138161?
Update Gammu to version 1.45.2. Review system logs for any signs of memory corruption or unexpected behavior. Restrict access to systems running Gammu to prevent local exploitation.