CVE catalog

CVE-2021-28678

pillow: CVE-2021-28678

[CVE catalog]

Severity
High · CVSS 7.5CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Published
Source
[NVD] · [CVE record]
EPSS
0.73% · Oct 25, 2026

An issue was discovered in Pillow before 8.2.0. For BLP data, BlpImagePlugin did not properly check that reads (after jumping to file offsets) returned data. This could lead to a DoS where the decoder could be run a large number of times on empty data.

Vulnerable and fixed packages

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

DistributionPackageReleaseVersionStatus
Debianpillowsid13.0.0-1fixed
Debianpillowforky12.3.0-1fixed
Debianpillowtrixie11.1.0-5+deb13u4fixed
Debianpillowtrixie-security11.1.0-5+deb13u3fixed
Debianpillowbookworm9.4.0-1.1+deb12u1fixed
Debianpillowbookworm-security9.4.0-1.1+deb12u1fixed
Alpinepy3-pillow3.148.2.0-r0fixed
Alpinepy3-pillow3.158.2.0-r0fixed
Ubuntupillow18.044.1.1-3build2vulnerable
Ubuntupillow18.044.3.0-2ubuntu1vulnerable
Ubuntupillow18.045.0.0-1vulnerable
Ubuntupillow18.045.1.0-1vulnerable
Ubuntupillow18.045.1.0-1ubuntu0.2vulnerable
Ubuntupillow18.045.1.0-1ubuntu0.3vulnerable
Ubuntupillow18.045.1.0-1ubuntu0.4vulnerable
Ubuntupillow18.045.1.0-1ubuntu0.5vulnerable
Ubuntupillow18.045.1.0-1ubuntu0.6fixed
Ubuntupillow20.046.1.0-1vulnerable
Ubuntupillow20.046.1.0-1build1vulnerable
Ubuntupillow20.046.2.1-2vulnerable
Ubuntupillow20.047.0.0-4vulnerable
Ubuntupillow20.047.0.0-4build1vulnerable
Ubuntupillow20.047.0.0-4ubuntu0.1vulnerable
Ubuntupillow20.047.0.0-4ubuntu0.2vulnerable
Ubuntupillow20.047.0.0-4ubuntu0.3vulnerable
Ubuntupillow20.047.0.0-4ubuntu0.4fixed
Ubuntupillow-python2pro6.2.1-3~build1vulnerable
Ubuntupillow-python2pro6.2.1-3vulnerable
Ubuntupillow-python2pro6.2.1-3ubuntu0.1~esm1vulnerable
Ubuntupillow-python2pro6.2.1-3ubuntu0.1~esm2vulnerable

Fixed-version evidence

DistributionPackageTypeReleaseFixed versionUrgencyOriginBugs
Debianpillowsourcesid8.1.2+dfsg-0.2not yet assignedNot reported[989062]
Debianpillowsourceforky8.1.2+dfsg-0.2not yet assignedNot reported[989062]
Debianpillowsourcetrixie8.1.2+dfsg-0.2not yet assignedNot reported[989062]
Debianpillowsourcebookworm8.1.2+dfsg-0.2not yet assignedNot reported[989062]
Alpinepy3-pillowapk3.148.2.0-r0Not reportedALPINE-CVE-2021-28678Not reported
Alpinepy3-pillowapk3.158.2.0-r0Not reportedALPINE-CVE-2021-28678Not reported
Ubuntupillowdeb18.045.1.0-1ubuntu0.6Not reportedUBUNTU-CVE-2021-28678Not reported
Ubuntupillowdeb20.047.0.0-4ubuntu0.4Not reportedUBUNTU-CVE-2021-28678Not reported

[Debian bug #989062]

OpenFactory catalog packages

Matching against OpenFactory catalog package versions is in progress.

[Debian 12 (Bookworm)]

  • [python3-pil]Unknown

    Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

  • Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · amd64 · bookworm

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · amd64 · bookworm-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · arm64 · bookworm-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

  • Source package: [pillow]

    Details (4)
    • 9.4.0-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · all · bookworm

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

    • 9.4.0-1.1+deb12u1 · all · bookworm-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · bookworm; dsa · pillow · debian · 12

[Debian 13 (Trixie)]

  • [python3-pil]Unknown

    Source package: [pillow]

    Details (4)
    • 11.1.0-5+deb13u4 · amd64 · trixie

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u4 · arm64 · trixie

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · arm64 · trixie-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

  • Source package: [pillow]

    Details (4)
    • 11.1.0-5+deb13u4 · amd64 · trixie

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u4 · arm64 · trixie

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · amd64 · trixie-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · arm64 · trixie-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

  • Source package: [pillow]

    Details (4)
    • 11.1.0-5+deb13u4 · all · trixie

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u4 · all · trixie

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · all · trixie-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

    • 11.1.0-5+deb13u3 · all · trixie-security

      Fixed · Fixed: 8.1.2+dfsg-0.2

      dsa · pillow · debian · 13

Observed:

References