CVE-2011-3182: PHP before 5.3.7 does not properly check the return values of the malloc, calloc, and realloc library functions, which allows context-dep…

CVE-2011-3182 affects 24 listed versions of PHP in the Dawnsentry catalogue.

5.0CVSS medium
None knownexploitation
19%EPSS (next 30 days)
25 August 2011published

Affected products and versions

The versions in the Dawnsentry catalogue this CVE affects, judged from the vendor's own advisory where there is one, otherwise from the CVE record and NVD, as each version's own page says.

PHP

24 of 250 listed versions are affected. No fixed release is named. The newest release, 8.6.0, is not affected.

5.2.17 5.2.16 5.2.15 5.2.14 5.2.13 5.2.12 5.2.11 5.2.10 5.2.9 5.2.8 5.2.7 5.2.6 5.2.5 5.2.4 5.2.3 5.1.6 5.1.5 5.1.4 5.1.3 5.1.2 5.1.1 5.1.0 5.0.5 5.0.4

What it is

PHP before 5.3.7 does not properly check the return values of the malloc, calloc, and realloc library functions, which allows context-dependent attackers to cause a denial of service (NULL pointer dereference and application crash) or trigger a buffer overflow by leveraging the ability to provide an arbitrary value for a function argument, related to (1) ext/curl/interface.c, (2) ext/date/lib/parse_date.c, (3) ext/date/lib/parse_iso_intervals.c, (4) ext/date/lib/parse_tz.c, (5) ext/date/lib/timelib.c, (6) ext/pdo_odbc/pdo_odbc.c, (7) ext/reflection/php_reflection.c, (8) ext/soap/php_sdl.c, (9) ext/xmlrpc/libxmlrpc/base64.c, (10) TSRM/tsrm_win32.c, and (11) the strtotime function.

AV:N/AC:L/Au:N/C:N/I:N/A:P (NVD)

Published by Red Hat on 25 August 2011. Last changed 16 June 2026.

Sources

Check one version you run: look CVE-2011-3182 up, or pick a product and version in the quick lookup.

Updated 1 December 2026.