CVE-2018-17082: XSS

Published Sep 13, 2018
·
Updated

A cross-site scripting (XSS) vulnerability in Apache2 component of PHP was found. When using 'Transfer-Encoding: chunked', the request allows remote attackers to potentially run a malicious script in a victim's browser. This vulnerability can be exploited only by producing malformed requests and it's believed it's unlikely to be used in practical cross-site scripting attack.

Other sources

Fixed bug (XSS due to the header Transfer-Encoding: chunked). (CVE-2018-17082)

— PHP

The Apache2 component in PHP before 5.6.38, 7.0.x before 7.0.32, 7.1.x before 7.1.22, and 7.2.x before 7.2.10 allows XSS via the body of a "Transfer-Encoding: chunked" request, because the bucket brigade is mishandled in the phphandler function in sapi/apache2handler/sapiapache2.c.

Affected Software

20 affected componentsFixes available
redhat/rh-php71-php<0:7.1.30-1.el7
0:7.1.30-1.el7
redhat/php<5.6.38
5.6.38
redhat/php<7.0.32
7.0.32
redhat/php<7.1.22
7.1.22
redhat/php<7.2.10
7.2.10
PHP PHP<7.0.32
7.0.32
PHP PHP<5.6.38
PHP PHP>=7.0.0<7.0.32
PHP PHP>=7.1.0<7.1.22
PHP PHP>=7.2.0<7.2.10
Debian Debian Linux=8.0
Debian Debian Linux=9.0
NetApp Storage Automation Store
debian/php5
debian/php7.0
debian/php7.1
alpine/php5<5.6.38-r0
5.6.38-r0
alpine/php5<5.6.38-r0
5.6.38-r0
alpine/php7<7.0.32-r0
7.0.32-r0
alpine/php7<7.1.29-r0
7.1.29-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/php to a version that resolves this vulnerability.

    Fixed in 5.6.38
  3. Upgrade

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

    Fixed in 7.0.32
  4. Upgrade

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

    Fixed in 7.1.22
  5. Upgrade

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

    Fixed in 7.2.10
  6. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.0.32
  7. Upgrade

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

    Fixed in 5.6.38-r0
  8. Upgrade

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

    Fixed in 7.0.32-r0
  9. Upgrade

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

    Fixed in 7.1.29-r0
  10. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 5.6.38
  11. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.1.22
  12. Upgrade

    Upgrade PHP to a version that resolves this vulnerability.

    Fixed in 7.2.10

Event History

Sep 13, 2018
CVE Published
via PHP·12:00 AM
Sep 16, 2018
CVE Published
via MITRE·03:00 PM
Data Sourced
via MITRE·03:00 PM
Description
Data Sourced
via OSV·03: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 the severity of CVE-2018-17082?

The severity of CVE-2018-17082 is classified as medium due to its potential for cross-site scripting (XSS) attacks.

2

How do I fix CVE-2018-17082?

To resolve CVE-2018-17082, you should upgrade to PHP versions 5.6.38, 7.0.32, 7.1.22, or 7.2.10 or later.

3

What types of applications are affected by CVE-2018-17082?

CVE-2018-17082 affects any application running on PHP versions prior to the mentioned patched versions.

4

What attack vector does CVE-2018-17082 exploit?

CVE-2018-17082 exploits an XSS vulnerability through the mishandling of 'Transfer-Encoding: chunked' requests.

5

Is there a known workaround for CVE-2018-17082?

There are no known workarounds for CVE-2018-17082; upgrading is the recommended solution.

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