CVE-2025-1220: Null byte termination in hostnames

Published Jul 3, 2025
·
Updated

Fixed (Null byte termination in hostnames). (CVE-2025-1220)

Other sources

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 parseurl() treat the hostname in different way, thus opening way to security problems if the user code implements access checks before access using such functions.

MITRE

Affected Software

10 affected componentsFixes available
PHP PHP<8.3.23
8.3.23
PHP PHP>=8.1.0<8.1.33
PHP PHP>=8.2.0<8.2.29
PHP PHP>=8.3.0<8.3.23
PHP PHP>=8.4.0<8.4.10
Microsoft azl3 php 8.3.23-1
Microsoft azl3 php 8.3.29-1
Microsoft cbl2 php 8.1.32-1
Microsoft cbl2 php 8.1.33-1
Microsoft cbl2 php 8.1.32-1

Event History

Jul 3, 2025
CVE Published
via PHP·12:00 AM
Data Sourced
via PHP·12:00 AM
DescriptionAffected Software
Jul 13, 2025
CVE Published
via MITRE·10:18 PM
Data Sourced
via MITRE·10:18 PM
DescriptionSeverityWeakness
Data Sourced
via Red Hat·11:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeaknessAffected Software
Aug 6, 2025
Data Sourced
via Microsoft·12:00 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·07:00 AM
SeverityAffected Software
Updated
via Microsoft·07:00 AM
Affected Software
Updated
via Microsoft·07:00 AM
DescriptionSeverity

Frequently Asked Questions

1

What is the severity of CVE-2025-1220?

The severity of CVE-2025-1220 is considered critical due to its potential impact on application security.

2

How do I fix CVE-2025-1220?

To fix CVE-2025-1220, update PHP to version 8.3.23 or later.

3

What specific issue does CVE-2025-1220 address?

CVE-2025-1220 addresses the issue of null byte termination in hostnames which could lead to security vulnerabilities.

4

Which versions of PHP are affected by CVE-2025-1220?

CVE-2025-1220 affects all PHP versions up to but not including 8.3.23.

5

Is CVE-2025-1220 being actively exploited in the wild?

As of now, there is no public information indicating that CVE-2025-1220 is being actively exploited.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203