PatchSiren cyber security CVE debrief
CVE-2026-138164 Gammu CVE debrief
A stack-based buffer overflow vulnerability exists in Gammu before version 1.45.2, specifically in the SaveBackupText() function in backtext.c. This vulnerability allows attackers to corrupt stack memory by supplying long text fields, potentially leading to a crash or other undefined behavior when converting backups with gammu convertbackup. The vulnerability is triggered by long calendar or note fields in backups, which can cause the function to write past the 10,000-byte stack buffer. Defenders should assess exposure and prioritize updates to mitigate potential risks.
- Vendor
- Gammu
- Product
- Unknown
- CVSS
- MEDIUM 4.8
- CISA KEV
- Not listed in stored evidence
- Original CVE published
- 2026-11-28
- Original CVE updated
- 2026-11-28
- Advisory published
- 2026-11-28
- Advisory updated
- 2026-11-28
Who should care
Defenders responsible for systems or applications using Gammu versions before 1.45.2 should assess exposure and prioritize updates to mitigate potential risks. This includes reviewing Gammu versions in use, assessing backup conversion processes, and monitoring for suspicious activity. Security teams should also review compensating controls for exposed systems while remediation is scheduled and verified.
Why it matters
This vulnerability in Gammu before 1.45.2 poses a risk to systems or applications using the software, particularly if they process untrusted or malformed backup files. Defenders should prioritize updates to version 1.45.2 or later to mitigate potential risks.
- Potential system crashes or instability due to buffer overflow
- Possible execution of arbitrary code or commands
- Elevation of privileges through stack memory corruption
- Data corruption or loss during backup conversion
Technical summary
The SaveBackupText() function in backtext.c of Gammu before 1.45.2 is vulnerable to a stack-based buffer overflow. This occurs when the function attempts to convert a backup with long calendar or note fields, causing it to write past the 10,000-byte stack buffer. The vulnerability allows attackers to corrupt stack memory, potentially leading to a crash or other undefined behavior. Defenders should prioritize updating Gammu to version 1.45.2 or later to address this vulnerability. The vulnerability is triggered by long calendar or note fields in backups.
Defensive priority
Defenders should prioritize updating Gammu to version 1.45.2 or later to address this vulnerability.
Recommended defensive actions
- Update Gammu to version 1.45.2 or later
- Review and limit input to the SaveBackupText() function
- Monitor for suspicious activity related to Gammu backup conversions
- Review compensating controls for exposed systems while remediation is scheduled and verified
- Check relevant monitoring, detection, and logs for exposed assets that need extra review
- Track exceptions, retest remediated assets, and close the item only after evidence is documented
- Confirm whether affected product deployments exist in managed environments and assign an owner for follow-up
Evidence notes
The vulnerability is confirmed by the CVE Program record and the Gammu vendor's release notes. The affected version is Gammu before 1.45.2. Evidence is limited to CVE Program records and vendor advisories. Defenders should verify Gammu versions in use and review backup conversion processes for potential exposure. No exploit details are publicly available.
Sources and references
Verified primary and authoritative sources
-
CVE-2026-138164 CVE Program record
Publisher, destination, and source semantics verified
URL: https://www.cve.org/CVERecord?id=CVE-2026-138164
CVE Program - Official CVE Program record with source-provided CVE metadata.
-
CVE-2026-138164 NVD vulnerability detail
Publisher, destination, and source semantics verified
URL: https://nvd.nist.gov/vuln/detail/CVE-2026-138164
NIST National Vulnerability Database - Official NIST NVD detail page and source-specific vulnerability assessment.
Supplemental references
-
Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()
Unverified legacy reference
URL: https://raw.githubusercontent.com/CVEProject/cvelistV5/main/cves/2026/138xxx/CVE-2026-138164.json
cve_program_cvelist_v5
-
Source reference
Unverified legacy reference
URL: https://github.com/gammu/gammu/security/advisories/GHSA-f954-jx97-g68w
Supplemental source - vendor-advisory
-
Source reference
Unverified legacy reference
URL: https://github.com/gammu/gammu/commit/6ea5148f35995aa8ca02b0c5e4654a125405e799
Supplemental source - patch
-
Source reference
Unverified legacy reference
URL: https://github.com/gammu/gammu/releases/tag/1.45.2
Supplemental source - release-notes
-
Source reference
Unverified legacy reference
URL: https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c
Supplemental source - technical-description
-
Source reference
Unverified legacy reference
URL: https://github.com/gammu/gammu
Supplemental source - product
-
Source reference
Unverified legacy reference
URL: https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-savebackuptext
Supplemental source - third-party-advisory
Methodology and review provenance
AI-assisted synthesis based on stored public vulnerability evidence. System validation, approval state, and publication status do not by themselves establish human review of this revision. PatchSiren helps prioritize defensive review and does not prove exposure or remediation on any system.