# CVE-2018-6560: Security feature bypass in n/a

> Attackers can escape the Flatpak sandbox by sending crafted D-Bus messages due to inconsistent whitespace handling in the proxy.

- **Severity:** High 8.8 (`CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:C/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:** Not needed
- **Fix available:** Yes
- **Published:** 2 Feb 2018
- **Updated:** 5 Aug 2024
- **Also known as:** DEBIAN-CVE-2018-6560, GHSA-5xcx-r88v-8v7g, MGASA-2018-0143, RHSA-2018:2766

## What is CVE-2018-6560?

CVE-2018-6560 is a high-severity vulnerability in Redhat Enterprise Linux Desktop, published on 2 Feb 2018. It can only be exploited from the same machine or local network, with no action from the victim.

### Official description

In dbus-proxy/flatpak-proxy.c in Flatpak before 0.8.9, and 0.9.x and 0.10.x before 0.10.3, crafted D-Bus messages to the host can be used to break out of the sandbox, because whitespace handling in the proxy is not identical to whitespace handling in the daemon.

Weakness: CWE-436 (Interpretation Conflict)

## Which versions are affected by CVE-2018-6560?

It affects 7 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `flatpak` | Red Hat:enterprise_linux:7::client | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-builder` | Red Hat:enterprise_linux:7::client | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-debuginfo` | Red Hat:enterprise_linux:7::client | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-devel` | Red Hat:enterprise_linux:7::client | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-libs` | Red Hat:enterprise_linux:7::client | All versions | 0:0.8.8-4.el7_5 |
| `flatpak` | Red Hat:enterprise_linux:7::server | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-builder` | Red Hat:enterprise_linux:7::server | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-debuginfo` | Red Hat:enterprise_linux:7::server | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-devel` | Red Hat:enterprise_linux:7::server | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-libs` | Red Hat:enterprise_linux:7::server | All versions | 0:0.8.8-4.el7_5 |
| `flatpak` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-builder` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-debuginfo` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-devel` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.8.8-4.el7_5 |
| `flatpak-libs` | Red Hat:enterprise_linux:7::workstation | All versions | 0:0.8.8-4.el7_5 |

Products: Flatpak Flatpak, Redhat Enterprise Linux Desktop, Redhat Enterprise Linux Server, Redhat Enterprise Linux Server Aus, Redhat Enterprise Linux Server Eus, Redhat Enterprise Linux Server Tus, Redhat Enterprise Linux Workstation.

## How do I fix CVE-2018-6560?

Upgrade to a fixed version.

## Is CVE-2018-6560 being exploited?

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

## Other vulnerabilities in Redhat Enterprise Linux Desktop

- [CVE-2023-28100](https://insights.sbomify.com/CVE-2023-28100/): TIOCLINUX can send commands outside sandbox if running on a virtual console (critical 10.0)
- [CVE-2026-34078](https://insights.sbomify.com/CVE-2026-34078/): Flatpak has a complete sandbox escape leading to host file access and code execution in the host context (critical 9.3)
- [CVE-2019-10063](https://insights.sbomify.com/CVE-2019-10063/): Security feature bypass in n/a (critical 9.0)
- [CVE-2026-34079](https://insights.sbomify.com/CVE-2026-34079/): Flatpak affected by arbitrary file deletion on the host filesystem (high 8.7)
- [CVE-2023-28101](https://insights.sbomify.com/CVE-2023-28101/): Flatpak metadata with ANSI control codes can cause misleading terminal output (medium 5.0)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2018-6560 and fix it if it is affected.

What it is: CVE-2018-6560 is a high-severity vulnerability in Redhat Enterprise Linux Desktop, published on 2 Feb 2018. 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-2018-6560 in the wild and no public exploit code.

Affected product: Redhat Enterprise Linux Desktop. 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-2018-6560/ (Markdown: https://insights.sbomify.com/CVE-2018-6560/index.md)
```

## Sources

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

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