Vulnerability in imagemagick
Auto-generated summary
Assembled by SecPulse from the source data (CVSS, CWE, affected versions) using templates — no AI involved. Check the original description and references below for exact details.
A vulnerability tracked as UBUNTU-CVE-2026-25797 has been found in imagemagick.
Risk of unauthorized operations or information disclosure.
What to do: upgrade imagemagick to 8:6.7.7.10-6ubuntu3.13+esm21 or later.
If unsure, ask your IT team or search "imagemagick UBUNTU-CVE-2026-25797" on the vendor's site.
UBUNTU-CVE-2026-25797 (imagemagick)
Attack vector: local / unauthenticated / no user interaction
Patched: 8:6.7.7.10-6ubuntu3.13+esm21 — apply immediately
Plan: 1) Audit SBOM/dependencies, 2) Stage→prod upgrade, 3) Add WAF/proxy monitoring on affected endpoints, 4) Hunt IOCs in logs.
Refs: see the GHSA / vendor advisory / patched release linked on this page.
A vulnerability (unclassified) exists in imagemagick.
Check the vendor advisory for the affected versions of imagemagick.
Severity: ?. Risk of unauthorized operations or information disclosure.
Update to 8:6.7.7.10-6ubuntu3.13+esm21.
Until the patch is applied: disable the affected feature, apply WAF rules, or restrict access via network ACLs.
Search webserver/proxy logs for unusual request patterns matching this CVE's known IOCs. Run grep -r 'imagemagick' . against your dependency files (package-lock.json, requirements.txt, go.sum) to find affected services.
Response actions
Concrete steps and command examples for SOC/SRE teams to execute in order
-
1
Identify exposureidentify
grep -r 'imagemagick' . | grep -v node_modulesリポジトリと本番環境の依存ファイル (package-lock.json / requirements.txt / go.sum / Gemfile.lock 等) で
imagemagickを grep し、稼働しているサービス・バージョンを把握する。 -
2
Apply patchpatch
Upgrade imagemagick to 8:6.7.7.10-6ubuntu3.13+esm21ステージング環境で 8:6.7.7.10-6ubuntu3.13+esm21 に上げて回帰テスト → 本番反映。回帰テストはアプリの主要ハッピーパスを含めること。
-
3
Post-deployment verificationverify
Confirm patched version is live in productionパッチ適用後、ステージングで PoC または同等の悪用パターンを再現して脆弱性が閉じたことを確認。本番ではアクセスログ・WAF でアラート再発が無いか継続監視。
Affected packages
| Ecosystem | Package | Affected | Fixed |
|---|---|---|---|
| Ubuntu:Pro:14.04:LTS | imagemagick |
< 8:6.7.7.10-6ubuntu3.13+esm21 |
8:6.7.7.10-6ubuntu3.13+esm21 |
| Ubuntu:Pro:16.04:LTS | imagemagick |
< 8:6.8.9.9-7ubuntu5.16+esm20 |
8:6.8.9.9-7ubuntu5.16+esm20 |
| Ubuntu:Pro:18.04:LTS | imagemagick |
< 8:6.9.7.4+dfsg-16ubuntu6.15+esm12 |
8:6.9.7.4+dfsg-16ubuntu6.15+esm12 |
| Ubuntu:Pro:20.04:LTS | imagemagick |
< 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10 |
8:6.9.10.23+dfsg-2.1ubuntu11.11+esm10 |
| Ubuntu:Pro:22.04:LTS | imagemagick |
< 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10 |
8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm10 |
| Ubuntu:Pro:24.04:LTS | imagemagick |
< 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9 |
8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm9 |
| Ubuntu:25.10 | imagemagick |
< 8:7.1.2.3+dfsg1-1ubuntu0.1 |
8:7.1.2.3+dfsg1-1ubuntu0.1 |
Original description The description as published by the source.
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, the ps coders, responsible for writing PostScript files, fails to sanitize the input before writing it into the PostScript header. An attacker can provide a malicous file and inject arbitrary PostScript code. When the resulting file is processed by a printer or a viewer (like Ghostscript), the injected code is interpreted and executed. The html encoder does not properly escape strings that are written to in the html document. An attacker can provide a malicious file and injection arbitrary html code. Versions 7.1.2-15 and 6.9.13-40 contain a patch.
Source: OSV.dev (Open Source Vulnerabilities) OSV
References
- advisory ubuntu.com
- report ubuntu.com
- report cve.org
- report github.com