{"id":"UBUNTU-CVE-2026-120752","details":"PyMuPDF 1.25.3 before 2.0 contains a stack-based buffer overflow vulnerability in JM_set_annot_callout_line() that copies a caller-supplied number of callout points into a fixed three-element stack array. Attackers who control the callout argument passed to Page.add_freetext_annot() can supply four or more points to overwrite the stack frame, crashing the process or executing code.","modified":"2026-11-04T03:30:45.794523220Z","published":"2026-11-03T00:00:00Z","upstream":["CVE-2026-120752"],"references":[{"type":"REPORT","url":"https://ubuntu.com/security/CVE-2026-120752"},{"type":"REPORT","url":"https://www.cve.org/CVERecord?id=CVE-2026-120752"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/issues/5112"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/issues/5173"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/blob/1.28.2/src/extra.i#L787-L797"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/commit/d4298ead84ceeae1c9065c81cd9a275a1b092f5e"},{"type":"REPORT","url":"https://github.com/pymupdf/PyMuPDF/releases/tag/2.0"},{"type":"REPORT","url":"https://www.vulncheck.com/advisories/pymupdf-1.25.3-before-2.0-stack-buffer-overflow-via-add-freetext-annot-callout"}],"affected":[{"package":{"name":"pymupdf","ecosystem":"Ubuntu:20.04:LTS","purl":"pkg:deb/ubuntu/pymupdf?arch=source&distro=focal"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.16.11-1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-fitz","binary_version":"1.16.11-1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120752.json"}},{"package":{"name":"pymupdf","ecosystem":"Ubuntu:22.04:LTS","purl":"pkg:deb/ubuntu/pymupdf?arch=source&distro=jammy"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.17.4+ds1-2build2","1.17.4+ds1-2build3","1.19.2+ds1-1ubuntu1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-fitz","binary_version":"1.19.2+ds1-1ubuntu1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120752.json"}},{"package":{"name":"pymupdf","ecosystem":"Ubuntu:24.04:LTS","purl":"pkg:deb/ubuntu/pymupdf?arch=source&distro=noble"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.22.5+ds1-1","1.22.5+ds1-1build1","1.22.5+ds1-1build2","1.23.7+ds1-1ubuntu1","1.23.7+ds1-1ubuntu2"],"ecosystem_specific":{"binaries":[{"binary_version":"1.23.7+ds1-1ubuntu2","binary_name":"python3-fitz"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120752.json"}},{"package":{"name":"pymupdf","ecosystem":"Ubuntu:26.10","purl":"pkg:deb/ubuntu/pymupdf?arch=source&distro=stonking"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.26.7+ds1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-fitz","binary_version":"1.26.7+ds1-1build1"},{"binary_name":"python3-pymupdf","binary_version":"1.26.7+ds1-1build1"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120752.json"}},{"package":{"name":"pymupdf","ecosystem":"Ubuntu:26.04:LTS","purl":"pkg:deb/ubuntu/pymupdf?arch=source&distro=resolute"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.25.4+ds1-4","1.26.7+ds1-1","1.26.7+ds1-1build1"],"ecosystem_specific":{"binaries":[{"binary_name":"python3-fitz","binary_version":"1.26.7+ds1-1build1"},{"binary_version":"1.26.7+ds1-1build1","binary_name":"python3-pymupdf"}]},"database_specific":{"source":"https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2026/UBUNTU-CVE-2026-120752.json"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N"},{"type":"Ubuntu","score":"medium"}]}