CVE-2025-1220 | Null byte termination in hostnames

Exp

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-13 Last update: 2025-11-04 Assigner: [email protected] Source: [email protected]

Conclusion & alert: CVE-2025-1220 is rated Exploit Available (50/100): CVSS Low severity, with low exploitation likelihood (EPSS 0.51%). Core evidence: 1 public exploit reference(s) are indexed (Exploit-DB). Mandatory action: Public exploits are available—assess exposure, apply mitigations, and prioritize patching.

Risk is dynamic; we continuously reassess and refresh what is shown on this page as upstream context changes.

Public exploit references (Exploit-DB) for CVE-2025-1220

EDB-ID Source Kind Published Link
nvd_ref exploit_tag Exploit-DB ↗

Exploit prediction scoring system (EPSS) score for CVE-2025-1220

EPSS lead: Daily EPSS estimates relative likelihood of exploitation; percentile ranks this CVE among scored vulnerabilities (higher = more severe relative rank).

# Date Old EPSS score New EPSS score Delta (New - Old)
1 2026-06-15 0.16% 0.51% +0.36%
2 2026-05-09 0.05% 0.16% +0.11%
3 2026-04-07 0.05%

Full EPSS history (6 records total)

Common vulnerability scoring system (CVSS) metrics for CVE-2025-1220

CVSS metrics for this CVE.

Base score Version Severity Vector Exploitability Impact Score source
3.7 3.1 LOW
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:H)
Even with access, the exploit needs extra luck, timing, or a fussy environment to actually work.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
2.2 1.4 [email protected]
5.3 3.1 MEDIUM
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N Click to expand
Attack vector (AV:N)
Could be attacked over the internet or any normal routed network—not just someone sitting at the machine.
Attack complexity (AC:L)
Once they can reach the bug, pulling it off is straightforward—no weird race conditions or rare setup.
Privileges required (PR:N)
No account or special rights needed—anonymous or random user is enough.
User interaction (UI:N)
Nobody has to click “OK” or open a trap file; it can work without a victim helping.
Scope (S:U)
Damage stays in the same “trust bubble” as the broken component—no big spill into unrelated systems.
Confidentiality (C:L)
Some sensitive info could get out, but not a total data dump.
Integrity (I:N)
Data isn’t meaningfully altered or forged.
Availability (A:N)
Service keeps running; no real outage angle.
3.9 1.4 [email protected]

Weakness enumeration for CVE-2025-1220

OS Trackers for CVE-2025-1220

vendor priority summary link
alpine low CVE-2025-1220: 3 source package rows (php82, php83, php84); 7 state rows across 2 repos (3.22-community, edge-community); fixed 7, open 0. https://security.alpinelinux.org/vuln/CVE-2025-1220
debian not yet assigned CVE-2025-1220 not yet assigned priority: Debian including 3 source packages (php7.4, php8.2, php8.4), 5 status rows across 5 suites (bookworm, bullseye, forky, sid, trixie): resolved 5. https://security-tracker.debian.org/tracker/CVE-2025-1220
redhat low https://access.redhat.com/security/cve/CVE-2025-1220
suse high CVE-2025-1220 severity important: SUSE including 402 source package names (apache2-mod_php7, apache2-mod_php7-7.4.33-150400.4.51.1, …), 1496 product×package rows across 25 product lines (SLES-LTSS-TERADATA 15 SP2, SUSE Liberty Linux 8, … (25 product lines)): Fixed 1291, Will Not Fix 205. https://www.suse.com/security/cve/CVE-2025-1220/
ubuntu low CVE-2025-1220 low priority: Ubuntu including 7 source packages (php5, php7.0, …), 46 status rows across 10 suites (bionic, focal, jammy, noble, oracular, plucky, questing, trusty, upstream, xenial): DNE 30, released 10, needs-triage 5, ignored 1. https://ubuntu.com/security/CVE-2025-1220

Affected software / configurations for CVE-2025-1220

Vendor Product Version Raw CPE
php php >= 8.1.0, < 8.1.33 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.2.0, < 8.2.29 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.3.0, < 8.3.23 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*
php php >= 8.4.0, < 8.4.10 cpe:2.3:a:php:php:*:*:*:*:*:*:*:*

References for CVE-2025-1220

cvelogic Threat Intelligence