ImageMagick: memory leak in coders/json.c:EncodeImageAttributes could cause crash
Published Jan 12, 2018
6.5
MEDIUMCVSS 3.0
EPSS 1.69%
Description
ImageMagick 7.0.7-22 Q16 has memory leaks in the EncodeImageAttributes function in coders/json.c, as demonstrated by the ReadPSDLayersInternal function in coders/psd.c.
Affected products
No data.
Configuration 1
- 7.0.7-22
Configuration 2
- 14.04
- 16.04
- 17.10
- 18.04
No data.
Red Hat Enterprise Linux 5
ImageMagick
Not affected
Red Hat Enterprise Linux 6
ImageMagick
Not affected
Red Hat Enterprise Linux 7
ImageMagick
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 5 | ImageMagick | Not affected | n/a |
| Red Hat Enterprise Linux 6 | ImageMagick | Not affected | n/a |
| Red Hat Enterprise Linux 7 | ImageMagick | 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:R/S:U/C:N/I:N/A:H
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:L/I:N/A:N
AV:N/AC:M/Au:N/C:N/I:N/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 v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v5
Table of values (15 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 1.69% (0.01691) | 76.24th | v5 (v2026.06.15) |
| Jun 15, 2026 | 1.72% (0.01723) | 74.47th | v5 (v2026.06.15) |
| Jul 20, 2024 | 0.10% (0.00097) | 41.14th | v3 (v2023.03.01) |
| Nov 22, 2023 | 0.10% (0.00097) | 40.46th | v3 (v2023.03.01) |
| Jun 5, 2023 | 0.09% (0.00090) | 37.23th | v3 (v2023.03.01) |
| May 8, 2023 | 0.10% (0.00098) | 39.43th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.08% (0.00080) | 32.60th | v3 (v2023.03.01) |
| Mar 6, 2023 | 0.89% (0.00885) | 27.89th | v2 (v2022.01.01) |
| Sep 10, 2022 | 0.89% (0.00885) | 26.24th | v2 (v2022.01.01) |
| Apr 1, 2022 | 0.89% (0.00885) | 24.24th | v2 (v2022.01.01) |
| Feb 4, 2022 | 0.89% (0.00885) | 10.50th | v2 (v2022.01.01) |
| Feb 3, 2022 | 0.62% (0.00624) | 17.80th | v1 |
| Jan 6, 2022 | 0.62% (0.00624) | 17.24th | v1 |
| Sep 1, 2021 | 0.62% (0.00624) | 45.04th | v1 |
| Apr 14, 2021 | 0.62% (0.00624) | 0.00th | v1 |
References (6)
- https://access.redhat.com/security/cve/CVE-2018-5358 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1534380 Issue Tracking
- https://github.com/ImageMagick/ImageMagick/issues/939 x_refsource_CONFIRMExploitThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2018-5358
- https://usn.ubuntu.com/3681-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-5358
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2018-5358 | Vendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1534380 | Issue Tracking | |
| https://github.com/ImageMagick/ImageMagick/issues/939 | x_refsource_CONFIRMExploitThird Party Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-5358 | ||
| https://usn.ubuntu.com/3681-1/ | vendor-advisoryx_refsource_UBUNTUThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-5358 |
Change history (0)
No recorded changes yet.