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-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.
What to do
Likely to be exploited: EPSS gives a 19% chance of exploitation in the next 30 days. Treat it as urgent if you run an affected version.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Red Hat Enterprise Linux 6 | php | Not affected | ||
| Red Hat Enterprise Linux 6 | php-bcmath | Not affected | ||
| Red Hat Enterprise Linux 6 | php-cli | Not affected | ||
| Red Hat Enterprise Linux 6 | php-common | Not affected | ||
| Red Hat Enterprise Linux 6 | php-dba | Not affected | ||
| Red Hat Enterprise Linux 6 | php-devel | Not affected | ||
| Red Hat Enterprise Linux 6 | php-embedded | Not affected | ||
| Red Hat Enterprise Linux 6 | php-enchant | Not affected | ||
| Red Hat Enterprise Linux 6 | php-fpm | Not affected | ||
| Red Hat Enterprise Linux 6 | php-gd | Not affected | ||
| Red Hat Enterprise Linux 6 | php-imap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-intl | Not affected | ||
| Red Hat Enterprise Linux 6 | php-ldap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mbstring | Not affected | ||
| Red Hat Enterprise Linux 6 | php-mysql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-odbc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pdo | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pgsql | Not affected | ||
| Red Hat Enterprise Linux 6 | php-process | Not affected | ||
| Red Hat Enterprise Linux 6 | php-pspell | Not affected | ||
| Red Hat Enterprise Linux 6 | php-recode | Not affected | ||
| Red Hat Enterprise Linux 6 | php-snmp | Not affected | ||
| Red Hat Enterprise Linux 6 | php-soap | Not affected | ||
| Red Hat Enterprise Linux 6 | php-tidy | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xml | Not affected | ||
| Red Hat Enterprise Linux 6 | php-xmlrpc | Not affected | ||
| Red Hat Enterprise Linux 6 | php-zts | Not affected | ||
| Red Hat Enterprise Linux 5 | php | Not affected | ||
| Red Hat Enterprise Linux 5 | php53 | Not affected | ||
| Red Hat Enterprise Linux 4 | php | Not affected |
What the vendor says
As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
Vendor advisories:
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:165 (vendor-advisory)
- http://lists.apple.com/archives/security-announce/2012/Feb/msg00000.html (vendor-advisory)
References
- http://support.apple.com/kb/HT5130
- http://www.mandriva.com/security/advisories?name=MDVSA-2011:165
- http://lists.apple.com/archives/security-announce/2012/Feb/msg00000.html
- https://exchange.xforce.ibmcloud.com/vulnerabilities/69430
- http://securityreason.com/achievement_securityalert/101
- http://www.openwall.com/lists/oss-security/2011/08/22/9
- http://www.securityfocus.com/bid/49249
- http://marc.info/?l=full-disclosure&m=131373057621672&w=2
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.