cve.bz

CVE-2020-7066 Improper Null Termination

4.3 mediumExploit referenceEPSS 2.7%Fix available

Medium (4.3). EPSS 2.7% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

4.3 medium
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS
2.7% (unchanged from 2.7% a week ago; 2.8% 30 days ago) estimated probability of exploitation activity in the next 30 days; 86th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-170 Improper Null Termination
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2020-7066 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2020-7066?via=ask-ai-copy and https://cve.bz/cve/CVE-2020-7066?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2020-7066 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
php:phpfrom 7.2.0 before 7.2.29
php:phpfrom 7.3.0 before 7.3.16
php:phpfrom 7.4.0 before 7.4.4
tenable:tenable.scbefore 5.19.0
tenable:tenable.sc5.19.0
opensuse:leap15.1
debian:debian_linux8.0
debian:debian_linux9.0
debian:debian_linux10.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian8php55.6.40+dfsg-0+deb8u11DLA-2188-1
Debian9php7.07.0.33-0+deb9u8DSA-4717-1
Debian10php7.37.3.19-1~deb10u1DSA-4719-1
Debian11php7.47.4.5-1DEBIAN-CVE-2020-7066
Ubuntu16.04:LTSphp7.07.0.33-0ubuntu0.16.04.14UBUNTU-CVE-2020-7066 USN-4330-1
Ubuntu18.04:LTSphp7.27.2.24-0ubuntu0.18.04.4UBUNTU-CVE-2020-7066 USN-4330-1
Ubuntu20.04:LTSphp7.47.4.3-4ubuntu1.1UBUNTU-CVE-2020-7066 USN-4330-2
UbuntuPro:14.04:LTSphp55.5.9+dfsg-1ubuntu4.29+esm11UBUNTU-CVE-2020-7066 USN-4330-1
Red Hatenterprise_linux:8::appstreamapcu-panel, php-pecl-apcu, php-pecl-apcu-devel and 2 more0:5.1.17-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::appstreamlibzip, libzip-devel, libzip-tools and 3 more0:1.5.2-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp, php-gd, php-cli and 51 more0:7.3.20-1.module+el8.2.0+7373+b272fdefRHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pear1:1.10.9-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pecl-rrd, php-pecl-rrd-debuginfo, php-pecl-rrd-debugsource0:2.0.1-1.module+el8.2.0+4968+1d5097dbRHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pecl-xdebug, php-pecl-xdebug-debuginfo, php-pecl-xdebug-debugsource0:2.8.0-1.module+el8.2.0+4968+1d5097dbRHSA-2020:3662
Red Hatenterprise_linux:8::appstreamphp-pecl-zip, php-pecl-zip-debuginfo, php-pecl-zip-debugsource0:1.15.4-1.module+el8.1.0+3189+a1bff096RHSA-2020:3662
Red Hatrhel_software_collections:3::el7rh-php73-php, rh-php73-php-gd, rh-php73-php-cli and 27 more0:7.3.20-1.el7RHSA-2020:5275
SUSEEnterprise Storage 6, Linux Enterprise High Performance Computing 15 SP1-ESPOS, Linux Enterprise High Performance Computing 15 SP1-LTSS and 7 morephp77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
SUSELinux Enterprise Module for Development Tools 15 SP1, Linux Enterprise Module for Web and Scripting 15 SP1tidy5.4.0-3.2.1SUSE-SU-2020:1199-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP4php55.5.14-109.76.1SUSE-SU-2020:1714-1
SUSELinux Enterprise Module for Web and Scripting 12, Linux Enterprise Software Development Kit 12 SP4, Linux Enterprise Software Development Kit 12 SP5php727.2.5-1.46.1SUSE-SU-2020:1546-1
SUSELinux Enterprise Module for Web and Scripting 15 SP1php77.2.5-4.55.7SUSE-SU-2020:1199-1
openSUSELeap 15.1php7, php7-test7.2.5-lp151.6.25.1openSUSE-SU-2020:0642-1
openSUSELeap 15.1tidy5.4.0-lp151.3.3.1openSUSE-SU-2020:0642-1
openSUSELeap 15.4php77.2.34-150000.4.103.1SUSE-SU-2022:4067-1
AlmaLinux8apcu-panel, php-pecl-apcu, php-pecl-apcu-devel5.1.17-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8libzip, libzip-devel, libzip-tools1.5.2-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8libzip, libzip-devel, libzip-tools1.5.2-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
AlmaLinux8libzip, libzip-devel, libzip-tools1.5.2-1.module_el8.5.0+152+112d3b8cALSA-2020:3662
AlmaLinux8php, php-gd, php-cli and 24 more7.3.20-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8php, php-gd, php-cli and 24 more7.3.20-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
AlmaLinux8php, php-gd, php-cli and 24 more7.3.20-1.module_el8.5.0+152+112d3b8cALSA-2020:3662
AlmaLinux8php-pear1:1.10.9-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8php-pecl-apcu, php-pecl-apcu-devel5.1.17-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
AlmaLinux8php-pecl-apcu, php-pecl-apcu-devel5.1.17-1.module_el8.5.0+152+112d3b8cALSA-2020:3662
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.3.0+2009+b272fdefALSA-2020:3662
AlmaLinux8php-pecl-rrd2.0.1-1.module_el8.4.0+2229+b272fdefALSA-2020:3662
7 more for AlmaLinux in the JSON.
Rocky Linux8libzip0:1.5.2-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php0:7.3.20-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pear1:1.10.9-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-apcu0:5.1.17-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-rrd0:2.0.1-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-xdebug0:2.8.0-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Rocky Linux8php-pecl-zip0:1.15.4-1.module+el8.4.0+414+2e7afcddRLSA-2020:3662
Alpinev3.9php77.2.31-r0ALPINE-CVE-2020-7066
Alpinev3.11, v3.12, v3.13 and 2 morephp77.3.16-r0ALPINE-CVE-2020-7066

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; Rocky Linux's errata, BSD-3-Clause; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine.

Red Hat

Red Hat rates this Low.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 8php:7.3-8020020200715124551.ceb1cf90Fixed 2020-09-08RHSA-2020:3662
Red Hat Software Collections for Red Hat Enterprise Linux 7rh-php73-php-0:7.3.20-1.el7Fixed 2020-12-01RHSA-2020:5275
Red Hat Software Collections for Red Hat Enterprise Linux 7.6 EUSrh-php73-php-0:7.3.20-1.el7Fixed 2020-12-01RHSA-2020:5275
Red Hat Software Collections for Red Hat Enterprise Linux 7.7 EUSrh-php73-php-0:7.3.20-1.el7Fixed 2020-12-01RHSA-2020:5275
Red Hat Enterprise Linux 5phpNot affected
Red Hat Enterprise Linux 5php53Not affected
Red Hat Enterprise Linux 6phpNot affected
Red Hat Enterprise Linux 7phpNot affected
Red Hat Enterprise Linux 8php:7.2/phpFix deferred
Red Hat Software Collectionsrh-php72-phpFix deferred

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2020-7066.

ICS advisories (CISA)

AdvisoryTitlePublishedSectorsAffectedFixed
ICSA-26-027-02Festo Didactic SE MES PC2024-02-27Commercial Facilities, Communications, Critical Manufacturing, EnergyFesto Didactic SE MES PC shipped with Windows 10none listed

From CISA's ICS advisories (CSAF), provided under CISA's notification. Only the facts are shown; each advisory is on CISA's page. Credits.

References

Check your stackJSON