Heap-buffer-overflow in exif_process_IFD_in_MAKERNOTE in php

php Updated 02 Oct 2025

Summary

16/09/2020
MEDIUM
Yes i
Medium
Not published

OSV-2020-1777: Heap-buffer-overflow in exif_process_IFD_in_MAKERNOTE. Affects php versions >= ecb1e312a0b4e90fa4d2e7bd89dbddd031f82de6, < 655691675927fa94b634daa59fa07562f921621c. Fixed in 655691675927fa94b634daa59fa07562f921621c. 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 popular open-source programming language widely used for web development. It provides a range of functionalities and features for building dynamic websites and applications. The vulnerability in question, identified as OSV-2020-1777, affects the PHP package. This vulnerability specifically targets the exif_process_IFD_in_MAKERNOTE function within the package, leading to a heap-buffer-overflow read of 9 bytes.

Vulnerability Detail

The vulnerability arises due to a heap-buffer-overflow read in the exif_process_IFD_in_MAKERNOTE function. This can be triggered by processing a specially crafted image file. An attacker could exploit this vulnerability to execute arbitrary code or cause a denial-of-service condition. The vulnerability was discovered through the OSS-Fuzz project, and more details can be found in the provided OSS-Fuzz report.

How To Fix

Minimum fixed version

655691675927fa94b634daa59fa07562f921621c

This is the first release that contains the fix.

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

Workaround

No specific workaround has been provided for this vulnerability.

Conclusion

In conclusion, the PHP package is affected by a heap-buffer-overflow vulnerability in the exif_process_IFD_in_MAKERNOTE function. This vulnerability can be mitigated by updating the PHP package to a version that includes the fix. For further assistance or support in addressing this vulnerability, please contact DevNack.com.

See every vulnerability recorded for php →

Share this vulnerability

FAQ

This vulnerability could allow an attacker to execute arbitrary code or cause a denial-of-service condition.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability. Simply upload your manifest file (e.g., package-lock.json) to the playground and it will alert you if the vulnerability is present.

Yes, a patch has been released for this vulnerability. It is recommended to update the PHP package to a version that includes the fix.

There are no known exploits for this vulnerability at the moment. However, it is important to apply the patch as soon as possible to mitigate the risk.

This vulnerability was discovered through the OSS-Fuzz project, which is a continuous fuzzing service for open-source software.

Related vulnerabilities

Recent vulnerabilities recorded for php.

How To Fix

Minimum fixed version

655691675927fa94b634daa59fa07562f921621c

This is the first release that contains the fix.

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