---
title: "CVE-2018-20783\n    | Ubuntu"
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-2018-20783?format=md
keywords: index, follow
---

# CVE-2018-20783

Publication date 21 February 2019

Last updated 25 August 2025

---

Ubuntu priority

**Low**

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

## Cvss 3 Severity Score

**7.5 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2018-20783?format=md#impact-score)

Toggle side navigation

## Description

In PHP before 5.6.39, 7.x before 7.0.33, 7.1.x before 7.1.25, and 7.2.x
before 7.2.13, a buffer over-read in PHAR reading functions may allow an
attacker to read allocated or unallocated memory past the actual data when
trying to parse a .phar file. This is related to phar\_parse\_pharfile in
ext/phar/phar.c.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2018-20783?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| php5 | 19.04 disco | Not in release |
| 18.10 cosmic | 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+esm2  Ubuntu Pro |
| php7.0 | 19.04 disco | Not in release |
| 18.10 cosmic | Not in release |
| 18.04 LTS bionic | Not in release |
| 16.04 LTS xenial | Fixed 7.0.33-0ubuntu0.16.04.1 |
| 14.04 LTS trusty | Not in release |
| php7.2 | 19.04 disco | Fixed 7.2.15-0ubuntu0.18.04.1 |
| 18.10 cosmic | Fixed 7.2.15-0ubuntu0.18.04.1 |
| 18.04 LTS bionic | Fixed 7.2.15-0ubuntu0.18.04.1 |
| 16.04 LTS xenial | Not in release |
| 14.04 LTS trusty | Not in release |
| php7.3 | 19.04 disco | Not in release |
| 18.10 cosmic | 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-2018-20783?format=md#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

### 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:   <http://git.php.net/?p=php-src.git;a=commit;h=48f0f73f75c0059ba5d9b73cb4e5faeeaea49c47> |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.5 · High

* Base metrics

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

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.5 · High |
  | Exploitability score | - |
  | Impact score | - |

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

## References

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

### Related Ubuntu Security Notices (USN)

+ [USN-3566-2](https://usn.ubuntu.com/USN-3566-2)
+ PHP vulnerabilities
+ 22 May 2019

### Other references

* <http://php.net/ChangeLog-5.php>
* <http://php.net/ChangeLog-7.php>
* <https://www.cve.org/CVERecord?id=CVE-2018-20783>
