# CVE-2024-6655: Gtk3: gtk2: library injection from cwd

> Attackers can inject malicious libraries into GTK applications via the current working directory, leading to arbitrary code execution.

- **Severity:** High 7.0 (`CVSS:3.1/AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 16 Jul 2024
- **Updated:** 20 Nov 2025
- **Also known as:** ALSA-2024:6963, ALSA-2024:9184, AZL-43377, AZL-43381, AZL-43384, AZL-43387, BELL-CVE-2024-6655, CLSA-2024-1728056039, CLSA-2025-1745946091, CLSA-2026-1792691154, CVE-2024-39152, DEBIAN-CVE-2024-6655, GHSA-v9xm-vjq4-6r8q, MGASA-2024-0312, OESA-2024-1886, OESA-2024-1892, RHSA-2024:6963, RHSA-2024:9184, RLSA-2024:6963, RLSA-2024:9184, SUSE-SU-2024:2611-1, SUSE-SU-2024:2612-1, SUSE-SU-2024:2633-1, SUSE-SU-2024:2634-1, SUSE-SU-2024:2660-1, SUSE-SU-2024:2661-1, SUSE-SU-2024:2897-1, SUSE-SU-2024:2898-1, SUSE-SU-2025:0031-1, SUSE-SU-2025:20052-1, UBUNTU-CVE-2024-6655, USN-6899-1, openSUSE-SU-2024:14124-1, openSUSE-SU-2024:14191-1

## What is CVE-2024-6655?

CVE-2024-6655 is a high-severity code injection vulnerability in Red Hat Enterprise Linux 10, published on 16 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

### Official description

A flaw was found in the GTK library. Under certain conditions, it is possible for a library to be injected into a GTK application from the current working directory.

Weakness: CWE-94 (Improper Control of Generation of Code)

## Which versions are affected by CVE-2024-6655?


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gtk-update-icon-cache` | AlmaLinux:8 | All versions | 3.22.30-12.el8_10 |
| `gtk3` | AlmaLinux:8 | All versions | 3.22.30-12.el8_10 |
| `gtk3-devel` | AlmaLinux:8 | All versions | 3.22.30-12.el8_10 |
| `gtk3-devel-docs` | AlmaLinux:8 | All versions | 3.22.30-12.el8_10 |
| `gtk3-immodule-xim` | AlmaLinux:8 | All versions | 3.22.30-12.el8_10 |
| `gtk-update-icon-cache` | AlmaLinux:9 | All versions | 3.24.31-5.el9 |
| `gtk3` | AlmaLinux:9 | All versions | 3.24.31-5.el9 |
| `gtk3-devel` | AlmaLinux:9 | All versions | 3.24.31-5.el9 |
| `gtk3-devel-docs` | AlmaLinux:9 | All versions | 3.24.31-5.el9 |
| `gtk3-immodule-xim` | AlmaLinux:9 | All versions | 3.24.31-5.el9 |
| `gtk-update-icon-cache` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk-update-icon-cache-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-devel` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-devel-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-immodule-xim` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-immodule-xim-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-immodules-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-tests-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.22.30-12.el8_10 |
| `gtk-update-icon-cache-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-debugsource` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-devel-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-devel-docs` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-immodule-xim-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-immodules-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk3-tests-debuginfo` | Red Hat:enterprise_linux:8::crb | All versions | 0:3.22.30-12.el8_10 |
| `gtk-update-icon-cache` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk-update-icon-cache-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-devel` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-devel-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-immodule-xim` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-immodule-xim-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-immodules-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |
| `gtk3-tests-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:3.24.31-5.el9 |

## How do I fix CVE-2024-6655?

Apply the vendor's patch.

## Is CVE-2024-6655 being exploited?

There is no known exploitation of CVE-2024-6655 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2024-6655 and fix it if it is affected.

What it is: CVE-2024-6655 is a high-severity code injection vulnerability in Red Hat Enterprise Linux 10, published on 16 Jul 2024. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2024-6655 in the wild and no public exploit code.

Affected product: Red Hat Enterprise Linux 10. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2024-6655/ (Markdown: https://insights.sbomify.com/CVE-2024-6655/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2024-6655
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2024-6655
- OSV: https://osv.dev/vulnerability/CVE-2024-6655

---
From sbomify Insights: https://insights.sbomify.com/CVE-2024-6655/
Summaries are generated and may contain mistakes; the official description above is the record.
