{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-1220","id":"CVE-2025-1220","title":"Null byte termination in hostnames","description":"In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* before 8.4.10 some functions like fsockopen() lack validation that the hostname supplied does not contain null characters. This may lead to other functions like parse_url() treat the hostname in different way, thus opening way to security problems if the user code implements access checks before access using such ","descriptionLong":"In PHP versions:8.1.* before 8.1.33, 8.2.* before 8.2.29, 8.3.* before 8.3.23, 8.4.* before 8.4.10 some functions like fsockopen() lack validation that the hostname supplied does not contain null characters. This may lead to other functions like parse_url() treat the hostname in different way, thus opening way to security problems if the user code implements access checks before access using such functions.","published":"2025-07-13T22:18:36.974Z","updated":"2026-10-28T02:30:29.752198760Z","reserved":"2025-02-11T04:54:48.211Z","status":"Modified","rejected":false,"assigner":"php","metric":{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"php"},"metrics":[{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"php"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"php.net"},{"version":"3.1","score":5.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"medium","source":"NVD"},{"version":"3.1","score":3.7,"vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N","rating":"low","source":"OSV"}],"rating":"low","products":["PHP Group PHP"],"affectedProducts":[{"vendor":"PHP Group","product":"PHP","defaultStatus":"affected","versions":[{"lessThan":"8.1.33","status":"affected","version":"8.1.*","versionType":"semver"},{"lessThan":"8.2.29","status":"affected","version":"8.2.*","versionType":"semver"},{"lessThan":"8.3.23","status":"affected","version":"8.3.*","versionType":"semver"},{"lessThan":"8.4.10","status":"affected","version":"8.4.*","versionType":"semver"}],"platforms":[]}],"packages":[],"cwes":["CWE-918"],"aliases":["BIT-libphp-2025-1220","BIT-php-2025-1220","BIT-php-min-2025-1220","GHSA-3cr5-j632-f35r"],"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r","tags":["exploit","Exploit","Vendor Advisory","advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html","tags":["web"]},{"url":"http://www.openwall.com/lists/oss-security/2025/07/11/4","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/1xxx/CVE-2025-1220.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1220","tags":["advisory"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0074,"epssPercentile":0.5538,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-1220","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-1220","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-1220","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-1220","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}