Skip to content
Heist/ feed
Back to feed
MediumFix available

py3-pillow — security advisory

Type: advisorySources: OSVAdvisory ID: ALPINE-CVE-2021-28678

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.

Products
py3-pillow
Affected versions
Not specified
Fixed versions
8.2.0-r0
CVEs
CVE-2021-28678
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 22:03 UTC · Revision 1

Source evidence

ALPINE-CVE-2021-28678

core-osv · Original source

Published 2 Jun 2021, 16:15 UTC

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.

osv:ALPINE-CVE-2021-28678

py3-pillow

Fixed versions: 8.2.0-r0

py3-pillow

Fixed versions: 8.2.0-r0

Complete source record
{
  "id": "c1ac79b81eb152140bdad6634002a12ee111f8f4edfb83c67d8430b9c50df021",
  "url": "https://osv.dev/vulnerability/ALPINE-CVE-2021-28678",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "ALPINE-CVE-2021-28678",
    "summary": "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.",
    "evidence": "osv:ALPINE-CVE-2021-28678",
    "products": [
      {
        "name": {
          "value": "py3-pillow",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "8.2.0-r0",
            "evidence": "/affected/0/ranges"
          }
        ],
        "affected_versions": []
      },
      {
        "name": {
          "value": "py3-pillow",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "8.2.0-r0",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "ALPINE-CVE-2021-28678",
      "aliases": [
        "ALPINE-CVE-2021-28678"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8.2.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-pillow",
            "purl": "pkg:apk/alpine/py3-pillow?arch=source",
            "ecosystem": "Alpine:v3.14"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28678.json"
          },
          "ecosystem_specific": {}
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "8.2.0-r0"
                }
              ]
            }
          ],
          "package": {
            "name": "py3-pillow",
            "purl": "pkg:apk/alpine/py3-pillow?arch=source",
            "ecosystem": "Alpine:v3.15"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/alpine/ALPINE-CVE-2021-28678.json"
          },
          "ecosystem_specific": {}
        }
      ],
      "modified": "2026-10-23T17:17:56.171624729Z",
      "provider": "osv",
      "upstream": [
        "CVE-2021-28678"
      ],
      "references": [
        "https://security.alpinelinux.org/vuln/CVE-2021-28678"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2021-28678",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 415383,
  "published_at": "2021-06-02T16:15:08.86+00:00"
}