php: Use-after-free reachable via the exif.c:exif_read_from_impl() function
Published Jun 26, 2018
9.8
CRITICALCVSS 3.0
EPSS 6.71%
Description
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.
Affected products
No data.
Configuration 2
- 18.04
Configuration 3
- n/a
No data.
Red Hat Enterprise Linux 5
php
Not affected
Red Hat Enterprise Linux 5
php53
Not affected
Red Hat Enterprise Linux 6
php
Not affected
Red Hat Enterprise Linux 7
php
Not affected
Red Hat Enterprise Linux 8
php
Not affected
Red Hat Software Collections
rh-php70-php
Not affected
Red Hat Software Collections
rh-php71-php
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | php | Not affected | n/a |
| Red Hat Enterprise Linux 5 | php53 | Not affected | n/a |
| Red Hat Enterprise Linux 6 | php | Not affected | n/a |
| Red Hat Enterprise Linux 7 | php | Not affected | n/a |
| Red Hat Enterprise Linux 8 | php | Not affected | n/a |
| Red Hat Software Collections | rh-php70-php | Not affected | n/a |
| Red Hat Software Collections | rh-php71-php | Not affected | n/a |
No package ranges for this CVE.
Remediation
No remediation recorded yet.
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:L/I:L/A:L
AV:N/AC:L/Au:N/C:P/I:P/A:P
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (42 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 6.71% (0.06714) | 93.72th | v5 (v2026.06.15) |
| Sep 22, 2026 | 6.71% (0.06714) | 93.62th | v5 (v2026.06.15) |
| Sep 21, 2026 | 5.36% (0.05359) | 92.33th | v5 (v2026.06.15) |
| Sep 6, 2026 | 6.71% (0.06714) | 93.48th | v5 (v2026.06.15) |
| Sep 5, 2026 | 5.36% (0.05359) | 92.17th | v5 (v2026.06.15) |
| Aug 30, 2026 | 6.80% (0.06800) | 93.52th | v5 (v2026.06.15) |
| Aug 28, 2026 | 5.43% (0.05427) | 92.20th | v5 (v2026.06.15) |
| Aug 24, 2026 | 6.80% (0.06800) | 93.48th | v5 (v2026.06.15) |
| Aug 23, 2026 | 5.43% (0.05427) | 92.16th | v5 (v2026.06.15) |
| Jun 15, 2026 | 6.62% (0.06618) | 92.97th | v5 (v2026.06.15) |
| Mar 4, 2026 | 5.69% (0.05689) | 90.23th | v4 (v2025.03.14) |
| Mar 1, 2026 | 3.81% (0.03811) | 87.93th | v4 (v2025.03.14) |
| Feb 4, 2026 | 5.69% (0.05689) | 90.18th | v4 (v2025.03.14) |
| Feb 1, 2026 | 3.81% (0.03811) | 87.87th | v4 (v2025.03.14) |
| Jan 4, 2026 | 5.97% (0.05973) | 90.37th | v4 (v2025.03.14) |
| Jan 1, 2026 | 4.01% (0.04007) | 88.16th | v4 (v2025.03.14) |
| Dec 30, 2025 | 5.97% (0.05973) | 90.36th | v4 (v2025.03.14) |
| Dec 4, 2025 | 4.29% (0.04292) | 88.42th | v4 (v2025.03.14) |
| Dec 1, 2025 | 2.86% (0.02856) | 85.84th | v4 (v2025.03.14) |
| Nov 4, 2025 | 4.29% (0.04292) | 88.33th | v4 (v2025.03.14) |
| Nov 1, 2025 | 2.86% (0.02856) | 85.79th | v4 (v2025.03.14) |
| Oct 4, 2025 | 5.26% (0.05263) | 89.55th | v4 (v2025.03.14) |
| Oct 1, 2025 | 3.68% (0.03682) | 87.48th | v4 (v2025.03.14) |
| Sep 22, 2025 | 5.94% (0.05936) | 90.28th | v4 (v2025.03.14) |
| Mar 30, 2025 | 4.00% (0.04004) | 87.37th | v4 (v2025.03.14) |
| Mar 29, 2025 | 24.13% (0.24128) | 93.65th | v4 (v2025.03.14) |
| Mar 17, 2025 | 4.00% (0.04004) | 87.67th | v4 (v2025.03.14) |
| Jul 20, 2024 | 0.54% (0.00536) | 77.43th | v3 (v2023.03.01) |
| Mar 8, 2024 | 0.54% (0.00536) | 76.67th | v3 (v2023.03.01) |
| Dec 26, 2023 | 0.54% (0.00536) | 74.66th | v3 (v2023.03.01) |
| Nov 16, 2023 | 0.50% (0.00499) | 73.61th | v3 (v2023.03.01) |
| Jul 24, 2023 | 0.53% (0.00528) | 73.91th | v3 (v2023.03.01) |
| Jun 19, 2023 | 0.73% (0.00733) | 78.14th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.97% (0.00970) | 81.01th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.02% (0.01018) | 40.69th | v2 (v2022.01.01) |
| Sep 10, 2022 | 1.02% (0.01018) | 38.88th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.02% (0.01018) | 36.86th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.02% (0.01018) | 19.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.25% (0.01247) | 30.57th | v1 |
| Jan 6, 2022 | 1.25% (0.01247) | 29.93th | v1 |
| Sep 1, 2021 | 1.25% (0.01247) | 68.62th | v1 |
| Apr 14, 2021 | 1.25% (0.01247) | 0.00th | v1 |
References (9)
- http://www.securityfocus.com/bid/104551 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-12882 Vendor Advisory
- https://bugs.php.net/bug.php?id=76409 x_refsource_CONFIRMIssue TrackingPatchVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1595502 Issue Tracking
- https://nvd.nist.gov/vuln/detail/CVE-2018-12882
- https://security.netapp.com/advisory/ntap-20181109-0001/ x_refsource_CONFIRMThird Party Advisory
- https://usn.ubuntu.com/3702-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3702-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-12882
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/104551 | vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2018-12882 | Vendor Advisory | |
| https://bugs.php.net/bug.php?id=76409 | x_refsource_CONFIRMIssue TrackingPatchVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1595502 | Issue Tracking | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-12882 | ||
| https://security.netapp.com/advisory/ntap-20181109-0001/ | x_refsource_CONFIRMThird Party Advisory | |
| https://usn.ubuntu.com/3702-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://usn.ubuntu.com/3702-2/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-12882 |
Change history (0)
No recorded changes yet.