Use After Free Affecting php7-ftp package, versions <7.2.5-4.3.1


Severity

Recommended
0.0
medium
0
10

Based on SUSE Linux Enterprise Server security rating.

Threat Intelligence

EPSS
0.69% (80th 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-SLES150-PHP7FTP-2763798
  • published14 Apr 2022
  • disclosed12 Jul 2018

Introduced: 12 Jul 2018

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

How to fix?

Upgrade SLES:15.0 php7-ftp to version 7.2.5-4.3.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream php7-ftp package and not the php7-ftp package as distributed by SLES. See How to fix? for SLES:15.0 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.