Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver crafted backup file to user
-
ExploitUser runs convertbackup/restore on file
-
ExecutionReadWAPSettingsEntry writes past 4-element array
-
ImpactHeap memory corruption, process crash (DoS)
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Heap buffer bounds checking
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires the victim to actively load an attacker-supplied Gammu text backup file through the convertbackup, restore, or GSM_ReadBackupFile code path (LoadBackup); the malicious file must contain a [WAPSettings] or [MMSSettings] section with more than four TitleNN keys (the advisory's regression boundary is 5=clean/6=overflow, since the 5th entry lands in trailing object slack). Limiting factors: attack vector is local file processing only (not network-reachable), user interaction is mandatory (the victim must choose to convert/restore the file), and the demonstrated outcome is a process crash - code execution would additionally require defeating heap hardening and ASLR, which the demonstrated crash did not do. |
| Impact | This is a locally-exploitable memory-corruption flaw whose signals point to moderate, not emergency, priority. The input CVSS 4.0 vector (AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H = 8.5) encodes full high impact to confidentiality, integrity and availability, but the authoritative GHSA advisory from the Cyrex Deus Rex team explicitly states the only demonstrated impact is termination of the gammu process after heap corruption - 'We did not demonstrate code execution, confidentiality loss, or integrity impact.' The researcher's own demonstrated-impact vector is therefore CVSS:3.1/AV:L/AC:L/PR:N/UI:R/C:N/I:N/A:H (5.5), with C:H/I:H/A:H reserved only as the theoretical ceiling for this bug class. So the VC:H/VI:H in the supplied 8.5 vector reflect a potential code-execution ceiling, not verified behavior - treat it as such. The vulnerability is local only: it requires a user to process an attacker-supplied backup file through convertbackup/restore/GSM_ReadBackupFile, so there is no network exposure and no self-propagation. The vuln.today decision label is 'this_week' (not act_now/emergency), consistent with a patched, local, user-interaction-gated flaw. No EPSS score, no CISA KEV entry, and no 'confirmed exploit' label are present in the input; a full reproducible crash PoC is published in the advisory. Overall this is a real-but-not-urgent issue - a patchable local DoS with an unproven RCE ceiling - rather than a widely-exploitable critical. |
| Exploit ScenarioDerived | An attacker crafts a malicious Gammu text backup file containing a [WAPSettings] or [MMSSettings] section with more than four TitleNN keys (e.g. 20) and delivers it to a victim who runs 'gammu convertbackup' or restores it. Parsing writes past the fixed four-element Settings array, corrupting heap memory and reliably crashing the process; the published advisory includes a working PoC generator and reports 10/10 crashes, though only denial-of-service (not code execution) was demonstrated. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 28, 2026
Heap-based buffer overflow in Gammu's text backup parser (before 1.45.2) lets an attacker who supplies a crafted backup file corrupt heap memory in any process that loads it through convertbackup, restore, or the GSM_ReadBackupFile library call. The defect is in ReadWAPSettingsEntry() in libgammu/service/backup/backtext.c, which writes one GSM_WAPSettings record per TitleNN key in a [WAPSettings] or [MMSSettings] section without bounding the count against the four-element Settings array; the published reproducer reliably terminates the CLI (AddressSanitizer heap-buffer-overflow; SIGSEGV in 10 of 10 hardened -O2 runs), while code execution was not demonstrated and would require defeating heap hardening and ASLR. Access is unauthenticated per the CVSS vectors (PR:N) but exploitation is local: the victim must choose to convert or restore the attacker-supplied file. There is no CISA KEV entry and no confirmed active exploitation; a public PoC reproducer and the upstream fix commit are published, and the vendor released 1.45.2 with a bound check that returns ERR_CORRUPTED.
RemediationAI
Upgrade to Gammu 1.45.2 (https://github.com/gammu/gammu/releases/tag/1.45.2), which contains commit e0bf2fa08a78afebd493f7f00ea12ef9276ff52e changing ReadWAPSettingsEntry() to return ERR_CORRUPTED once settings->Number reaches the four-element Settings array and to abort backup loading through both the [WAPSettings] and [MMSSettings] call sites; downstream distributions and applications embedding libGammu should pick up that commit or the 1.45.2 release. Until then, the actionable control is to avoid running convertbackup, restore, or any GSM_ReadBackupFile()-based import against backup files from untrusted or unverified sources, since the overflow is triggered purely by parsing the file and the user action of loading it is the only prerequisite; as a pre-filter, reject or strip [WAPSettings] and [MMSSettings] sections that contain more than four TitleNN keys before conversion, accepting that such files are precisely the ones current builds mishandle and that a filter must be applied at every import path (CLI, scripts, third-party tools) to be effective. Note that the fifth entry lands in trailing object slack, so a four-versus-five test case can pass clean on unpatched builds while still overflowing; validation should use five or more entries to exercise the out-of-bounds index. Per the vendor, applying the bound (or upgrading) is the complete fix; users should also confirm their build ships the regression test backup-wap-settings that asserts four entries load while five, six, and twenty are rejected.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Gammu's backup format has a human-readable INI text variant parsed by backtext.c; LoadBackup()/ConvertBackup() dispatch each section to a typed reader, and ReadWAPSettingsEntry() is invoked for both the [WAPSettings] and [MMSSettings] section families (backtext.c:3516 and :3544 in 1.45.1). The destination object is GSM_MultiWAPSettings, which embeds a fixed GSM_WAPSettings Settings[4] array; the parser zeroes settings->Number, then walks matching TitleNN keys and uses settings->Number as the array index, incrementing it without any bound check. With more than four entries the fifth write (Settings[4]) already falls out of bounds, though it lands in trailing object slack (ASan first reports 38 bytes past the 3,140-byte GSM_MultiWAPSettings allocation, at the sixth entry), so a 20-entry section produces a reliable heap-buffer-overflow. The CNA classifies this as CWE-122 (heap-based buffer overflow); the upstream advisory describes CWE-129 (improper validation of array index) as the root cause and CWE-787 (out-of-bounds write) as the consequence. The upstream fix changes ReadWAPSettingsEntry() to return GSM_Error, returns ERR_CORRUPTED when settings->Number reaches the array size, and propagates that error from both LoadBackup() call sites; the accompanying regression test asserts ERR_NONE for four entries and ERR_CORRUPTED for five, six, and twenty entries in both WAP and MMS sections. Note the severity divergence: the CNA CVSS 4.0 vector is 8.5 (AV:L/AC:L/AT:N/PR:N/UI:P, full C/I/A high), while the assessed CVSS 3.1 vector is 7.0 (AV:L/AC:H/PR:N/UI:R) reflecting that only a crash was executed and RCE requires defeating heap hardening and address-space randomisation.
Know when Gammu gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Local file parse with mandatory user interaction (AV:L/UI:R, PR:N since no auth); A:H from the reliably demonstrated crash, C:H/I:H as the memory-corruption ceiling gated by AC:H for defeating hardening/ASLR.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
Gammu before 1.45.2 contains a heap-based buffer overflow in ReadWAPSettingsEntry() that allows attackers to corrupt heap memory via crafted backup files with excess WAP or MMS settings entries. Attackers can supply a backup with more than four TitleNN keys in a [WAPSettings] or [MMSSettings] section, loaded via convertbackup, restore, or GSM_ReadBackupFile, causing crashes or potential code execution.
Technical POC Analysis
Heap out-of-bounds write (CWE-122; the advisory itself files it under CWE-129 improper array-index validation and CWE-787 out-of-bounds write) in ReadWAPSettingsEntry() in libgammu/service/backup/bac…
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-138163 is a high-severity heap buffer overflow (CVSS 8.5) in Gammu's backup-file parsing code that crashes any application processing a maliciously crafted backup. The realistic risk is localized denial of service on developer workstations or mobile-management systems that run Gammu's convertbackup, restore, or GSM_ReadBackupFile functionality; exploitation requires a user to deliberately open an attacker-supplied file, and code execution has not been demonstrated. Leadership should care because tooling teams and any staff handling untrusted backup files are exposed to reliable crashes, but broad enterprisewide exposure is limited and no active exploitation is known.
Apply vendor patch.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
A heap overflow occurs when a program writes data beyond the bounds of a buffer allocated in the heap memory region.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Related Vulnerabilities in Gammu Buffer Overflow Vulnerabilities
View all 5Same weakness CWE-122 – Heap-based Buffer Overflow
View allVendor StatusVendor
Debian
| Release | Status | Fixed Version | Urgency |
|---|---|---|---|
| bookworm | vulnerable | 1.42.0-8 | - |
| trixie | vulnerable | 1.42.0-10 | - |
| forky | vulnerable | 1.45.0-2 | - |
| sid | fixed | 1.45.2-1 | - |
| (unstable) | fixed | 1.45.2-1 | - |
EUVD-2026-137550
GHSA-frvx-qrj8-74hh
NVD
CVE.org
EPSS
Exploit-DB