Use After Free Affecting php package, versions [7.2.0,7.2.8)


Severity

Recommended
0.0
critical
0
10

CVSS assessment made by Snyk's Security Team. Learn more

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-UNMANAGED-PHP-2335209
  • published12 Jan 2022
  • disclosed26 Jun 2018
  • creditUnknown

Introduced: 26 Jun 2018

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

How to fix?

Upgrade php to version 7.2.8 or higher.

Overview

Affected versions of this package are vulnerable to Use After Free 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.

References

CVSS Scores

version 3.1