CVE-2019-11039CWE-125

Out-of-bounds read in iconv.c

Medium · published June 18, 2019

CVSS v3.0
4.2
EPSS
3%
Percentile
87.8
In the wild
Unconfirmed
What it is

⚠️ An integer overflow in PHP's iconv_mime_decode_headers() could lead to unexpected information leaks or even crashes—like a restaurant misreading an order and serving way too much food! 🍽️ Think of it like a kitchen misinterpreting a recipe due to a typo, causing an overflow of ingredients that spill over onto the floor. In this case, the integer overflow allows the function to read beyond its intended memory space, creating potential chaos. An attacker could potentially access sensitive information or cause the application to crash, resulting in downtime and user frustration. This could lead to unauthorized data exposure, impacting both the application and its users in a surprisingly sneaky way!

Put simply

Think of it like a kitchen misinterpreting a recipe due to a typo, causing an overflow of ingredients that spill over onto the floor. In this case, the integer overflow allows the function to read beyond its intended memory space, creating potential chaos. The issue arises when the iconv_mime_decode_headers() function attempts to process MIME headers in PHP versions 7.1.x (below 7.1.30), 7.2.x (below 7.2.19), and 7.3.x (below 7.3.6), leading to out-of-bounds reads due to integer overflow.

What to do

An attacker could potentially access sensitive information or cause the application to crash, resulting in downtime and user frustration. This could lead to unauthorized data exposure, impacting both the application and its users in a surprisingly sneaky way! To safeguard your application, upgrade PHP to at least version 7.1.30, 7.2.19, or 7.3.6, depending on the version you're using. It's also wise to review your code for other potential vulnerabilities that might impact memory management. 🛡️ You've got this! By taking action today, you'll keep your application secure and running smoothly! 🚀

The record
Technical detail
CVSS v3.0
4.2 · MEDIUM
Vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:R/S:U/C:L/I:N/A:L
CVSS v4.0
Not supplied
EPSS
0.03130 · 87.8th percentile
Weakness
CWE-125 · Out-of-bounds Read
Published
2019-06-18T23:28Z
EPSS history
Timeline
  • 18 JUN 23:28Z
    Out-of-bounds read in iconv.c
    cvelistv5