CVE-2025-1220: Php · Null byte termination in hostnames
Affects phpSource GCVE Database
Not known to be exploited · CVSS 3.7 Low · fixed in 8.4.10 : update php when convenient.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 0.7% chance of exploitation in 30 days – higher than 54% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 8.4.10, 8.3.23, 8.2.29 +1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:NExploitation evidence
Disclosed: evidence found.
CVE published 13 Jul 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.
What to do
Upgrade the Debian debian/php package to 8.4.10, 8.3.23, 8.2.29 or 8.1.33.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Debiandebian/phppkg:deb/debian/phpOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
A patch is available and should be applied to affected PHP versions. Red Hat has released updated packages for Red Hat Enterprise Linux 8 that fix this vulnerability. Users should update to PHP versions 8.1.33 or later, 8.2.29 or later, 8.3.23 or later, or 8.4.10 or later as appropriate. Refer to the Red Hat advisory RHSA-2026:1412 for detailed update instructions.
Description
A vulnerability in PHP versions 8.1 before 8.1.33, 8.2 before 8.2.29, 8.3 before 8.3.23, and 8.4 before 8.4.10 allows null byte characters in hostnames passed to functions like fsockopen(). This can cause inconsistent hostname parsing by other functions such as parse_url(), potentially leading to security issues if user code relies on these functions for access control. Red Hat has issued security updates addressing this issue.
References
- access.redhat.com/errata/RHSA-2026:1412 (opens in a new tab)
- access.redhat.com/security/updates/classification/ (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2378689 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2378690 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2379792 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2425625 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2425626 (opens in a new tab)
- bugzilla.redhat.com/show_bug.cgi?id=2425627 (opens in a new tab)
- security.access.redhat.com/data/csaf/v2/advisories/2026/rhsa-2026_1412.json (opens in a new tab)
- github.com/php/php-src/security/advisories/GHSA-3cr5-j632-f35r (opens in a new tab)
- nvd.nist.gov/vuln/detail/CVE-2025-1220 (opens in a new tab)
- openwall.com/lists/oss-security/2025/07/11/4 (opens in a new tab)
- lists.debian.org/debian-lts-announce/2025/07/msg00017.html (opens in a new tab)