CVE-2025-10934

7.8 HIGH

📋 TL;DR

This vulnerability allows remote attackers to execute arbitrary code by tricking users into opening malicious XWD image files in GIMP. The heap-based buffer overflow occurs due to improper length validation during XWD file parsing. All GIMP users who open untrusted XWD files are affected.

💻 Affected Systems

Products:
  • GIMP
Versions: Versions prior to the fix commit 5c3e2122d53869599d77ef0f1bdece117b24fd7c
Operating Systems: Linux, Windows, macOS
Default Config Vulnerable: ⚠️ Yes
Notes: All default installations that can open XWD files are vulnerable. The vulnerability is in the XWD file parser component.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Full system compromise with attacker gaining the same privileges as the GIMP user, potentially leading to malware installation, data theft, or lateral movement.

🟠

Likely Case

Local privilege escalation or malware execution on the user's system, with potential for persistence and data exfiltration.

🟢

If Mitigated

Limited impact due to sandboxing or restricted user privileges, potentially only causing application crashes.

🌐 Internet-Facing: MEDIUM
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: UNKNOWN
Unauthenticated Exploit: ✅ No
Complexity: MEDIUM

Exploitation requires user interaction (opening malicious file). The ZDI advisory suggests the vulnerability is exploitable for code execution.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version containing commit 5c3e2122d53869599d77ef0f1bdece117b24fd7c

Vendor Advisory: https://gitlab.gnome.org/GNOME/gimp/-/commit/5c3e2122d53869599d77ef0f1bdece117b24fd7c

Restart Required: No

Instructions:

1. Update GIMP to the latest version from official sources. 2. For Linux distributions, use package manager updates. 3. Verify the fix by checking the commit hash in the installed version.

🔧 Temporary Workarounds

Disable XWD file support

linux

Remove or disable the XWD file format plugin to prevent parsing of malicious files

mv /usr/lib/gimp/2.0/plug-ins/file-xwd /usr/lib/gimp/2.0/plug-ins/file-xwd.disabled

Use application sandboxing

linux

Run GIMP in a sandboxed environment to limit potential damage from exploitation

firejail gimp

🧯 If You Can't Patch

  • Restrict user privileges: Run GIMP with limited user accounts without administrative rights
  • Implement file type restrictions: Block XWD files at email gateways and web proxies

🔍 How to Verify

Check if Vulnerable:

Check if GIMP version is older than the patched version containing commit 5c3e2122d53869599d77ef0f1bdece117b24fd7c

Check Version:

gimp --version

Verify Fix Applied:

Verify the installed GIMP version includes the security fix commit or is from a patched distribution package

📡 Detection & Monitoring

Log Indicators:

  • GIMP crash logs with memory access violations
  • Unexpected process creation from GIMP

Network Indicators:

  • Outbound connections from GIMP process to unknown destinations

SIEM Query:

Process Creation where Image contains 'gimp' AND ParentImage not contains 'gimp'

🔗 References

📤 Share & Export