# CVE-2024-36472: Code injection in n/a

> An attacker controlling the local network can force GNOME Shell to load untrusted JavaScript, potentially executing code or causing resource exhaustion.

- **Severity:** Medium 6.5 (`CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Local or same network only
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 28 May 2024
- **Updated:** 13 Feb 2025
- **Also known as:** ALSA-2024:5298, ALSA-2024:9114, CLSA-2024-1735300286, CLSA-2026-1792529411, CLSA-2026-1792529813, DEBIAN-CVE-2024-36472, MGASA-2024-0314, OESA-2026-2714, OESA-2026-2715, RHSA-2024:5298, RHSA-2024:9114, RHSA-2024:9915, RLSA-2024:5298, RLSA-2024:9114, SUSE-SU-2024:2589-1, SUSE-SU-2024:2618-1, UBUNTU-CVE-2024-36472, USN-6963-1, openSUSE-SU-2024:14201-1

## What is CVE-2024-36472?

CVE-2024-36472 is a medium-severity code injection vulnerability in n/a, published on 28 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

In GNOME Shell through 45.7, a portal helper can be launched automatically (without user confirmation) based on network responses provided by an adversary (e.g., an adversary who controls the local Wi-Fi network), and subsequently loads untrusted JavaScript code, which may lead to resource consumption or other impacts depending on the JavaScript code's behavior.

Weakness: CWE-346 (Origin Validation Error)

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


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `gnome-shell` | AlmaLinux:8 | All versions | 3.32.2-56.el8_10 |
| `gnome-classic-session` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell` | AlmaLinux:9 | All versions | 40.10-21.el9 |
| `gnome-shell-extension-apps-menu` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-auto-move-windows` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-classification-banner` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-common` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-custom-menu` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-dash-to-dock` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-dash-to-panel` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-desktop-icons` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-drive-menu` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-gesture-inhibitor` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-heads-up-display` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-launch-new-instance` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-native-window-placement` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-panel-favorites` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-places-menu` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-screenshot-window-sizer` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-systemMonitor` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-top-icons` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-updates-dialog` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-user-theme` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-window-list` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-windowsNavigator` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell-extension-workspace-indicator` | AlmaLinux:9 | All versions | 40.7-19.el9 |
| `gnome-shell` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.32.2-56.el8_10 |
| `gnome-shell-debuginfo` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.32.2-56.el8_10 |
| `gnome-shell-debugsource` | Red Hat:enterprise_linux:8::appstream | All versions | 0:3.32.2-56.el8_10 |
| `gnome-shell` | Red Hat:enterprise_linux:9::appstream | All versions | 0:40.10-21.el9 |
| `gnome-shell-debuginfo` | Red Hat:enterprise_linux:9::appstream | All versions | 0:40.10-21.el9 |
| `gnome-shell-debugsource` | Red Hat:enterprise_linux:9::appstream | All versions | 0:40.10-21.el9 |
| `gnome-shell` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:40.10-19.el9_4 |
| `gnome-shell-debuginfo` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:40.10-19.el9_4 |
| `gnome-shell-debugsource` | Red Hat:rhel_eus:9.4::appstream | All versions | 0:40.10-19.el9_4 |
| `gnome-shell` | Rocky Linux:8 | All versions | 0:3.32.2-56.el8_10 |
| `gnome-shell-extensions` | Rocky Linux:9 | All versions | 0:40.7-19.el9 |
| `gnome-shell` | SUSE:Linux Enterprise Module for Desktop Applications 15 SP5 | All versions | 41.9-150400.3.11.1 |
| `gnome-shell` | SUSE:Linux Enterprise Server 12 SP5 | All versions | 3.20.4-77.28.1 |
| `gnome-shell` | SUSE:Linux Enterprise Server for SAP Applications 12 SP5 | All versions | 3.20.4-77.28.1 |

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

Apply the vendor's patch.

## Is CVE-2024-36472 being exploited?

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

## Fix prompt for AI coding agents

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

What it is: CVE-2024-36472 is a medium-severity code injection vulnerability in n/a, published on 28 May 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2024-36472 in the wild and no public exploit code.

Affected product: n/a. 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-36472/ (Markdown: https://insights.sbomify.com/CVE-2024-36472/index.md)
```

## Sources

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

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