5.3

CVE-2025-1220: Null byte termination in hostnames

Modified
AliasesUBUNTU-CVE-2025-1220DEBIAN-CVE-2025-1220ALPINE-CVE-2025-1220
Published 13-07-2025Last modified 04-11-2025

Vulnerability summary

CVE-2025-1220 is a medium (CVSS 5.3) Server-Side Request Forgery vulnerability in php group php. EPSS estimates a 0.75% chance of exploitation in the next 30 days, higher than 56.1% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 3.7, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (NVD)
EPSS score
0.75%
0%100%
Low · +0.01 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1github

Advisory lineage

Upstream 0 · Downstream 14 · Related 7

Timeline

  1. 13-07-2025
    PublishedVulnerability first disclosed.
  2. 04-11-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 5 sources · 1 version

EPSS trend

Probability

0.75%

Chance of exploitation in the next 30 days

Percentile

56%

Versus all other CVEs

30-day change

Increase +0.01 pp

From 0.74% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • githubUnverified

    Php Src

    Maturity: poc

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

Ubuntu7 products
  • php5All versions (No fix recorded)
  • php7.0< 7.0.33-0ubuntu0.16.04.16+esm16
  • php7.2< 7.2.24-0ubuntu0.18.04.17+esm9
  • php7.4< 7.4.3-4ubuntu2.29+esm1
  • php8.1< 8.1.2-1ubuntu2.22
Alpine4 products
  • php81< 8.1.33-r0
  • php82< 8.2.29-r0
  • php83< 8.3.23-r0
  • php84< 8.4.10-r0 | < 8.4.9-r0
Debian2 products
  • php8.2< 8.2.29-1~deb12u1
  • php8.4< 8.4.10-1
Php1 product
  • php≥ 8.1.0, < 8.1.33 | ≥ 8.2.0, < 8.2.29 | ≥ 8.3.0, < 8.3.23 | ≥ 8.4.0, < 8.4.10
Php group1 product
  • php≥ 8.1.*, < 8.1.33 | ≥ 8.2.*, < 8.2.29 | ≥ 8.3.*, < 8.3.23 | ≥ 8.4.*, < 8.4.10

5 vendors · 15 products

References

10 links