VDB

CVE-2025-1220

CVE-2025-1220 PUBLISHED CVSS 3.7 LOW

Null byte termination in hostnames

Reported by php · Published July 13, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
php8.4-odbcAmazon Linux8.4.10-1.amzn2023.0.1
php8.1-gdAmazon Linux8.1.33-1.amzn2023.0.1
php8.3Amazon Linux8.3.23-1.amzn2023.0.1
php83Alpine8.3.23-r0
php8.3-commonAmazon Linux8.3.23-1.amzn2023.0.1
php8.3-develAmazon Linux8.3.23-1.amzn2023.0.1
php8.4-opcacheAmazon Linux8.4.10-1.amzn2023.0.1
php8.1-dbaAmazon Linux8.1.33-1.amzn2023.0.1
php8.3-zipAmazon Linux8.3.23-1.amzn2023.0.1
php8.2-ffiAmazon Linux8.2.29-1.amzn2023.0.1
php8.3-enchantAmazon Linux8.3.23-1.amzn2023.0.1
php8.4-tidyAmazon Linux8.4.10-1.amzn2023.0.1

87 more packages have a fixed version. See every fix in Lookup.

Risk scores

CVSS 3.1
3.7
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N

Affected products

VendorProductVersions
PHP GroupPHP8.1.*, 8.2.*, 8.3.*
PHP GroupPHP8.1.*, 8.2.*, 8.3.*

Timeline

  • Jul 3, 2025 PoC Published (4 in total, the first dated here)
  • Jul 3, 2025 CVE Published
  • Jul 14, 2025 EPSS Score (30 in total, the first dated here)
  • Jul 14, 2025 Coalition ESS Score (15 in total, the first dated here)
  • Oct 23, 2026 Distribution Patch (7 in total, the first dated here)
  • Oct 23, 2026 Security Advisory (9 in total, the first dated here)

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-1220
vulnetix vdb fixes CVE-2025-1220

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-1220/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›