{"id":"CVE-2026-25965","published":"2026-02-24T01:20:44Z","modified":"2026-07-15T01:15:47Z","title":"ImageMagick's policy bypass through path traversal allows reading restricted content despite secured policy","vendor":"ImageMagick","product":"ImageMagick","tier":"tail","description":{"text":"ImageMagick is free and open-source software used for editing and manipulating digital images. Prior to versions 7.1.2-15 and 6.9.13-40, ImageMagick’s path security policy is enforced on the raw filename string before the filesystem resolves it. As a result, a policy rule such as /etc/* can be bypassed by a path traversal. The OS resolves the traversal and opens the sensitive file, but the policy matcher only sees the unnormalized path and therefore allows the read. This enables local file disclosure (LFI) even when policy-secure.xml is applied. Actions to prevent reading from files have been taken in versions .7.1.2-15 and 6.9.13-40 But it make sure writing is also not possible the following should be added to one's policy. This will also be included in ImageMagick's more secure policies by default.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.6,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00729,"percentile":0.55148,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-8jvj-p28h-9gm7","tags":["x_refsource_CONFIRM"]},{"url":"https://access.redhat.com/security/cve/CVE-2026-25965","tags":["vdb-entry","x_refsource_REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2442118","tags":["issue-tracking","x_refsource_REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-25965.json","tags":["x_sadp-csaf-vex"]},{"url":"https://access.redhat.com/errata/RHSA-2026:5573","tags":["vendor-advisory","x_refsource_REDHAT"]}],"priority":{"score":17.0,"factors":[{"name":"EPSS percentile","points":11.03},{"name":"CVSS severity","points":6.02}]},"vendorSlug":"imagemagick","affectedVersions":[{"vendor":"ImageMagick","product":"ImageMagick","versions":[">= 7.0.0, < 7.1.2-15","< 6.9.13-40"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2026-02-26T15:28:41.059459Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"NuGet","package":"Magick.NET-Q16-AnyCPU","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-AnyCPU","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-arm64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-OpenMP-x64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-arm64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-HDRI-x86","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-arm64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x64","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"},{"ecosystem":"NuGet","package":"Magick.NET-Q16-OpenMP-x86","vulnerableRanges":["<14.10.3"],"patched":["14.10.3"],"from":["GHSA-8jvj-p28h-9gm7"],"provenance":"source"}],"summary":{"text":"ImageMagick, the open-source image editing and manipulation software, has a flaw in its path security policy: the policy is checked against the raw filename before the filesystem resolves traversal sequences, so restrictions such as /etc/* can be bypassed via path traversal, affecting versions before 7.1.2-15 and 6.9.13-40. An attacker with network access and no authentication or user interaction can use crafted filenames to read restricted local files, even when the secure policy file is applied.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:43:08Z"},"euvd":{"id":"EUVD-2026-7438","exploited":false,"provenance":"source"}}