{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-40310",
        "assignerOrgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
        "state": "PUBLISHED",
        "assignerShortName": "GitHub_M",
        "dateReserved": "2026-04-10T21:41:54.504Z",
        "datePublished": "2026-04-13T21:32:53.361Z",
        "dateUpdated": "2026-04-14T16:28:25.315Z"
    },
    "containers": {
        "cna": {
            "title": "ImageMagick: Heap out-of-bounds write in JP2 encoder",
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-122",
                            "lang": "en",
                            "description": "CWE-122: Heap-based Buffer Overflow",
                            "type": "CWE"
                        }
                    ]
                },
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-787",
                            "lang": "en",
                            "description": "CWE-787: Out-of-bounds Write",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "attackComplexity": "LOW",
                        "attackVector": "LOCAL",
                        "availabilityImpact": "HIGH",
                        "baseScore": 5.5,
                        "baseSeverity": "MEDIUM",
                        "confidentialityImpact": "NONE",
                        "integrityImpact": "NONE",
                        "privilegesRequired": "NONE",
                        "scope": "UNCHANGED",
                        "userInteraction": "REQUIRED",
                        "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
                        "version": "3.1"
                    }
                }
            ],
            "references": [
                {
                    "name": "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh",
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-pwg5-6jfc-crvh"
                },
                {
                    "name": "https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/ImageMagick/ImageMagick/commit/3d653bea2df085c728a1c8f775808e1e9249dff9"
                },
                {
                    "name": "https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/ImageMagick/ImageMagick/releases/tag/7.1.2-19"
                },
                {
                    "name": "https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0",
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "https://github.com/dlemstra/Magick.NET/releases/tag/14.12.0"
                }
            ],
            "affected": [
                {
                    "vendor": "ImageMagick",
                    "product": "ImageMagick",
                    "versions": [
                        {
                            "version": "< 7.1.2-19",
                            "status": "affected"
                        },
                        {
                            "version": "< 6.9.13-44",
                            "status": "affected"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "orgId": "a0819718-46f1-4df5-94e2-005712e83aaa",
                "shortName": "GitHub_M",
                "dateUpdated": "2026-04-13T21:32:53.361Z"
            },
            "descriptions": [
                {
                    "lang": "en",
                    "value": "ImageMagick is free and open-source software used for editing and manipulating digital images. Versions below both 7.1.2-19 and 6.9.13-44, contain a heap out-of-bounds write in the JP2 encoder with when a user specifies an invalid sampling index. This issue has been fixed in versions 6.9.13-44 and 7.1.2-19."
                }
            ],
            "source": {
                "advisory": "GHSA-pwg5-6jfc-crvh",
                "discovery": "UNKNOWN"
            }
        },
        "adp": [
            {
                "metrics": [
                    {
                        "other": {
                            "type": "ssvc",
                            "content": {
                                "timestamp": "2026-04-14T15:33:34.221037Z",
                                "id": "CVE-2026-40310",
                                "options": [
                                    {
                                        "Exploitation": "none"
                                    },
                                    {
                                        "Automatable": "no"
                                    },
                                    {
                                        "Technical Impact": "partial"
                                    }
                                ],
                                "role": "CISA Coordinator",
                                "version": "2.0.3"
                            }
                        }
                    }
                ],
                "title": "CISA ADP Vulnrichment",
                "providerMetadata": {
                    "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
                    "shortName": "CISA-ADP",
                    "dateUpdated": "2026-04-14T16:28:25.315Z"
                }
            }
        ]
    }
}