CVE catalog

CVE-2026-40505

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

[CVE catalog]

Severity
Medium · CVSS 4.8CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Published
Source
[NVD] · [CVE record]
EPSS
0.17% · Oct 25, 2026

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.

Vulnerable and fixed packages

Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.

DistributionPackageReleaseVersionStatus
Debianmupdfsid1.28.2+ds1-2fixed
Debianmupdfforky1.28.2+ds1-2fixed
Debianmupdftrixie1.25.1+ds1-6+deb13u1vulnerable
Debianmupdftrixie-security1.25.1+ds1-6+deb13u1vulnerable
Debianmupdfbookworm1.21.1+ds2-1+deb12u1vulnerable
Debianmupdfbookworm-security1.21.1+ds2-1+deb12u1vulnerable
CpemupdfNot reportedNot reportedvulnerable
CpemupdfNot reported1.27.0fixed
CpemupdfNot reported1.27.0fixed

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianmupdfsourcesid1.27.0+ds1-5not yet assignedNot reported[1134199]
Debianmupdfsourceforky1.27.0+ds1-5not yet assignedNot reported[1134199]
Debianmupdfsourcetrixie(unfixed)not yet assignedNot reported[1134199]
Debianmupdfsourcebookworm(unfixed)not yet assignedNot reported[1134199]
CpemupdfcpeNot reported1.27.0Not reportedNot reportedNot reported
CpemupdfcpeNot reported1.27.0Not reportedNVD-CVE-2026-40505Not reported

[Debian bug #1134199]

Notes

[trixie] mupdf: Minor issue [bookworm] mupdf: Minor issue

OpenFactory catalog packages

[Debian 12 (Bookworm)]

  • [libmupdf-dev]Affected

    Source package: [mupdf]

    Details (4)
    • 1.21.1+ds2-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

  • [mupdf]Affected
    Details (4)
    • 1.21.1+ds2-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

  • [mupdf-tools]Affected

    Source package: [mupdf]

    Details (4)
    • 1.21.1+ds2-1+deb12u1 · amd64 · bookworm

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · arm64 · bookworm

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · amd64 · bookworm-security

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

    • 1.21.1+ds2-1+deb12u1 · arm64 · bookworm-security

      Affected

      nvd · mupdf · debian · bookworm; nvd · mupdf · debian · 12

[Debian 13 (Trixie)]

  • [libmupdf25.1]Affected

    Source package: [mupdf]

    Details (4)
    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

  • [libmupdf-dev]Affected

    Source package: [mupdf]

    Details (4)
    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

  • [mupdf]Affected
    Details (4)
    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

  • [mupdf-tools]Affected

    Source package: [mupdf]

    Details (4)
    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

  • [python3-mupdf]Affected

    Source package: [mupdf]

    Details (4)
    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · amd64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

    • 1.25.1+ds1-6+deb13u1 · arm64 · trixie-security

      Affected

      nvd · mupdf · debian · 13

Observed:

References