Skip to content
CVE Tracker
  • Newest CVEsPage
  • Recently added to KEVPage
  • Rising exploitation (EPSS)Page
  • Weekly digestPage
  • StatisticsPage
  • WatchlistPage
  • API documentationPage
  • MCP serverPage
  • Data sourcesPage
  • ChangelogPage
  • AboutPage
  • How it's builtPage
Back

CVE-2020-7066

get_headers() silently truncates after a null byte

Medium5.3EPSS 2.8%
Published
Updated
Reserved
Assigned by
php

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.

Scores

CVSS scores of CVE-2020-7066, by who scored it
Scored byCVSSScoreVector
phpCNA (assigner)3.1Medium5.3CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
NVDNVD · Modified3.1Medium4.3CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
EPSS (exploitation in 30 days)
2.8% · top 14% of all CVEs (6 Nov 2026)
Loading the EPSS history…

The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.3.

Weakness

Affected products

  • PHP Group · PHP

    • affected 7.2.x below 7.2.29
    • affected 7.3.x below 7.3.16
    • affected 7.4.x below 7.4.4

References (8)

Sources

The same CVE in the primary databases and aggregators, to check against.

Badge for a README or a ticket

CVE-2020-7066 badge
[![CVE-2020-7066](https://trackcve.app/badge/CVE-2020-7066.svg)](https://trackcve.app/cve/CVE-2020-7066)

Record last updated .