CVE-2026-40169: ImageMagick: Heap buffer overflow (WRITE) in the YAML and JSON encoders
CVE-2026-40169 is a vulnerability in ImageMagick: Heap buffer overflow (WRITE) in the YAML and JSON encoders, rated Moderate by Microsoft, with a CVSS 3.1 base score of 5.5 (Medium). An attacker can exploit it by an attacker with local access, with low privileges and without user interaction. Microsoft has not reported exploitation in the wild. The EPSS model estimates a 0.19% probability of exploitation activity in the next 30 days, higher than 8% of all scored vulnerabilities. Microsoft released the fix on 12 November 2026, outside Patch Tuesday. It affects 1 product in 1 product family (Open Source Software).
Key facts
- CVE ID
- CVE-2026-40169
- Severity
- Medium CVSS 5.5
- Microsoft severity
- Moderate
- Exploited in the wild
- No
- Publicly disclosed
- No
- Weakness
- CWE-122; CWE-787
- EPSS
- 0.19% (percentile 8%)
- CISA KEV
- Not listed
- Released
- Last updated
- Patch Tuesday
- April 2026 Patch Tuesday
- Product families
- Open Source Software
CVSS score and vector
Microsoft scores CVE-2026-40169 at 5.5 (temporal 5.5) using CVSS 3.1. Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
| Metric | Value |
|---|---|
| Attack vector | Local |
| Attack complexity | Low |
| Privileges required | Low |
| User interaction | None |
| Scope | Unchanged |
| Confidentiality impact | None |
| Integrity impact | None |
| Availability impact | High |
Affected products (1)
Open Source Software
| Product | Security update | Type | Fixed build | Restart |
|---|---|---|---|---|
| azl4 ImageMagick 1:7.1.1.47-10.azl4 on Azure Linux 4.0 | Release Notes | Security Update | 1:7.1.2.32-6.azl4 |
NIST NVD data
Affected configurations (CPE)
| Product | Vulnerable versions |
|---|---|
| imagemagick | before 7.1.2-19 |
References
- https://github.com/ImageMagick/ImageMagick/commit/f86452a8aea37bf2b4bd36127f836dcc5f138b38 (Patch)
- https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19 (Release Notes)
- https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-5592-p365-24xh (Vendor Advisory)
- https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0 (Release Notes)
Revision history
| Version | Date | Description |
|---|---|---|
| 1.0 | Information published. |