{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "31.0.91"
              }
            ],
            "source": [
              "DESCRIPTION",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "57581b8bc2f73229d1f03dd5655aabb4a6de6183"
            },
            {
              "fixed": "b07e634e4cf45162ae0178e32092b040587f2c6c"
            }
          ],
          "repo": "https://github.com/emacs-mirror/emacs",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "VulnCheck",
    "cwe_ids": [
      "CWE-125",
      "CWE-190"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77219.json"
  },
  "details": "GNU Emacs before 31.0.91 contains an integer overflow in the PBM/PPM/PGM image loader that allows an attacker to leak heap memory contents by supplying a crafted image with large dimensions and an elevated max color index. The image loader multiplies image dimensions and channel count using signed integer arithmetic; for sufficiently large values, the result wraps to a negative number, bypassing the bounds check and causing the pixel reader to access heap memory past the end of the allocated buffer. The over-read contents are interpreted as pixel color values and rendered on screen.",
  "id": "CVE-2026-77219",
  "modified": "2026-08-23T03:42:45.016601801Z",
  "published": "2026-08-21T20:20:45.314Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/77xxx/CVE-2026-77219.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/emacs-mirror/emacs/releases/tag/emacs-31.0.91"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-77219"
    },
    {
      "type": "ADVISORY",
      "url": "https://www.vulncheck.com/advisories/gnu-emacs-heap-over-read-via-pbm-ppm-pgm-image-loader"
    },
    {
      "type": "REPORT",
      "url": "https://debbugs.gnu.org/cgi/bugreport.cgi?bug=81344"
    },
    {
      "type": "FIX",
      "url": "https://github.com/emacs-mirror/emacs/commit/b07e634e4cf45162ae0178e32092b040587f2c6c"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/emacs-mirror/emacs"
    }
  ],
  "schema_version": "1.9.0",
  "severity": [
    {
      "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:H/SC:N/SI:N/SA:N",
      "type": "CVSS_V4"
    }
  ],
  "summary": "GNU Emacs \u003c 31.0.91 Heap Over-Read via PBM/PPM/PGM Image Loader"
}