# CVE-2026-138164: Gammu before 1.45.2 Stack-Based Buffer Overflow via SaveBackupText()

- Severity: Medium 4.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.37%, higher than 33% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-11-28T02:21:50.066Z
- Modified: 2026-11-30T17:18:49.847Z
- Weaknesses: CWE-121
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- Gammu Gammu: before 1.45.2

## Every score

- VulnCheck: CVSS:4.0 4.8 Medium `CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 3.3 Low `CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N`

## References

- <https://github.com/gammu/gammu/security/advisories/GHSA-f954-jx97-g68w> (exploit, vendor-advisory)
- <https://github.com/gammu/gammu/commit/6ea5148f35995aa8ca02b0c5e4654a125405e799> (patch)
- <https://github.com/gammu/gammu/releases/tag/1.45.2> (release-notes)
- <https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L165-L189> (technical-description)
- <https://github.com/gammu/gammu> (product)
- <https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-savebackuptext> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-138164](https://www.cve.org/CVERecord?id=CVE-2026-138164), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-138164](https://nvd.nist.gov/vuln/detail/CVE-2026-138164), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-138164 · Whole record: https://cve.day/CVE-2026-138164.json · Rebuilt by cve.day 2026-11-30T17:32:16.348Z
