{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"MODERATE\"}"}}}], "affected": [{"vendor": "oraclelinux", "product": "php", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-bcmath", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-cli", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-common", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-dba", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-gd", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-imap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-ldap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-mbstring", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-mysql", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-ncurses", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-odbc", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-pdo", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-pgsql", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-snmp", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-soap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-xml", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}, {"vendor": "oraclelinux", "product": "php-xmlrpc", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:oracle:linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://linux.oracle.com/cve/CVE-2007-4782.html"}], "descriptions": [{"lang": "en", "value": "PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a *[1]e value. NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution.\nThe GNU C Library (aka glibc or libc6) before 2.12.2 and Embedded GLIBC (EGLIBC) allow context-dependent attackers to execute arbitrary code or cause a denial of service (memory consumption) via a long UTF8 string that is used in an fnmatch call, aka a stack extension attack, a related issue to CVE-2010-2898, CVE-2010-1917, and CVE-2007-4782, as originally reported for use of this library by Google Chrome."}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000006", "shortName": "oraclelinux", "dateUpdated": "2008-07-16T00:00:00Z", "x_subShortName": "oraclelinux"}}, {"metrics": [{"other": {"type": "Unknown", "content": {"data": "{\"description\":\"Moderate\"}"}}}], "affected": [{"vendor": "redhat", "product": "php", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-bcmath", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-cli", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-common", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-dba", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-devel", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-gd", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-imap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-ldap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-mbstring", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-mysql", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-ncurses", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-odbc", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-pdo", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-pgsql", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-snmp", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-soap", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-xml", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}, {"vendor": "redhat", "product": "php-xmlrpc", "versions": [{"status": "affected", "version": "0", "lessThan": "0:5.1.6-20.el5_2.1", "versionType": "rpm"}], "platforms": ["cpe:/o:redhat:enterprise_linux:5"], "defaultStatus": "unaffected"}], "references": [{"url": "https://access.redhat.com/errata/RHSA-2008:0544"}, {"url": "https://access.redhat.com/security/cve/CVE-2007-4782"}], "descriptions": [{"lang": "en", "value": "PHP is an HTML-embedded scripting language commonly used with the Apache\nHTTP Web server.\n\nIt was discovered that the PHP escapeshellcmd() function did not properly\nescape multi-byte characters which are not valid in the locale used by the\nscript. This could allow an attacker to bypass quoting restrictions imposed\nby escapeshellcmd() and execute arbitrary commands if the PHP script was\nusing certain locales. Scripts using the default UTF-8 locale are not\naffected by this issue. (CVE-2008-2051)\n\nPHP functions htmlentities() and htmlspecialchars() did not properly\nrecognize partial multi-byte sequences. Certain sequences of bytes could be\npassed through these functions without being correctly HTML-escaped.\nDepending on the browser being used, an attacker could use this flaw to\nconduct cross-site scripting attacks. (CVE-2007-5898)\n\nA PHP script which used the transparent session ID configuration option, or\nwhich used the output_add_rewrite_var() function, could leak session\nidentifiers to external web sites. If a page included an HTML form with an\nACTION attribute referencing a non-local URL, the user's session ID would\nbe included in the form data passed to that URL. (CVE-2007-5899)\n\nIt was discovered that PHP fnmatch() function did not restrict the length\nof the string argument. An attacker could use this flaw to crash the PHP\ninterpreter where a script used fnmatch() on untrusted input data.\n(CVE-2007-4782)\n\nIt was discovered that PHP did not properly seed its pseudo-random number\ngenerator used by functions such as rand() and mt_rand(), possibly allowing\nan attacker to easily predict the generated pseudo-random values.\n(CVE-2008-2107, CVE-2008-2108)\n\nUsers of PHP should upgrade to these updated packages, which contain\nbackported patches to correct these issues."}], "providerMetadata": {"orgId": "53f830b8-0a3f-465b-8143-3b8a9948e749", "shortName": "redhat", "dateUpdated": "2007-09-04T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 5, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:N/I:N/A:P", "authentication": "NONE", "integrityImpact": "NONE", "accessComplexity": "LOW", "availabilityImpact": "PARTIAL", "confidentialityImpact": "NONE"}}], "affected": [{"cpes": ["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"], "vendor": "php", "product": "php", "versions": [{"status": "affected", "version": "0", "versionType": "custom", "lessThanOrEqual": "5.2.3"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://www.securityfocus.com/archive/1/478726/100/0/threaded", "tags": ["exploit"]}, {"url": "http://lists.opensuse.org/opensuse-security-announce/2008-01/msg00006.html"}, {"url": "http://osvdb.org/38686"}, {"url": "http://secunia.com/advisories/27102"}, {"url": "http://secunia.com/advisories/28658"}, {"url": "http://secunia.com/advisories/30828"}, {"url": "http://secunia.com/advisories/31119"}, {"url": "http://secunia.com/advisories/31200"}, {"url": "http://securityreason.com/securityalert/3109"}, {"url": "http://www.gentoo.org/security/en/glsa/glsa-200710-02.xml"}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2009:022"}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2009:023"}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0505.html"}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0544.html"}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0545.html"}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0582.html"}, {"url": "http://www.securityfocus.com/archive/1/478626/100/0/threaded"}, {"url": "http://www.securityfocus.com/archive/1/478630/100/0/threaded"}, {"url": "http://www.ubuntu.com/usn/usn-628-1"}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36457"}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/36461"}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10897"}, {"url": "https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html"}], "descriptions": [{"lang": "en", "value": "PHP before 5.2.3 allows context-dependent attackers to cause a denial of service (application crash) via (1) a long string in the pattern parameter to the glob function; or (2) a long string in the string parameter to the fnmatch function, accompanied by a pattern parameter value with undefined characteristics, as demonstrated by a \"*[1]e\" value.  NOTE: this might not be a vulnerability in most web server environments that support multiple threads, unless these issues can be demonstrated for code execution."}, {"lang": "es", "value": "PHP anterior a 5.2.3 permite a atacantes dependientes del contexto provocar denegación de servicio (caida de aplicación) a través de una (1) cadena larga en el parámetro pattern en el función glob; o (2) un cadena larga en el parámetro string en la función fnmatch, acompañado de un valor de parámetro pattern con características no definidas, como se demostró con un valor \"*[1]e\". NOTA: esto podría no ser una vulnerabilidad en múltiples entornos de servidores web que soportan múltiples hilos, a menos que estos asuntos se puedan demostrar para la ejecución de código."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-94", "description": "CWE-94"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2007-09-10T21:17:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2007-4782", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2007-09-10T21:17:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}