
CVE catalog
CVE-2018-12882
Security update for php7
- Severity
- Medium · CVSS 6.3
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 6.71% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Ubuntu | php7.2 | 18.04 | 7.2.1-1ubuntu2 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.2-1ubuntu1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.2-1ubuntu2 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.3-1ubuntu1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.5-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.7-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.7-0ubuntu0.18.04.2 | fixed |
| Ubuntu | php7.2 | 18.04 | 7.2.1-1ubuntu2 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.2-1ubuntu1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.2-1ubuntu2 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.3-1ubuntu1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.5-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.7-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.7-0ubuntu0.18.04.2 | fixed |
| Ubuntu | php7.2 | 18.04 | 7.2.1-1ubuntu2 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.2-1ubuntu1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.2-1ubuntu2 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.3-1ubuntu1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.5-0ubuntu0.18.04.1 | vulnerable |
| Ubuntu | php7.2 | 18.04 | 7.2.7-0ubuntu0.18.04.1 | fixed |
| Suse | php7 | linux enterprise module for web and scripting 15 | 7.2.5-4.3.1 | fixed |
| Suse | php7 | linux enterprise module for web and scripting 12 | 7.0.7-50.41.1 | fixed |
| Suse | php7 | linux enterprise software development kit 12 sp3 | 7.0.7-50.41.1 | fixed |
| Suse | php7 | linux enterprise module for web and scripting 15 | 7.2.5-4.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Ubuntu | php7.2 | deb | 18.04 | 7.2.7-0ubuntu0.18.04.2 | Not reported | UBUNTU-CVE-2018-12882 | Not reported |
| Ubuntu | php7.2 | deb | 18.04 | 7.2.7-0ubuntu0.18.04.2 | Not reported | USN-3702-2 | Not reported |
| Ubuntu | php7.2 | deb | 18.04 | 7.2.7-0ubuntu0.18.04.1 | Not reported | USN-3702-1 | Not reported |
| Suse | php7 | rpm | linux enterprise module for web and scripting 15 | 7.2.5-4.3.1 | Not reported | SUSE-SU-2018:1936-1 | Not reported |
| Suse | php7 | rpm | linux enterprise module for web and scripting 12 | 7.0.7-50.41.1 | Not reported | SUSE-SU-2018:1886-1 | Not reported |
| Suse | php7 | rpm | linux enterprise software development kit 12 sp3 | 7.0.7-50.41.1 | Not reported | SUSE-SU-2018:1886-1 | Not reported |
| Suse | php7 | rpm | linux enterprise module for web and scripting 15 | 7.2.5-4.3.1 | Not reported | SUSE-SU-2018:1936-2 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/suse-su-2018_1886-1.json]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1886-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1936-1]
- [https://osv.dev/vulnerability/SUSE-SU-2018:1936-2]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-12882]
- [https://osv.dev/vulnerability/USN-3702-1]
- [https://osv.dev/vulnerability/USN-3702-2]
[FIRST EPSS] · [OSV Package Vulnerability Database] · [SUSE security advisories and VEX]