Search for vulnerabilities
Vulnerability details: VCID-zkmc-8kzj-hqa4
Vulnerability ID VCID-zkmc-8kzj-hqa4
Aliases BIT-pillow-2021-25287
CVE-2021-25287
GHSA-77gc-v2xv-rvvh
PYSEC-2021-137
Summary An issue was discovered in Pillow before 8.2.0. There is an out-of-bounds read in J2kDecode, in j2ku_graya_la.
Status Published
Exploitability 0.5
Weighted Severity 8.2
Risk 4.1
Affected and Fixed Packages Package Details
Weaknesses (3)
System Score Found at
cvssv3 9.1 https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-25287.json
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
epss 0.00263 https://api.first.org/data/v1/epss?cve=CVE-2021-25287
cvssv3.1 8.2 https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
cvssv3.1 9.1 https://github.com/advisories/GHSA-77gc-v2xv-rvvh
cvssv3.1_qr HIGH https://github.com/advisories/GHSA-77gc-v2xv-rvvh
generic_textual HIGH https://github.com/advisories/GHSA-77gc-v2xv-rvvh
cvssv3.1 9.1 https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-137.yaml
generic_textual HIGH https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-137.yaml
cvssv3.1 9.1 https://github.com/python-pillow/Pillow
generic_textual HIGH https://github.com/python-pillow/Pillow
cvssv3.1 9.1 https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
generic_textual HIGH https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
cvssv3.1 9.1 https://github.com/python-pillow/Pillow/pull/5377/commits/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
generic_textual HIGH https://github.com/python-pillow/Pillow/pull/5377/commits/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
cvssv3.1 9.1 https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
generic_textual HIGH https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
cvssv3.1 9.1 https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
generic_textual HIGH https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
cvssv2 6.4 https://nvd.nist.gov/vuln/detail/CVE-2021-25287
cvssv3.1 9.1 https://nvd.nist.gov/vuln/detail/CVE-2021-25287
generic_textual HIGH https://nvd.nist.gov/vuln/detail/CVE-2021-25287
cvssv3.1 9.1 https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
generic_textual HIGH https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
cvssv3.1 9.1 https://security.gentoo.org/glsa/202107-33
generic_textual HIGH https://security.gentoo.org/glsa/202107-33
Reference id Reference type URL
https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-25287.json
https://api.first.org/data/v1/epss?cve=CVE-2021-25287
https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2021-25287
https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
https://github.com/advisories/GHSA-77gc-v2xv-rvvh
https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-137.yaml
https://github.com/python-pillow/Pillow
https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
https://github.com/python-pillow/Pillow/pull/5377/commits/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL/
https://nvd.nist.gov/vuln/detail/CVE-2021-25287
https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
https://security.gentoo.org/glsa/202107-33
1958226 https://bugzilla.redhat.com/show_bug.cgi?id=1958226
989062 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=989062
cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:a:python:pillow:*:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:* https://nvd.nist.gov/vuln/search/results?adv_search=true&isCpeNameSearch=true&query=cpe:2.3:o:fedoraproject:fedora:33:*:*:*:*:*:*:*
RHSA-2021:4149 https://access.redhat.com/errata/RHSA-2021:4149
USN-4963-1 https://usn.ubuntu.com/4963-1/
No exploits are available.
Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2021-25287.json
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H Found at https://ftp.suse.com/pub/projects/security/yaml/suse-cvss-scores.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://github.com/advisories/GHSA-77gc-v2xv-rvvh
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2021-137.yaml
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://github.com/python-pillow/Pillow
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://github.com/python-pillow/Pillow/commit/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://github.com/python-pillow/Pillow/pull/5377/commits/3bf5eddb89afdf690eceaa52bc4d3546ba9a5f87
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://github.com/python-pillow/Pillow/pull/5377#issuecomment-833821470
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/MQHA5HAIBOYI3R6HDWCLAGFTIQP767FL
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: AV:N/AC:L/Au:N/C:P/I:N/A:P Found at https://nvd.nist.gov/vuln/detail/CVE-2021-25287
Exploitability (E) Access Vector (AV) Access Complexity (AC) Authentication (Au) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

high

functional

unproven

proof_of_concept

not_defined

local

adjacent_network

network

high

medium

low

multiple

single

none

none

partial

complete

none

partial

complete

none

partial

complete

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://nvd.nist.gov/vuln/detail/CVE-2021-25287
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://pillow.readthedocs.io/en/stable/releasenotes/8.2.0.html#cve-2021-25287-cve-2021-25288-fix-oob-read-in-jpeg2kdecode
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H Found at https://security.gentoo.org/glsa/202107-33
Attack Vector (AV) Attack Complexity (AC) Privileges Required (PR) User Interaction (UI) Scope (S) Confidentiality Impact (C) Integrity Impact (I) Availability Impact (A)

network

adjacent_network

local

physical

low

high

none

low

high

none

required

unchanged

changed

high

low

none

high

low

none

high

low

none

Exploit Prediction Scoring System (EPSS)
Percentile 0.49558
EPSS Score 0.00263
Published At July 30, 2025, 12:55 p.m.
Date Actor Action Source VulnerableCode Version
2025-07-31T08:16:22.457451+00:00 Pypa Importer Import https://github.com/pypa/advisory-database/blob/main/vulns/pillow/PYSEC-2021-137.yaml 37.0.0