CVE-2016-4009

Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecified impact…

published April 13, 2016

CVSS
—
EPSS
8%
Percentile
94.7
In the wild
Unconfirmed
What it is

⚠️ A negative size value? In the world of Pillow, that could trigger a heap-based buffer overflow! 🤯 Think of it as a printer that misprints due to a bizarre command: instead of scaling down the image to a manageable size, it tries to print it at an impossible negative dimension, overwhelming itself and spilling ink everywhere! 🖨️ This could allow an attacker to craft a malicious input, leading to memory corruption or other unspecified impacts. While it's not a direct breach, the chaos it can create in your application can be absolutely devastating!

Put simply

Think of it as a printer that misprints due to a bizarre command: instead of scaling down the image to a manageable size, it tries to print it at an impossible negative dimension, overwhelming itself and spilling ink everywhere! 🖨️ CVE-2016-4009 is an integer overflow vulnerability in the ImagingResampleHorizontal function of Pillow before version 3.1.1. By supplying negative values for the new size, attackers can trigger a heap-based buffer overflow, which could lead to unpredictable behavior.

What to do

This could allow an attacker to craft a malicious input, leading to memory corruption or other unspecified impacts. While it's not a direct breach, the chaos it can create in your application can be absolutely devastating! To safeguard your application, upgrade Pillow to version 3.1.1 or later immediately. Additionally, review your handling of image sizes to ensure that negative values cannot be passed through in any context. 🛡️ You've got this! Just follow these steps, and you’ll keep your app safe and sound. ✨

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.07871 · 94.7th percentile
Published
2016-04-13T16:00Z
EPSS history
Timeline
  • 13 APR 16:00Z
    Integer overflow in the ImagingResampleHorizontal function in libImaging/Resample.c in Pillow before 3.1.1 allows remote attackers to have unspecified impact…
    cvelistv5