CVE-2020-7066: get_headers() silently truncates after a null byte
Vulnerability summary
CVE-2020-7066 is a medium (CVSS 5.3) Improper Null Termination vulnerability in debian debian_linux. EPSS estimates a 2.77% chance of exploitation in the next 30 days, higher than 86.3% of scored vulnerabilities. 1 public exploit is recorded.
Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources
Source freshness unavailable
How is this decided?Advisory lineage
Upstream 0 · Downstream 13 · Related 7Timeline
- 01-04-2020PublishedVulnerability first disclosed.
- 17-09-2024Last modifiedVulnerability information updated.
Description
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.
CVSS metrics
6 scores · 5 sources · 2 versions- OSV · UbuntuEcosystem advisory · calculated5.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- OSV · DebianEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:NDiffers
- NVDNIST4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:NDiffers
- OSV · AlpineEcosystem advisory · calculated4.3MediumCVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:NDiffers
EPSS trend
Probability
2.77%
Chance of exploitation in the next 30 days
Percentile
86%
Versus all other CVEs
30-day change
No change 0.00 pp
From 2.77% on 04-10-2026
Known exploited
Compare KEV catalogsNot in the CISA KEV catalog.
Not in the ENISA CNW catalog.
Not in the CIRCL catalog.
Public exploits
1 foundExploit Reference (bugs.php.net)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Known conditions: network-reachable, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.
Ubuntu4 products
- php5< 5.5.9+dfsg-1ubuntu4.29+esm11
- php7.0< 7.0.33-0ubuntu0.16.04.14
- php7.2< 7.2.24-0ubuntu0.18.04.4
- php7.4< 7.4.3-4ubuntu1.1
Debian2 products
- php7.4< 7.4.5-1
- debian_linuxEOL8.0 | 9.0 | 10.0
Alpine1 product
- php7< 7.3.16-r0 | < 7.2.31-r0
Opensuse1 product
- leapEOL15.1
Php1 product
- php≥ 7.2.0, < 7.2.29 | ≥ 7.3.0, < 7.3.16 | ≥ 7.4.0, < 7.4.4
Php group1 product
- php7.2.x below 7.2.29 | 7.3.x below 7.3.16 | 7.4.x below 7.4.4
Tenable1 product
- tenable.sc< 5.19.0 | 5.19.0
7 vendors · 11 products
References
15 links- lists.debian.org/debian-lts-announce/2020/04/msg00021.htmlMailing ListX Refsource MLISTThird Party Advisory
- lists.opensuse.org/opensuse-security-announce/2020-05/msg00025.htmlVendor AdvisoryX Refsource SUSEThird Party Advisory