Skip to main content
No exploitation reportedFix available

CVE-2018-20783

No exploitation reported by the sources we read.

  • Published2019-02-21
  • Fixed in7.2.13 · 7.1.25 · 7.0.33 · 5.6.39
  • WeaknessCWE-125

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2019-02-2119:29CVE publishedNVD

Versions per branch

NVD
PHP
BranchAffectedFixed in
7.2≥ 7.2.0, < 7.2.137.2.13
7.1≥ 7.1.0, < 7.1.257.1.25
7.0≥ 7.0.0, < 7.0.337.0.33
5.6< 5.6.395.6.39
Opensuse leap
BranchAffectedFixed in
42.3= 42.3no fix published

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • libmemcachedSUSE:Linux Enterprise Software Development Kit 12 SP4all versions · fixed in 1.0.18-3.2.1
  • libmemcachedSUSE:Linux Enterprise Server for SAP Applications 12 SP4all versions · fixed in 1.0.18-3.2.1
  • libmemcachedSUSE:Linux Enterprise Server for SAP Applications 12 SP3all versions · fixed in 1.0.18-3.2.1
  • libmemcachedSUSE:Linux Enterprise Server 12 SP4all versions · fixed in 1.0.18-3.2.1
  • libmemcachedSUSE:Linux Enterprise Server 12 SP3all versions · fixed in 1.0.18-3.2.1
  • libmemcachedSUSE:Linux Enterprise Module for Web and Scripting 12all versions · fixed in 1.0.18-3.2.1
  • libzipRocky Linux:8all versions · fixed in 0:1.5.1-2.module+el8.4.0+413+c9202dda
  • libzipRed Hat:enterprise_linux:8::appstreamall versions · fixed in 0:1.5.1-2.module+el8.1.0+3202+af5476b9and 5 other packages

70 more package ranges on OSV.dev

Vendor advisories

  • CVE-2018-20783 Red Hat Product Security1,125 products fixed · 87 known affected

    php: Buffer over-read in PHAR reading functions

    php.src as a component of Red Hat Enterprise Linux 5 · php as a component of Red Hat Enterprise Linux 6 · php-bcmath as a component of Red Hat Enterprise Linux 6 · +84 more

  • RHSA-2020:1624 Red Hat Product Security275 products fixed

    Red Hat Security Advisory: php:7.2 security, bug fix, and enhancement update

  • RHSA-2019:3299 Red Hat Product Security425 products fixed

    Red Hat Security Advisory: rh-php72-php security update

  • RHSA-2019:2519 Red Hat Product Security425 products fixed

    Red Hat Security Advisory: rh-php71-php security, bug fix, and enhancement update

Full record on NVD

Fix

  1. Update PHP to 7.2.13 · 7.1.25 · 7.0.33 · 5.6.39
  2. Vendor fix Red Hat Product Security RHSA-2020:1624 · 275 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258 After installing the updated packages, the httpd daemon must be restarted for the update to take effect.
  3. No fix available, says the vendor Red Hat Product Security CVE-2018-20783 · 58 productsFix deferred
  4. No fix planned, says the vendor Red Hat Product Security CVE-2018-20783 · 29 productsOut of support scope

Advisories and patches

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Published
2019-02-21
Last modified
2026-06-17
NVD status
Modified
GitHub advisory
GHSA-gx4f-r59p-mgpx

Frequently asked questions

What is CVE-2018-20783?

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.

Is CVE-2018-20783 actively exploited?

Active exploitation of CVE-2018-20783 has not been confirmed. Its EPSS score was 5.7% on 2026-12-03, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2018-20783?

CVE-2018-20783 has a CVSS v3 base score of 7.5 (High severity), with vector string CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.

Running PHP? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record