---
title: CVE-2020-7066
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2020-7066
---

# CVE-2020-7066

Publication date 1 April 2020

Last updated 25 August 2025

---

Ubuntu priority

**Medium**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**4.3 · Medium**

[Score breakdown](https://ubuntu.com/security/CVE-2020-7066#impact-score)

Toggle side navigation

## 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.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2020-7066#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 20.04 LTS focal | Not in release |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Fixed 5.5.9+dfsg-1ubuntu4.29+esm11  Ubuntu Pro |
| php7.0 | 20.04 LTS focal | Not in release |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Fixed 7.0.33-0ubuntu0.16.04.14 |
| 14.04 LTS trusty | Not in release |
| php7.2 | 20.04 LTS focal | Not in release |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Fixed 7.2.24-0ubuntu0.18.04.4 |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| php7.3 | 20.04 LTS focal | Not in release |
| 19.10 eoan | Fixed 7.3.11-0ubuntu0.19.10.4 |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| php7.4 | 20.04 LTS focal | Fixed 7.4.3-4ubuntu1.1 |
| 19.10 eoan | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2020-7066#patch-details)

### Get expanded security coverage with Ubuntu Pro

Reduce your average CVE exposure time from 98 days to 1 day with expanded CVE patching, ten-years security maintenance and optional support for the full stack of open-source applications. Free for personal use.

[Get Ubuntu Pro](https://ubuntu.com/pro)
[30-day free trial](https://ubuntu.com/pro/free-trial)

## Notes

---

### [sbeattie](https://launchpad.net/~sbeattie)

PEAR issues should go against php-pear as of xenial

---

### [leosilva](https://launchpad.net/~leosilva)

php5 in precise is 5.3 and does not support the Zend API
needed to fix this issue. Since backport this is to
intrusive, marking it as ignored for precise/esm.

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| php5 | * Upstream:   [c358285](https://github.com/microsoft/php-src/commit/c3582855b88cfde8e69734da738803b54c2c2e26) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

4.3 · Medium

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Network |
  | Attack complexity | Low |
  | Privileges required | None |
  | User interaction | Required |
  | Scope | Unchanged |
  | Confidentiality impact | Low |
  | Integrity impact | None |
  | Availability impact | None |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 4.3 · Medium |
  | Exploitability score | - |
  | Impact score | - |

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

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2020-7066)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2020-7066)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2020-7066)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2020-7066)

### Related Ubuntu Security Notices (USN)

+ [USN-4330-1](https://usn.ubuntu.com/USN-4330-1)
+ PHP vulnerabilities
+ 15 April 2020

+ [USN-4330-2](https://usn.ubuntu.com/USN-4330-2)
+ PHP vulnerabilities
+ 6 May 2020

### Other references

* <http://git.php.net/?p=php-src.git;a=commit;h=a33d05b1474caee449b88f53d61bee720c57caf7>
* <https://www.cve.org/CVERecord?id=CVE-2020-7066>
