VulnWatch by ve1ve2
low

GHSA-www2-q4fc-65wf: Null byte termination in dns_get_record()

Source:
PHP releases (GitHub php/php-src tags)
Published:
Fetched:
Updated:
Affects:
php php-src

https://github.com/php/php-src/security/advisories/GHSA-www2-q4fc-65wf ↗

repo-advisorysecurityrepo:php/php-srcstack

Null byte termination in dns_get_record() ### Summary As GHSA-3cr5-j632-f35r, same null termination is occuring ### Details dns_get_record() and other DNS functions don't have any null contain check, leads potential SSRF or unexpected behavior. ### PoC ```php <?php var_dump(dns_get_record("php.net\0aa")); ``` Result: DNS records of `php.net` Expect: Fails to call ### Security impact (Even though it's too low but,) Probability of SSRF Patched: 8.1.34, 8.2.30, 8.3.29, 8.4.16, 8.5.1

Linked vulnerabilities (2)

Null byte termination in hostnames

CWE: CWE-918Aliases: CVE-2025-1220

Null byte termination in dns_get_record()

Aliases: GHSA-3cr5-j632-f35r