CVE-2018-20783: Buffer Overflow

Published Nov 12, 2018
·
Updated

Fixed bug (Heap Buffer Overflow (READ: 4) in pharparsepharfile). (CVE-2018-20783)

Other sources

In PHP before 5.6.39, 7.x before 7.0.33, 7.1.x before 7.1.25, and 7.2. ...

— Debian

Affected Software

25 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
redhat/rh-php72-php<0:7.2.24-1.el7
0:7.2.24-1.el7
redhat/php<5.6.39
5.6.39
redhat/php<7.0.33
7.0.33
redhat/php<7.1.25
7.1.25
redhat/php<7.2.13
7.2.13
redhat/php<7.3.0
7.3.0
PHP PHP<7.0.33
7.0.33
PHP PHP<5.6.39
PHP PHP>=7.0.0<7.0.33
PHP PHP>=7.1.0<7.1.25
PHP PHP>=7.2.0<7.2.13
openSUSE Leap=42.3
debian/php5
debian/php7.0
debian/php7.3
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.1.29-r0
7.1.29-r0
alpine/php7<7.2.13-r0
7.2.13-r0
alpine/php7<7.2.13-r0
7.2.13-r0

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade redhat/rh-php71-php to a version that resolves this vulnerability.

    Fixed in 0:7.1.30-1.el7
  2. Upgrade

    Upgrade redhat/rh-php72-php to a version that resolves this vulnerability.

    Fixed in 0:7.2.24-1.el7
  3. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 5.6.39
  4. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.0.33
  5. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.1.25
  6. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.2.13
  7. Upgrade

    Upgrade redhat/php to a version that resolves this vulnerability.

    Fixed in 7.3.0
  8. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.0.33
  9. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.2.13-r0
  10. Upgrade

    Upgrade alpine/php7 to a version that resolves this vulnerability.

    Fixed in 7.1.29-r0
  11. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 5.6.39
  12. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.1.25
  13. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.2.13

Event History

Nov 12, 2018
CVE Published
12:00 AM
Feb 21, 2019
CVE Published
via MITRE·07:00 PM
Data Sourced
via MITRE·07:00 PM
Description
Data Sourced
via NVD·07:29 PM
DescriptionSeverityWeaknessAffected Software
Data Sourced
via OSV·07:29 PM
DescriptionSeverityAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Peer vulnerabilities

Found alongside the following vulnerabilities.

Frequently Asked Questions

1

What is CVE-2018-20783?

CVE-2018-20783 is a fixed bug that involves a heap buffer overflow in the phar_parse_pharfile function in PHP.

2

How does CVE-2018-20783 affect PHP?

CVE-2018-20783 affects PHP versions 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.

3

What is the severity of CVE-2018-20783?

The severity of CVE-2018-20783 is high, with a severity score of 7.5.

4

How can I fix CVE-2018-20783?

To fix CVE-2018-20783, upgrade PHP to version 5.6.39, 7.0.33, 7.1.25, or 7.2.13.

5

Where can I find more information about CVE-2018-20783?

You can find more information about CVE-2018-20783 at the following references: [link 1](https://bugs.php.net/bug.php?id=77143), [link 2](http://git.php.net/?p=php-src.git;a=commitdiff;h=e7c8e6cde021afd637ea535b0641a1851e57fb2a), [link 3](https://access.redhat.com/errata/RHSA-2019:2519).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203