{"id":"CVE-2026-138162","summary":"Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()","details":"Gammu before 1.45.2 contains a stack-based buffer overflow vulnerability in ALCATEL_EncodeString() that allows attackers to overwrite stack memory via oversized encoded phonebook text. Attackers can supply a crafted backup restored with gammu restore or addnew to an attached Alcatel phone, using GSM extension characters to crash Gammu or potentially execute code.","aliases":["GHSA-3x76-xc9w-q78p"],"modified":"2026-11-28T04:00:32.897799564Z","published":"2026-11-28T02:21:52.313Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138162.json","cna_assigner":"VulnCheck","cwe_ids":["CWE-121"]},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138162.json"},{"type":"PACKAGE","url":"https://github.com/gammu/gammu"},{"type":"ARTICLE","url":"https://github.com/gammu/gammu/blob/1.45.1/libgammu/phone/alcatel/alcatel.c#L876-L916"},{"type":"FIX","url":"https://github.com/gammu/gammu/commit/a1c60cf0888052dd489d416a817b24d35dca2689"},{"type":"ADVISORY","url":"https://github.com/gammu/gammu/releases/tag/1.45.2"},{"type":"ADVISORY","url":"https://github.com/gammu/gammu/security/advisories/GHSA-3x76-xc9w-q78p"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-138162"},{"type":"ADVISORY","url":"https://www.vulncheck.com/advisories/gammu-before-1.45.2-stack-based-buffer-overflow-via-alcatel-encodestring"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/gammu/gammu","events":[{"introduced":"0"},{"fixed":"d8d301efea3a0a78ece68afa0c0cf8932f21202d"},{"fixed":"a1c60cf0888052dd489d416a817b24d35dca2689"}],"database_specific":{"extracted_events":[{"range":[{"introduced":"0"},{"fixed":"1.45.2"}],"source":"AFFECTED_FIELD","strategy":"StandardRange"},{"range":[{"fixed":"a1c60cf0888052dd489d416a817b24d35dca2689"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"d8d301efea3a0a78ece68afa0c0cf8932f21202d"}],"source":"REFERENCES_TAG","original_tag":"1.45.2"}]}}],"versions":["1.45.1","1.45.0","1.44.1","1.44.0","1.43.3","1.43.2","1.43.1","1.43.0","1.42.0","1.41.0","1.40.0","1.39.0","1.38.4","1.38.3","1.38.2","1.38.1","1.38.0","1.37.91","1.37.90","1.37.4","1.37.3","1.37.2","1.37.1","1.37.0","1.36.8","1.36.7","1.36.6","1.36.5","1.36.4","1.36.3","1.36.2","1.36.1","1.36.0","1.35.0","1.34.0","1.33.0","1.32.0","1.31.90","1.31.0","1.30.92","1.30.91","1.30.0","1.29.93","1.29.92","1.29.91","1.29.90","1.29.0","1.28.95","1.28.94","1.28.93","1.28.92","1.28.91","1.28.90","1.28.0","1.27.95","1.27.94","1.27.93","1.27.92","1.27.91","1.27.90","1.27.0","1.26.93","1.26.92","1.26.91","1.26.90","1.26.1","1.26.0","1.25.93","1.25.92","1.25.91","1.25.90","1.25.0","1.24.92","1.24.91","1.24.90","1.24.0","1.23.92","1.23.91","1.23.1","1.23.0","1.22.95","1.22.93","1.22.92","1.22.91","1.22.1","1.22.0","1.21.94","1.21.93","1.21.92","1.21.91","1.21.90","1.21.0","1.20.94","1.20.93","1.20.92","1.20.91","1.20.90","1.20.0","1.19.91","1.19.90","1.19.0","1.18.91","1.18.90","1.18.0","1.17.92","1.17.91","1.17.90","1.17.0","1.16.0","1.15.91","1.15.90","1.15.0","1.14.90","1.14.0","1.13.96","1.13.95","1.13.94","1.13.93","1.13.92","1.13.91","1.13.90","1.13.0","1.12.94","1.12.93","1.12.92","1.12.91","1.12.90","1.12.0","1.11.92","1.11.91","1.11.90","1.11.0","1.10.5","1.10.4","1.10.2","1.10.1","1.09.19","1.09.17"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-138162.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V4","score":"CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"}]}