CVE-2017-11628: Buffer Overflow

Published Jul 6, 2017
·
Updated

A stack buffer overflow exists in the latest stable release of PHP-7.1.5 and PHP-5.6.30 in PHP INI parsing API, which may accept network / local filesystem input. On malformed inputs, a stack buffer overflow in zendinidoop() could write 1-byte off a fixed size stack buffer. On installations with the stack smashing mitigation, this would cause an immediate DoS; upto optimization levels, build options and stack buffer overflow mitigations, this vulnerability may allow corrupting other local variables or the frame pointer, potentially allows remotely executing code.

Upstream bug:

https://bugs.php.net/bug.php?id=74603

Upstream patch:

http://git.php.net/?p=php-src.git;a=commit;h=5f8380d33e648964d2d5140f329cf2d4c443033c http://git.php.net/?p=php-src.git;a=commit;h=05255749139b3686c8a6a58ee01131ac0047465e http://git.php.net/?p=php-src.git;a=commit;h=88c521d659521f695e0b9e7fcdded0fc1ee1c53b

Other sources

Fixed bug (PHP INI Parsing Stack Buffer Overflow Vulnerability). (CVE-2017-11628)

PHP

In PHP before 5.6.31, 7.x before 7.0.21, and 7.1.x before 7.1.7, a stack-based buffer overflow in the zendinidoop() function in Zend/zendiniparser.c could cause a denial of service or potentially allow executing code. NOTE: this is only relevant for PHP applications that accept untrusted input (instead of the system's php.ini file) for the parseinistring or parseinifile function, e.g., a web application for syntax validation of php.ini directives.

Launchpad

Affected Software

35 affected componentsFixes available
debian/php5
debian/php7.0
debian/php7.1
redhat/php<7.0.21
7.0.21
redhat/php<7.1.7
7.1.7
PHP PHP<=5.6.30
PHP PHP=7.0.0
PHP PHP=7.0.1
PHP PHP=7.0.2
PHP PHP=7.0.3
PHP PHP=7.0.4
PHP PHP=7.0.5
PHP PHP=7.0.6
PHP PHP=7.0.7
PHP PHP=7.0.8
PHP PHP=7.0.9
PHP PHP=7.0.10
PHP PHP=7.0.11
PHP PHP=7.0.12
PHP PHP=7.0.13
PHP PHP=7.0.14
PHP PHP=7.0.15
PHP PHP=7.0.16
PHP PHP=7.0.17
PHP PHP=7.0.18
PHP PHP=7.0.19
PHP PHP=7.0.20
PHP PHP=7.1.0
PHP PHP=7.1.1
PHP PHP=7.1.2
PHP PHP=7.1.3
PHP PHP=7.1.4
PHP PHP=7.1.5
PHP PHP=7.1.6
PHP PHP<7.0.21
7.0.21

Event History

Jul 6, 2017
CVE Published
via PHP·12:00 AM
Jul 25, 2017
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
Description
Jan 11, 2024
Data Sourced
via Launchpad·10:26 PM
Description
Sep 16, 2024
Data Sourced
via Ubuntu·01:18 AM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2017-11628?

CVE-2017-11628 is a vulnerability in PHP that allows for a stack-based buffer overflow, potentially leading to a denial of service or code execution.

2

What versions of PHP are affected by CVE-2017-11628?

PHP versions before 5.6.31, 7.x before 7.0.21, and 7.1.x before 7.1.7 are affected by CVE-2017-11628.

3

What is the severity of CVE-2017-11628?

CVE-2017-11628 has a severity rating of 7.8, which is considered high.

4

How do I fix CVE-2017-11628?

To fix CVE-2017-11628, you should update PHP to version 7.0.21 or 7.1.7, depending on the version you are using.

5

Where can I find more information about CVE-2017-11628?

You can find more information about CVE-2017-11628 at the following references: [1] [2] [3].

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