Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
4068 articles · 260936 vulns · 37/41 feeds (7d)
← Back to list
—
CVE-2026-112402PATCHED
python · pillow

Pillow: Double free in ImagingScaleAffine on calloc failure via Image.transform

Description

Pillow is a Python imaging library. Prior to 13.0.0, Pillow can double free image memory when ImagingScaleAffine encounters a selective allocation failure. The affected fast path handles Transform.EXTENT or pure scale-and-translate Transform.AFFINE operations with the default NEAREST resampling. The output image allocation must succeed while the additional per-column lookup allocation fails, after which the error path deletes image storage that later cleanup releases again. An attacker who can drive such a large Image.transform() operation under memory pressure may trigger the failure. This can crash the process and may corrupt memory. This issue is fixed in version 13.0.0.

Affected Products

VendorProductVersions
pythonpillowpip/Pillow: <= 12.3.0

Also Affects

Downstream vendors/products affected by this vulnerability

VendorProductSourceConfidence
fedorafedora linuxcert_advisory90%
red hatenterprise linuxcert_advisory90%
resfresf rocky linuxcert_advisory90%

References

  • https://github.com/python-pillow/Pillow/security/advisories/GHSA-7mwm-ghpf-9vrm(x_refsource_CONFIRM)
  • https://github.com/python-pillow/Pillow/commit/aafa6c75f7cdabb9f409a8aac7c780bea31d08d9(x_refsource_MISC)
  • https://github.com/python-pillow/Pillow/releases/tag/13.0.0(x_refsource_MISC)

Related News (3 articles)

Tier B
BSI Advisories6d ago
[NEU] [mittel] Red Hat Enterprise Linux (pillow and aspell): Mehrere Schwachstellen
→ No new info (linked only)
Tier C
oss-security15d ago
Pillow 13.0.0 fixes long list of vulnerabilities
→ No new info (linked only)
Tier C
VulDB17d ago
CVE-2026-112402 | python-pillow Pillow up to 12.x Transform ImagingScaleAffine double free
→ No new info (linked only)

Discussion (0)

Loading…

CISA KEV❌ No
Actively exploited❌ No
Patch available
Pillow@13.0.0
CWECWE-416
PublishedOct 19, 2026
Last enriched17d agov2
Trending Score30
Source articles3
Independent3
Info Completeness7/14
Missing: cvss, epss, kev, exploit, patch, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

CRITICALCVE-2026-112900
Pillow: Argument Injection in Ghostscript call, potentially leading into RCE
Trending: 43
CRITICALCVE-2026-112393
Pillow: Heap buffer overflow in _tiffWriteProc when saving TIFF to BytesIO
Trending: 39
CRITICALCVE-2026-112398
Pillow: Heap buffer overflow in FlashPix (FPX) JPEG decoding leads to code execution
Trending: 39
HIGHCVE-2026-112894
Pillow: Quadratic-time DoS in PDF save_all (PdfParser.next_object_id)
Trending: 30
HIGHCVE-2026-112392
Pillow: NULL dereference in ImagingExpand via rank filters on zero-size images
Trending: 30

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
Oct 19, 2026
Discovered by ZDM
Oct 19, 2026
Patch Available
Oct 19, 2026
Updated: severity, affectedVersions
Oct 19, 2026

Version History

v2
Last enriched 17d ago
v2Tier C17d ago

Updated severity from NONE to CRITICAL based on external classification; clarified affected versions include up to 12.x

severityaffectedVersions
via VulDB
v117d ago

Initial creation