# CVE-2025-1220: Null byte termination in hostnames

- Severity: Low 3.7 (CVSS:3.1, scored by php) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.75%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2025-07-13T22:18:36.974Z
- Modified: 2026-09-08T08:48:18.249Z
- Also known as: BIT-LIBPHP-2025-1220, BIT-PHP-2025-1220, BIT-PHP-MIN-2025-1220, GHSA-3cr5-j632-f35r
- Weaknesses: CWE-918
- SSVC (CISA-ADP): exploitation poc, automatable no, technical impact partial
- Assigned by: php

## 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 functions.

(As written by CVE List.)

## Affected

- PHP Group PHP: from 8.1.* before 8.1.33; from 8.2.* before 8.2.29; from 8.3.* before 8.3.23; from 8.4.* before 8.4.10
- php php: from 8.1.0 before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10
- libphp (Bitnami): before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10
- php (Bitnami): before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10
- php-min (Bitnami): before 8.1.33; from 8.2.0 before 8.2.29; from 8.3.0 before 8.3.23; from 8.4.0 before 8.4.10

## Every score

- php: CVSS:3.1 3.7 Low `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N`
- NVD: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N`
- Bitnami Vulnerability Database: rating Medium

## References

- <https://github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r> (exploit, advisory, vendor-advisory)
- <https://lists.debian.org/debian-lts-announce/2025/07/msg00017.html> (web)
- <http://www.openwall.com/lists/oss-security/2025/07/11/4> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-1220> (web)

## Sources

- CVE List: [CVE-2025-1220](https://www.cve.org/CVERecord?id=CVE-2025-1220), CVE Terms of Use, modified 2025-11-04
- NVD: [CVE-2025-1220](https://nvd.nist.gov/vuln/detail/CVE-2025-1220), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-LIBPHP-2025-1220](https://osv.dev/vulnerability/BIT-LIBPHP-2025-1220), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-2025-1220](https://osv.dev/vulnerability/BIT-PHP-2025-1220), Apache-2.0, modified 2026-09-08
- Bitnami Vulnerability Database: [BIT-PHP-MIN-2025-1220](https://osv.dev/vulnerability/BIT-PHP-MIN-2025-1220), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-1220 · Whole record: https://cve.day/CVE-2025-1220.json · Rebuilt by cve.day 2026-11-25T22:59:01.205Z
