{"id":"CVE-2026-40505","aliases":["CVE-2026-40505"],"related":[],"kind":"vulnerability","state":"published","title":"MuPDF < 1.27 mutool ANSI Injection via Metadata","summary":"MuPDF before 1.27 contains an ANSI injection vulnerability in mutool that allows attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata fields. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to terminal output when running mutool info, enabling them to manipulate terminal display for social engineering attacks such as presenting fake prompts or spoofed commands.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"MuPDF before 1.27 contains an ANSI injection vulnerability in mutool that allows attackers to inject arbitrary ANSI escape sequences through crafted PDF metadata fields. Attackers can embed malicious ANSI escape codes in PDF metadata that are passed unsanitized to terminal output when running mutool info, enabling them to manipulate terminal display for social engineering attacks such as presenting fake prompts or spoofed commands.","source":"cvelist"},{"lang":"es","text":"MuPDF anterior a 1.27 contiene una vulnerabilidad de inyección ANSI en mutool que permite a los atacantes inyectar secuencias de escape ANSI arbitrarias a través de campos de metadatos PDF creados maliciosamente. Los atacantes pueden incrustar códigos de escape ANSI maliciosos en los metadatos del PDF que se pasan sin sanear a la salida de la terminal al ejecutar mutool info, lo que les permite manipular la visualización de la terminal para ataques de ingeniería social, como presentar avisos falsos o comandos suplantados.","source":"nvd"}],"published":"2026-04-16T01:20:08.397Z","modified":"2026-11-08T14:02:51.444Z","severity":{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":4.8,"rating":"MEDIUM"},"severities":[{"scorer":"VulnCheck","scheme":"CVSS:4.0","vector":"CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N","score":4.8,"rating":"MEDIUM"},{"scorer":"VulnCheck","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:L/A:N","score":3.3,"rating":"LOW"}],"cwes":["CWE-150"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.27.0","status":"affected"},{"type":"git","version":"0f17d789fe8c29b41e47663be82514aaca3a4dfb","status":"affected"}],"vendor":"Artifex Software Inc.","product":"MuPDF","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"1.27.0"}],"vendor":"artifex","product":"mupdf","cpe":"cpe:2.3:a:artifex:mupdf:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://github.com/ArtifexSoftware/mupdf/releases/tag/1.27.0","tags":["product","release-notes"],"sources":["cvelist","nvd"]},{"url":"https://github.com/ArtifexSoftware/mupdf/commit/0f17d789fe8c29b41e47663be82514aaca3a4dfb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://cgit.ghostscript.com/cgi-bin/cgit.cgi/mupdf.git/commit/?id=0f17d789fe8c29b41e47663be82514aaca3a4dfb","tags":["issue-tracking","patch"],"sources":["cvelist","nvd"]},{"url":"https://www.vulncheck.com/advisories/mupdf-mutool-ansi-injection-via-metadata","tags":["third-party-advisory"],"sources":["cvelist","nvd"]}],"credits":["Niel Duysters"],"assigner":"VulnCheck","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-16T13:53:13.801Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-40505","url":"https://www.cve.org/CVERecord?id=CVE-2026-40505","licence":"CVE Terms of Use","modified":"2026-11-08T14:02:51.444Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-40505","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-40505","licence":"Public domain","modified":"2026-10-26T21:10:00.170Z"}],"updatedAt":"2026-11-25T22:59:18.887Z","epss":{"score":0.00173,"percentile":0.06969,"date":"2026-12-01T12:00:22.000Z"}}