Medium
Security advisory
In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2020-7066
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 08:15 UTC · Revision 1
Source evidence
In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server.
osv:CVE-2020-7066
Complete source record
{
"id": "71849b713172f0cb2e899dae07463a5a0aacfab0ea9c987d3adfac42f66179fe",
"url": "https://osv.dev/vulnerability/CVE-2020-7066",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2020-7066",
"summary": "In PHP versions 7.2.x below 7.2.29, 7.3.x below 7.3.16 and 7.4.x below 7.4.4, while using get_headers() with user-supplied URL, if the URL contains zero (\\0) character, the URL will be silently truncated at it. This may cause some software to make incorrect assumptions about the target of the get_headers() and possibly send some information to a wrong server.",
"evidence": "osv:CVE-2020-7066",
"products": [],
"severity": "medium",
"structured": {
"id": "CVE-2020-7066",
"aliases": [
"BIT-libphp-2020-7066",
"BIT-php-2020-7066",
"BIT-php-min-2020-7066",
"CVE-2020-7066"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/php/php-src",
"type": "GIT",
"events": [
{
"introduced": "8148cbb78841c8ec0759c0836e7f35dec799d300"
},
{
"fixed": "cc274342d26942fc162aff6203e23372b5715d80"
},
{
"introduced": "52ace952a1b65ca80fc2617f11c2fa6dd03f51bd"
},
{
"fixed": "4e330d3d488c232ad5f9769f1fa9471c9b5ad088"
},
{
"introduced": "3c7824e16ec4c3cee417262445d2c2b66531c10f"
},
{
"fixed": "acfdeccb2ee5821138a8d68b12177daff1e63e41"
}
],
"database_specific": {
"extracted_events": [
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.2.0"
},
{
"fixed": "7.2.29"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.3.0"
},
{
"fixed": "7.3.16"
}
],
"source": "CPE_RANGE"
},
{
"cpe": "cpe:2.3:a:php:php:*:*:*:*:*:*:*:*",
"range": [
{
"introduced": "7.4.0"
},
{
"fixed": "7.4.4"
}
],
"source": "CPE_RANGE"
}
]
}
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2020-7066.json"
}
}
],
"modified": "2026-10-24T10:31:04.995447270Z",
"provider": "osv",
"references": [
"https://lists.debian.org/debian-lts-announce/2020/04/msg00021.html",
"https://security.netapp.com/advisory/ntap-20200403-0001/",
"https://usn.ubuntu.com/4330-2/",
"https://www.debian.org/security/2020/dsa-4717",
"https://www.debian.org/security/2020/dsa-4719",
"https://bugs.php.net/bug.php?id=79329",
"https://www.tenable.com/security/tns-2021-14"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:tenable:tenable.sc:*:*:*:*:*:*:*:*"
],
"vendor_product": "tenable:tenable.sc",
"extracted_events": [
{
"range": [
{
"fixed": "5.19.0"
}
],
"source": "CPE_RANGE"
}
]
},
{
"cpes": [
"cpe:2.3:o:debian:debian_linux:10.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*",
"cpe:2.3:o:debian:debian_linux:9.0:*:*:*:*:*:*:*"
],
"vendor_product": "debian:debian_linux",
"extracted_events": [
{
"range": [
{
"introduced": "8.0"
},
{
"last_affected": "8.0"
},
{
"introduced": "9.0"
},
{
"last_affected": "9.0"
},
{
"introduced": "10.0"
},
{
"last_affected": "10.0"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:o:opensuse:leap:15.1:*:*:*:*:*:*:*"
],
"vendor_product": "opensuse:leap",
"extracted_events": [
{
"range": [
{
"introduced": "15.1"
},
{
"last_affected": "15.1"
}
],
"source": "CPE_STRING"
}
]
},
{
"cpes": [
"cpe:2.3:a:tenable:tenable.sc:5.19.0:*:*:*:*:*:*:*"
],
"vendor_product": "tenable:tenable.sc",
"extracted_events": [
{
"range": [
{
"introduced": "5.19.0"
},
{
"last_affected": "5.19.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2020-7066",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 440654,
"published_at": "2020-04-01T04:15:14.02+00:00"
}