Integer Overflow Vulnerability in PHP5 - CVE-2018-14883

php5 Updated 02 Oct 2025

Summary

03/08/2018
N/A
Yes i
High
7.5

ALPINE-CVE-2018-14883: An issue was discovered in PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. Affects php5 versions < 5.6.37-r0. Fixed in 5.6.37-r0. 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

PHP5 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 extensive community support. However, certain versions of PHP5, along with other PHP versions, are vulnerable to an integer overflow issue that can lead to serious security risks.

Vulnerability Detail

An integer overflow vulnerability was discovered in PHP versions prior to 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8. This vulnerability occurs in the 'exif_thumbnail_extract' function within 'exif.c', which can lead to a heap-based buffer over-read. This could potentially allow an attacker to exploit the vulnerability to execute arbitrary code, leading to a compromise of the affected system.

How To Fix

Minimum fixed version

5.6.37-r0

This is the first release that contains the fix.

sudo apk add --upgrade php5

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, consider disabling the EXIF extension in PHP if it is not needed for your application. This can be done by modifying the php.ini file and commenting out the line that loads the EXIF extension.

Conclusion

The integer overflow vulnerability in PHP5, identified as CVE-2018-14883, poses significant risks to applications using affected versions. It is crucial to update to the patched versions to mitigate potential security threats.

See every vulnerability recorded for php5 →

Share this vulnerability

FAQ

CVE-2018-14883 is a vulnerability identifier for an integer overflow issue in PHP that can lead to a heap-based buffer over-read.

Affected versions include PHP before 5.6.37, 7.0.x before 7.0.31, 7.1.x before 7.1.20, and 7.2.x before 7.2.8.

The vulnerability can lead to arbitrary code execution, allowing attackers to compromise the affected system.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score for this vulnerability is 7.5, indicating a high severity level.

Related vulnerabilities

Recent vulnerabilities recorded for php5.

How To Fix

Minimum fixed version

5.6.37-r0

This is the first release that contains the fix.

sudo apk add --upgrade php5

Tip — Not sure which version your app runs? Vulert can match this fix to it. 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