Ubuntu Patches ImageMagick CVE-2026-33901: Check Upload Sites
Anyone accepting files from unauthenticated users and passing them to ImageMagick or PHP Imagick should check the processing path and schedule an urgent update.
1-minute summary
- Symptom / problem
- decoder หลายตัวเขียนหน่วยความจำเกินขอบเขต และ Ubuntu เตือนว่าอาจทำให้โปรเซสล่มหรือรันโค้ดได้
- Who should read
- ระบบ Ubuntu ที่ใช้ ImageMagick ประมวลผลข้อมูลที่ไม่น่าเชื่อถือ โดยผลกระทบขึ้นกับ decoder รุ่นแพ็กเกจ และ policy ที่ใช้จริง
- Fix in short
- ตรวจ Ubuntu release และสิทธิ์ Ubuntu Pro อัปเดตแพ็กเกจตาม USN-9469-1 แล้วเริ่ม PHP workers และงานคิวใหม่ พร้อมจำกัดรูปแบบไฟล์ที่อนุญาต
I came across Ubuntu USN-9469-1, dated 3 Dec 2026, which bundles several groups of ImageMagick patches, so I have put together the checks that sites accepting uploads should make. Start with thumbnail generation, image conversion, and PHP Imagick, and trace whether files from unauthenticated users can reach an image decoder. Remember background queue jobs too.
What happened in the image decoders
The main vulnerabilities are in the decoders, which read image data. A maliciously crafted file could cause a decoder to write beyond its allocated memory. PHP using Imagick may also be affected because Imagick calls the ImageMagick libraries without needing to invoke a shell, but the file must first reach a vulnerable decoder.
| Vulnerability | Conditions described by upstream | Fixed upstream versions | Ubuntu releases listed in this USN |
|---|---|---|---|
| CVE-2026-33901 | Heap buffer overflow in the MVG decoder | 6.9.13-44 / 7.1.2-19 | 20.04, 24.04 LTS |
| CVE-2026-46520 | IPL decoder writes out of bounds when reading multiple images of different sizes | 6.9.13-48 / 7.1.2-23 | 14.04, 16.04, 18.04, 20.04, 24.04, 26.04 LTS |
| CVE-2026-53461 | Incorrect loop in the ICON decoder causes out-of-bounds heap writes | 6.9.13-50 / 7.1.2-25 | 24.04 LTS |
The upstream details come from the MVG, IPL, and ICON advisories. The Ubuntu column lists only the releases specified in this USN; consult the CVE pages as well when checking other releases.
The 7.5 score and the code execution warning
All three entries have a CVSS 3.1 score of 7.5 High according to the ImageMagick advisories and CNA data in the CVE Record, using the same vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H. Ubuntu assigns them a priority of Medium.
This vector assesses the vulnerabilities as exploitable over a network, with no privileges or user interaction required. The availability impact is High, while confidentiality and integrity are None. There is also a discrepancy between sources: the Ubuntu CVE-2026-33901 and CVE-2026-53461 pages label the section CVSS v3.0 but show a 3.1 vector. I use the scoring version given by the CNA.
The warnings from each source differ in scope. Upstream describes out-of-bounds memory writes, with ICON specifically stating that the process crashes, while the USN also warns of possible code execution. I therefore do not conclude that RCE is possible in every configuration. When scheduling patches, check which decoders are enabled and whether the application can pass files to them.
Having the package installed does not establish whether an attacker can get a file to the vulnerable code. Checking only the file extension is not enough either; check the data format the decoder actually selects and the policy loaded by the web process.
The cited upstream and Ubuntu advisories do not state that any of these three vulnerabilities have been exploited in the wild. I checked the KEV JSON in CISA's official repository, and CVE-2026-33901, CVE-2026-46520, and CVE-2026-53461 are not in the 30 Nov 2026 KEV edition (catalogVersion: 2026.11.30). Absence from this list does not mean no exploitation has occurred.
Ubuntu package versions to compare
Use the full package versions from USN-9469-1 as the baseline for this update. Do not compare upstream version numbers alone, because Ubuntu can backport patches into an existing version series.
| Ubuntu LTS | Target package version listed in the USN | Entitlement listed in the advisory |
|---|---|---|
| 26.04 | 8:7.1.2.18+dfsg1-1ubuntu0.1~esm6 |
Ubuntu Pro / ESM Apps |
| 24.04 | 8:6.9.12.98+dfsg1-5.2ubuntu0.1~esm17 |
Ubuntu Pro / ESM Apps |
| 22.04 | 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm18 |
Ubuntu Pro / ESM Apps |
| 20.04 | 8:6.9.10.23+dfsg-2.1ubuntu11.11+esm18 |
Ubuntu Pro / ESM Apps |
| 18.04 | 8:6.9.7.4+dfsg-16ubuntu6.15+esm20 |
Ubuntu Pro |
| 16.04 | 8:6.8.9.9-7ubuntu5.16+esm28 |
Ubuntu Pro + Legacy Support |
| 14.04 | 8:6.7.7.10-6ubuntu3.13+esm29 |
Ubuntu Pro + Legacy Support |
The CVE pages and the USN show different statuses in some places. The CVE-2026-33901 and CVE-2026-53461 pages still mark Ubuntu 24.04 as Vulnerable, but the USN lists the fixed package versions shown in the table. CVE-2026-33901 on 22.04 is listed as fixed in 8:6.9.11.60+dfsg-1.3ubuntu0.22.04.5+esm17, which is older than the +esm18 version bundling the patches in this USN. Also check that the candidate and package source match your Ubuntu release.
Update and check the full policy
Start by checking the packages and libraries with the commands below. The PHP command checks only the CLI instance invoked; check every PHP-FPM pool too. If your hosting panel installs PHP separately, check that installation as well.
cat /etc/os-release
dpkg-query -W -f='${binary:Package}\t${Version}\t${db:Status-Status}\n' \
'imagemagick*' 'libmagickcore*' 'libmagickwand*'
apt-cache policy imagemagick
pro status
php -r 'if (extension_loaded("imagick")) { print_r(Imagick::getVersion()); }'
- Trace file entry points Check requests before login, thumbnail generation, and queued jobs.
- Check entitlement and candidate First make sure ESM packages for the correct Ubuntu release are available.
- Update packages Review the simulated changes, then update the installed libraries and programs.
- Restart workers Have PHP and queued jobs load the new libraries, then test image conversion and policy limits.
If the machine is attached to Ubuntu Pro and has the required entitlement, but ESM Apps is disabled, enable it using the Canonical guide. If you do not yet have the entitlement, arrange the subscription first. For releases that require Legacy Support, check the entitlement for that service too.
# ใช้เมื่อมีสิทธิ์ Ubuntu Pro สำหรับบริการนี้แล้ว
sudo pro enable esm-apps
sudo apt update
apt-cache policy imagemagick
sudo apt -s upgrade
# ตรวจรายการจำลองและจัดช่วงอัปเดตก่อน คำสั่งนี้อัปเดตแพ็กเกจอื่นด้วย
sudo apt upgrade
If the candidate is still older than the version in the table, do not conclude that all patches are installed, even if APT says no updates are available. Check repositories, entitlements, package holds, and pinning, as well as any libraries installed manually outside APT.
While waiting for patches, follow the ImageMagick Security Policy guidance to restrict coders to the formats you need. Disable MVG, IPL, and the ICON group if they are unnecessary. Also limit time, memory, disk, and the number of images. This reduces attack paths while waiting for patches, but you still need to update the packages. Check the coder names and the policy actually loaded by the process against the installed version.
if command -v magick >/dev/null 2>&1; then
magick identify -list policy
magick identify -list format
else
identify -list policy
identify -list format
fi
Run the check commands as the same user and with the same environment as the worker. After updating, restart PHP-FPM and queue workers to load the patched libraries. If you use mod_php, restart Apache instead. In the example below, first select the unit name from the list, then restart it during the maintenance window.
systemctl list-unit-files 'php*-fpm.service'
read -r -p 'ชื่อ PHP-FPM unit ที่เว็บใช้: ' php_fpm_unit
sudo systemctl restart "$php_fpm_unit"
dpkg-query -W -f='${binary:Package}\t${Version}\n' \
'imagemagick*' 'libmagickcore*' 'libmagickwand*'
php -r 'if (extension_loaded("imagick")) { print_r(Imagick::getVersion()); }'
The output of Imagick::getVersion() reports the API version according to the PHP manual, but it does not tell you whether all Ubuntu patches are installed. Compare it with the package versions from dpkg too. Then test through the PHP instance actually used by the website, using an administrator-only access path. Do not expose a version report page to the public.
Other vulnerabilities and checking for traces
The USN also covers several other groups of issues, including stack overflow and use-after-free in MSL, and memory issues in morphology and the JP2 encoder. MAT also has a buffer overflow on 32-bit systems.
SVG, XML/XMP, PSD, MNG, MIFF, and CALS have resource usage or recursion issues. There are also out-of-bounds memory reads, path/coder/script policy bypasses, and code injection in PostScript output. Each issue affects different Ubuntu releases. Disabling the three decoders in the table does not cover the entire advisory.
The cited advisories do not provide IOCs such as hashes or specific attack filenames. I recommend looking for workers that repeatedly crash when receiving the same file, stalled image conversion jobs, and unusual resource usage. Compare these with upload logs around the time of the incident too. These symptoms alone do not establish that a compromise has occurred. Preserve the logs and suspicious files, and do not process those files again on production systems.
If you find unfamiliar processes or unexplained file changes, preserve the evidence and isolate the suspected processing jobs first. Updating packages closes vulnerabilities, but does not establish that no compromise occurred before the update.
How I prioritize the work
I put sites where unauthenticated users can send files to a decoder into the urgent patching cycle. While waiting, reduce the file types accepted. For internal jobs with controlled file sources and policy restrictions already in place, schedule the update for the next available maintenance window. Record which packages were updated and which workers were restarted too. You can also read the guide to checking Debian server security.
Sources: CISA KEV JSON, NVD CVE-2026-33901, CVE Record IPL, CVE Record ICON, Ubuntu USN-9469-1 (https://ubuntu.com/security/notices/USN-9469-1), Ubuntu CVE-2026-33901 (https://ubuntu.com/security/CVE-2026-33901), Ubuntu CVE-2026-46520 (https://ubuntu.com/security/CVE-2026-46520), Ubuntu CVE-2026-53461 (https://ubuntu.com/security/CVE-2026-53461), ImageMagick MVG (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-x9h5-r9v2-vcww), ImageMagick IPL (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-36wm-hprc-mcf5), ImageMagick ICON (https://github.com/ImageMagick/ImageMagick/security/advisories/GHSA-g22q-f7gc-5jhr), ImageMagick Security Policy (https://imagemagick.org/security-policy/), Ubuntu Pro Client (https://ubuntu.com/pro-client/docs/en/latest/howtoguides/enable_esm_infra/), PHP Imagick::getVersion (https://www.php.net/manual/en/imagick.getversion.php) Information checked on 3 Dec 2026 using the USN dated 3 Dec 2026 and the KEV edition of 30 Nov 2026. I will come back and update this later.
Want us to set this up?
Get help with server setup, configuration, migration, or troubleshooting. Save time for the work that matters.
Hit something like this? Stuck somewhere?
Come trade notes on the LinuxThai board



Comments 0
No comments yet — be the first