Логотип exploitDog
Консоль
Логотип exploitDog

exploitDog

redhat логотип

CVE-2026-25966

Опубликовано: 24 фев. 2026
Источник: redhat
CVSS3: 5.9

Описание

ImageMagick is free and open-source software used for editing and manipulating digital images. The shipped "secure" security policy includes a rule intended to prevent reading/writing from standard streams. However, ImageMagick also supports fd: pseudo-filenames (e.g., fd:0, fd:1). Prior to versions 7.1.2-15 and 6.9.13-40, this path form is not blocked by the secure policy templates, and therefore bypasses the protection goal of "no stdin/stdout." Versions 7.1.2-15 and 6.9.13-40 contain a patch by including a change to the more secure policies by default. As a workaround, add the change to one's security policy manually.

A flaw was found in ImageMagick. The "secure" security policy, intended to prevent reading and writing from standard streams, can be bypassed. An attacker can exploit this by using fd: pseudo-filenames, which are not properly blocked by the policy. This allows the attacker to circumvent the intended security restrictions, potentially leading to unauthorized access to standard input/output (stdin/stdout) and subsequent information disclosure or data manipulation.

Отчет

This MODERATE impact flaw in ImageMagick allows a security policy bypass through the use of fd:<n> pseudo-filenames, enabling unauthorized access to standard input/output despite the "secure" policy. Red Hat Enterprise Linux 6 ELS and 7 ELS, as well as community projects like Fedora and EPEL, are affected by this vulnerability. Exploitation requires an attacker to provide a specially crafted image or command that leverages this bypass.

Меры по смягчению последствий

To mitigate this issue, modify the ImageMagick security policy file, typically located at /etc/ImageMagick-X/policy.xml (where X is the version), to explicitly deny access to fd: pseudo-filenames. Add a policy rule similar to <policy domain="delegate" rights="none" pattern="fd:*" /> within the <policymap> section. This change will prevent ImageMagick from processing fd: paths, thereby closing the bypass. A restart of any services utilizing ImageMagick may be required for the policy change to take effect.

Затронутые пакеты

ПлатформаПакетСостояниеРекомендацияРелиз
Red Hat Enterprise Linux 6ImageMagickOut of support scope
Red Hat Enterprise Linux 7ImageMagickOut of support scope

Показывать по

Дополнительная информация

Статус:

Moderate
Дефект:
CWE-184
https://bugzilla.redhat.com/show_bug.cgi?id=2442122ImageMagick: ImageMagick: Policy bypass allows unauthorized access to standard streams via fd:<n> pseudo-filenames

5.9 Medium

CVSS3

Связанные уязвимости

CVSS3: 5.9
ubuntu
5 месяцев назад

ImageMagick is free and open-source software used for editing and manipulating digital images. The shipped "secure" security policy includes a rule intended to prevent reading/writing from standard streams. However, ImageMagick also supports fd:<n> pseudo-filenames (e.g., fd:0, fd:1). Prior to versions 7.1.2-15 and 6.9.13-40, this path form is not blocked by the secure policy templates, and therefore bypasses the protection goal of "no stdin/stdout." Versions 7.1.2-15 and 6.9.13-40 contain a patch by including a change to the more secure policies by default. As a workaround, add the change to one's security policy manually.

CVSS3: 5.9
nvd
5 месяцев назад

ImageMagick is free and open-source software used for editing and manipulating digital images. The shipped "secure" security policy includes a rule intended to prevent reading/writing from standard streams. However, ImageMagick also supports fd:<n> pseudo-filenames (e.g., fd:0, fd:1). Prior to versions 7.1.2-15 and 6.9.13-40, this path form is not blocked by the secure policy templates, and therefore bypasses the protection goal of "no stdin/stdout." Versions 7.1.2-15 and 6.9.13-40 contain a patch by including a change to the more secure policies by default. As a workaround, add the change to one's security policy manually.

CVSS3: 5.9
debian
5 месяцев назад

ImageMagick is free and open-source software used for editing and mani ...

CVSS3: 5.9
github
5 месяцев назад

ImageMagick's Security Policy Bypass through config/policy-secure.xml via "fd handler" leads to stdin/stdout access

CVSS3: 7.8
fstec
5 месяцев назад

Уязвимость реализации политики безопасности консольного графического редактора ImageMagick, позволяющая нарушителю получить несанкционированный доступ к защищаемой информации

5.9 Medium

CVSS3