{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.45.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "a1c60cf0888052dd489d416a817b24d35dca2689"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "1.45.2",
                "range": [
                  {
                    "fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
            },
            {
              "fixed": "a1c60cf0888052dd489d416a817b24d35dca2689"
            }
          ],
          "repo": "https://github.com/gammu/gammu",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-3x76-xc9w-q78p"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138162.json"
  },
  "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.",
  "id": "CVE-2026-138162",
  "modified": "2026-11-28T03:45:57.651262652Z",
  "published": "2026-11-28T02:21:52.313Z",
  "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"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Gammu before 1.45.2 Stack-Based Buffer Overflow via ALCATEL_EncodeString()"
}