{"dataType": "CVE_RECORD", "containers": {"adp": [{"metrics": [{"cvssV2_0": {"version": "2.0", "baseScore": 7.5, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "LOW", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"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-2008-2108.html"}], "descriptions": [{"lang": "en", "value": "The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 64-bit systems, performs a multiplication that generates a portion of zero bits during conversion due to insufficient precision, which produces 24 bits of entropy and simplifies brute force attacks against protection mechanisms that use the rand and mt_rand functions."}], "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-2008-2108"}], "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": "2008-05-06T00:00:00Z", "x_subShortName": "redhat_5"}}], "cna": {"metrics": [{"format": "CVSS", "cvssV2_0": {"version": "2.0", "baseScore": 7.5, "accessVector": "NETWORK", "vectorString": "AV:N/AC:L/Au:N/C:P/I:P/A:P", "authentication": "NONE", "integrityImpact": "PARTIAL", "accessComplexity": "LOW", "availabilityImpact": "PARTIAL", "confidentialityImpact": "PARTIAL"}}, {"format": "CVSS", "cvssV3_1": {"scope": "UNCHANGED", "version": "3.1", "baseScore": 9.8, "attackVector": "NETWORK", "baseSeverity": "CRITICAL", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "NONE", "confidentialityImpact": "HIGH"}}], "affected": [{"cpes": ["cpe:2.3:a:php:php:*:*:*:*:*:*:*:*"], "vendor": "php", "product": "php", "versions": [{"status": "affected", "version": "4.0.0", "lessThan": "4.4.8", "versionType": "custom"}, {"status": "affected", "version": "5.0.0", "lessThan": "5.2.5", "versionType": "custom"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:canonical:ubuntu_linux:6.06:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:7.04:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:7.10:*:*:*:*:*:*:*", "cpe:2.3:o:canonical:ubuntu_linux:8.04:*:*:*:-:*:*:*"], "vendor": "canonical", "product": "ubuntu_linux", "versions": [{"status": "affected", "version": "6.06"}, {"status": "affected", "version": "7.04"}, {"status": "affected", "version": "7.10"}, {"status": "affected", "version": "8.04"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:debian:debian_linux:4.0:*:*:*:*:*:*:*"], "vendor": "debian", "product": "debian_linux", "versions": [{"status": "affected", "version": "4.0"}], "defaultStatus": "unaffected"}, {"cpes": ["cpe:2.3:o:fedoraproject:fedora:8:*:*:*:*:*:*:*", "cpe:2.3:o:fedoraproject:fedora:9:*:*:*:*:*:*:*"], "vendor": "fedoraproject", "product": "fedora", "versions": [{"status": "affected", "version": "8"}, {"status": "affected", "version": "9"}], "defaultStatus": "unaffected"}], "references": [{"url": "http://secunia.com/advisories/30757", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/30828", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/31119", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/31124", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/31200", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/32746", "tags": ["broken-link"]}, {"url": "http://secunia.com/advisories/35003", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:125", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:126", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:127", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:128", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:129", "tags": ["broken-link"]}, {"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:130", "tags": ["broken-link"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0505.html", "tags": ["broken-link"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0544.html", "tags": ["broken-link"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0545.html", "tags": ["broken-link"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0546.html", "tags": ["broken-link"]}, {"url": "http://www.redhat.com/support/errata/RHSA-2008-0582.html", "tags": ["broken-link"]}, {"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10844", "tags": ["broken-link"]}, {"url": "http://archives.neohapsis.com/archives/fulldisclosure/2008-05/0103.html", "tags": ["broken-link", "exploit"]}, {"url": "http://www.sektioneins.de/advisories/SE-2008-02.txt", "tags": ["broken-link", "exploit"]}, {"url": "http://www.securityfocus.com/archive/1/491683/100/0/threaded", "tags": ["broken-link", "third-party-advisory", "vdb-entry"]}, {"url": "http://securityreason.com/securityalert/3859", "tags": ["mailing-list"]}, {"url": "http://www.debian.org/security/2009/dsa-1789", "tags": ["mailing-list"]}, {"url": "https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00773.html", "tags": ["mailing-list"]}, {"url": "https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00779.html", "tags": ["mailing-list"]}, {"url": "http://security.gentoo.org/glsa/glsa-200811-05.xml", "tags": ["third-party-advisory"]}, {"url": "http://www.ubuntu.com/usn/usn-628-1", "tags": ["third-party-advisory"]}, {"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/42226", "tags": ["third-party-advisory", "vdb-entry"]}], "descriptions": [{"lang": "en", "value": "The GENERATE_SEED macro in PHP 4.x before 4.4.8 and 5.x before 5.2.5, when running on 64-bit systems, performs a multiplication that generates a portion of zero bits during conversion due to insufficient precision, which produces 24 bits of entropy and simplifies brute force attacks against protection mechanisms that use the rand and mt_rand functions."}, {"lang": "es", "value": "La macro GENERATE_SEED de PHP 4.x versiones anteriores a la 4.4.8 y 5.x versiones anteriores a la 5.2.5, cuando se ejecuta en sistemas de 64 bits, realiza un producto que genera una porción de bits cero durante la conversión debido a la falta de precisión, lo que provoca 24 bits de entropía y simplifican los ataques por fuerza bruta contra mecanismos de protección que utilizan la secuencia generada y las funciones mt-rand."}], "problemTypes": [{"descriptions": [{"lang": "en", "cweId": "CWE-331", "description": "CWE-331"}]}], "providerMetadata": {"orgId": "00000000-0000-4000-A000-000000000003", "shortName": "nvd", "dateUpdated": "2008-05-07T21:20:00Z", "x_subShortName": "nvd"}}}, "cveMetadata": {"cveId": "CVE-2008-2108", "state": "PUBLISHED", "dateUpdated": "2025-04-09T00:30:58Z", "assignerOrgId": "8254265b-2729-46b6-b9e3-3dfca2d5bfca", "datePublished": "2008-05-07T21:20:00Z", "assignerShortName": "mitre"}, "dataVersion": "5.0"}