CVE-2020-7066

MEDIUMCVSS 4.3/10EPSS 2.77%

Last modified

CVE-2020-7066 is a medium-severity vulnerability rated 4.3/10 on the CVSS scale. 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.. EPSS estimates a 2.77% chance of exploitation in the next 30 days.

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.

Metrics

CVSS 3.1
4.3/10

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N

EPSS Probability
2.77%

84.4th percentile

Probability of exploitation in the next 30 days. Learn more

Weakness Enumeration

Affected Software

VendorProductVersions
PhpPhp>= 7.2.0, < 7.2.29
PhpPhp>= 7.3.0, < 7.3.16
PhpPhp>= 7.4.0, < 7.4.4
TenableTenable.Sc< 5.19.0
TenableTenable.Sc5.19.0
OpensuseLeap15.1
DebianDebian Linux8.0
DebianDebian Linux9.0
DebianDebian Linux10.0

References

Timeline

Published
Last Modified
Status
Modified

Frequently Asked Questions

What is CVE-2020-7066?
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.
How severe is CVE-2020-7066?
CVE-2020-7066 has a CVSS score of 4.3/10 (MEDIUM severity). The EPSS model estimates a 2.77% probability of exploitation in the next 30 days.
How do I fix CVE-2020-7066?
Check the vendor references and advisories linked above for patched versions and mitigation guidance. You can also run a Strix scan to test if your systems are affected.

Are you affected by CVE-2020-7066?

Run a free Strix scan to check your systems for this vulnerability.

Scan your code now

Source: NVD / NIST