Critical Vulnerability in PHP Packages: Denial of Service Risk

php5 Updated 03 Oct 2025

Summary

12/05/2017
N/A
No i
Critical
9.8

UBUNTU-CVE-2017-8923: The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects that result in a negative length, which allows remote attackers to cause a denial of service (applicat... Affects php5 versions 5.5.3+dfsg-1ubuntu2 – 5.5.9+dfsg-1ubuntu4.9. No fix is published. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

PHP is a widely-used open-source scripting language designed for web development but also used as a general-purpose programming language. It is known for its ease of use, flexibility, and strong community support. The affected packages include various versions of PHP (5, 7.0, 7.2, 7.4) that are integral for running dynamic web applications. This vulnerability allows attackers to exploit string manipulation functions, leading to potential application crashes.

Vulnerability Detail

The zend_string_extend function in Zend/zend_string.h in PHP through 7.1.5 does not prevent changes to string objects that result in a negative length. This flaw can be exploited by remote attackers to cause a denial of service (application crash) or potentially have unspecified other impacts by leveraging a script's use of string concatenation with long strings. The vulnerability has a CVSS score of 9.8, indicating a critical level of severity.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

If immediate patching is not feasible, consider implementing input validation to restrict the length of strings processed by your PHP applications. This can help mitigate the risk of triggering the vulnerability until a proper update can be applied.

Conclusion

This report highlights a critical vulnerability in various PHP packages that can lead to denial of service attacks. It is crucial for users to update their PHP installations to the latest patched versions to mitigate risks. Additionally, implementing input validation can serve as a temporary workaround until updates are applied.

See every vulnerability recorded for php5 →

Share this vulnerability

FAQ

The vulnerability allows for denial of service attacks due to improper handling of string lengths in PHP.

PHP versions 5.5.9, 7.0.33, 7.2.24, and 7.4.3 are among those impacted by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability can lead to application crashes and potentially allow attackers to execute further malicious actions.

Yes, Vulert can monitor and alert you in real-time for open-source vulnerabilities using just a manifest file like package-lock.json.

Related vulnerabilities

Recent vulnerabilities recorded for php5.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback