# CVE-2024-36041: Missing authorization in n/a

> Local attackers can access the session manager to execute arbitrary code as the victim on next boot due to missing host-based authentication checks.

- **Severity:** High 7.3 (`CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Local or same network only
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 5 Jul 2024
- **Updated:** 4 Nov 2025
- **Also known as:** DEBIAN-CVE-2024-36041, DLA-3827-1, DSA-5723-1, GHSA-7xfq-9m67-9j5j, MGASA-2024-0214, OESA-2024-1937, UBUNTU-CVE-2024-36041, USN-6843-1, USN-8829-1, openSUSE-SU-2024:0161-1, openSUSE-SU-2024:14018-1

## What is CVE-2024-36041?

CVE-2024-36041 is a high-severity missing authorization vulnerability in n/a, published on 5 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

KSmserver in KDE Plasma Workspace (aka plasma-workspace) before 5.27.11.1 and 6.x before 6.0.5.1 allows connections via ICE based purely on the host, i.e., all local connections are accepted. This allows another user on the same machine to gain access to the session manager, e.g., use the session-restore feature to execute arbitrary code as the victim (on the next boot) via earlier use of the /tmp directory.

Weakness: CWE-613 (DEPRECATED: Insufficient Session Expiration)

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

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `plasma5-workspace` | SUSE:Package Hub 15 SP6 | All versions | 5.27.11-bp156.3.3.1 |
| `plasma5-workspace` | openSUSE:Leap 15.6 | All versions | 5.27.11-bp156.3.3.1 |

Products: Kde Plasma-Workspace.

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

Upgrade to a fixed version.

## Is CVE-2024-36041 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2018-6790](https://insights.sbomify.com/CVE-2018-6790/): Information disclosure in n/a (medium 5.3)
- [CVE-2015-1307](https://insights.sbomify.com/CVE-2015-1307/): Other in n/a (medium 4.3)
- [CVE-2024-1433](https://insights.sbomify.com/CVE-2024-1433/): KDE Plasma Workspace Theme File eventpluginsmanager.cpp enabledPlugins path traversal (low 3.1)

## Fix prompt for AI coding agents

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

What it is: CVE-2024-36041 is a high-severity missing authorization vulnerability in n/a, published on 5 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-36041 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-36041/ (Markdown: https://insights.sbomify.com/CVE-2024-36041/index.md)
```

## Sources

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

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