Use After Free Affecting php72-fpm package, versions <0:7.2.8-1.5.amzn1


Severity

Recommended
0.0
medium
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.69% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Use After Free vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-AMZN201803-PHP72FPM-1714647
  • published27 Sept 2021
  • disclosed26 Jun 2018

Introduced: 26 Jun 2018

CVE-2018-12882  (opens in a new tab)
CWE-416  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2018.03 php72-fpm to version 0:7.2.8-1.5.amzn1 or higher.
This issue was patched in ALAS-2018-1067.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php72-fpm package and not the php72-fpm package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2018.03 relevant fixed versions and status.

exif_read_from_impl in ext/exif/exif.c in PHP 7.2.x through 7.2.7 allows attackers to trigger a use-after-free (in exif_read_from_file) because it closes a stream that it is not responsible for closing. The vulnerable code is reachable through the PHP exif_read_data function.