{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "fixed": "1.45.2"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              },
              {
                "range": [
                  {
                    "fixed": "e0bf2fa08a78afebd493f7f00ea12ef9276ff52e"
                  }
                ],
                "source": "REFERENCES_COMMIT"
              },
              {
                "original_tag": "1.45.2",
                "range": [
                  {
                    "fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
                  }
                ],
                "source": "REFERENCES_TAG"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d8d301efea3a0a78ece68afa0c0cf8932f21202d"
            },
            {
              "fixed": "e0bf2fa08a78afebd493f7f00ea12ef9276ff52e"
            }
          ],
          "repo": "https://github.com/gammu/gammu",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-vppj-6q2c-vq79"
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-122"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138163.json"
  },
  "details": "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.",
  "id": "CVE-2026-138163",
  "modified": "2026-11-28T03:45:45.144468025Z",
  "published": "2026-11-28T02:21:51.192Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/138xxx/CVE-2026-138163.json"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/gammu/gammu"
    },
    {
      "type": "ARTICLE",
      "url": "https://github.com/gammu/gammu/blob/1.45.1/libgammu/service/backup/backtext.c#L2814-L2896"
    },
    {
      "type": "FIX",
      "url": "https://github.com/gammu/gammu/commit/e0bf2fa08a78afebd493f7f00ea12ef9276ff52e"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gammu/gammu/releases/tag/1.45.2"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/gammu/gammu/security/advisories/GHSA-vppj-6q2c-vq79"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-138163"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/gammu-before-1.45.2-heap-buffer-overflow-via-readwapsettingsentry"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "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",
      "type": "CVSS_V4"
    }
  ],
  "summary": "Gammu before 1.45.2 Heap Buffer Overflow via ReadWAPSettingsEntry()"
}