5.3

CVE-2020-7066: get_headers() silently truncates after a null byte

Modified
AliasesUBUNTU-CVE-2020-7066DEBIAN-CVE-2020-7066ALPINE-CVE-2020-7066
Published 01-04-2020Last modified 17-09-2024

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.

Priority
Routine

Not severe (CVSS 5.3, network access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
5.3/10
010
Medium · v3.1 (CVE.org)
EPSS score
2.77%
0%100%
Low · 0.00 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Advisory lineage

Upstream 0 · Downstream 13 · Related 7

Timeline

  1. 01-04-2020
    PublishedVulnerability first disclosed.
  2. 17-09-2024
    Last 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

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

04-10-202603-11-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (bugs.php.net)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

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
Alpine1 product
  • php7< 7.3.16-r0 | < 7.2.31-r0
Opensuse1 product
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

7 vendors · 11 products

References

15 links
Show all 15 references