Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. Pillow
  4. ›
  5. CVE-2020-5312

CVE-2020-5312: PCX P mode buffer overflow in Pillow

November 3, 2021 (updated October 8, 2024)

libImaging/PcxDecode.c in Pillow before 6.2.2 has a PCX P mode buffer overflow.

References

  • access.redhat.com/errata/RHSA-2020:0566
  • access.redhat.com/errata/RHSA-2020:0578
  • access.redhat.com/errata/RHSA-2020:0580
  • access.redhat.com/errata/RHSA-2020:0681
  • access.redhat.com/errata/RHSA-2020:0683
  • access.redhat.com/errata/RHSA-2020:0694
  • github.com/advisories/GHSA-p49h-hjvm-jg3h
  • github.com/pypa/advisory-database/tree/main/vulns/pillow/PYSEC-2020-83.yaml
  • github.com/pypa/advisory-db/blob/7872b0a91b4d980f749e6d75a81f8cc1af32829f/vulns/pillow/PYSEC-2020-83.yaml
  • github.com/python-pillow/Pillow
  • github.com/python-pillow/Pillow/commit/93b22b846e0269ee9594ff71a72bec02d2bea8fd
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/2MMU3WT2X64GS5WHDPKKC2WZA7UIIQ3A
  • lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/3DUMIBUYGJRAVJCTFUWBRLVQKOUTVX5P
  • nvd.nist.gov/vuln/detail/CVE-2020-5312
  • pillow.readthedocs.io/en/stable/releasenotes/6.2.2.html
  • usn.ubuntu.com/4272-1
  • www.debian.org/security/2020/dsa-4631

Code Behaviors & Features

Detect and mitigate CVE-2020-5312 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 6.2.2

Fixed versions

  • 6.2.2

Solution

Upgrade to version 6.2.2 or above.

Impact 9.8 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-120: Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Source file

pypi/Pillow/CVE-2020-5312.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:30 +0000.