Heap-buffer-overflow in exif_process_IFD_in_MAKERNOTE in php
Summary
OSV-2020-1777: Heap-buffer-overflow in exif_process_IFD_in_MAKERNOTE. Affects php versions >= ecb1e312a0b4e90fa4d2e7bd89dbddd031f82de6, < 655691675927fa94b634daa59fa07562f921621c. Fixed in 655691675927fa94b634daa59fa07562f921621c. How to fix ↓
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.
No signup required · Results in about 60 seconds
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 →
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.
References
Related vulnerabilities
Recent vulnerabilities recorded for php.