# CVE-2020-15238: Local privilege escalation Blueman

> Local attackers can inject arguments into D-Bus methods to execute arbitrary commands or scripts, leading to privilege escalation.

- **Severity:** High 7.1 (`CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:C/C:N/I:H/A:L`)
- **Exploited in the wild:** Not known
- **Login needed:** Any signed-in user
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 27 Oct 2020
- **Updated:** 4 Aug 2024
- **Also known as:** DEBIAN-CVE-2020-15238, DLA-2430-1, DSA-4781-1, GHSA-jpc9-mgw6-2xwx, MGASA-2020-0402, UBUNTU-CVE-2020-15238, USN-4605-1, USN-4605-2, openSUSE-SU-2020:1997-1, openSUSE-SU-2020:2024-1, openSUSE-SU-2024:10656-1

## What is CVE-2020-15238?

CVE-2020-15238 is a high-severity command injection vulnerability in Debian Debian Linux, published on 27 Oct 2020. Any signed-in user can exploit it over the network, with no action from the victim.

### Official description

Blueman is a GTK+ Bluetooth Manager. In Blueman before 2.1.4, the DhcpClient method of the D-Bus interface to blueman-mechanism is prone to an argument injection vulnerability. The impact highly depends on the system configuration. If Polkit-1 is disabled and for versions lower than 2.0.6, any local user can possibly exploit this. If Polkit-1 is enabled for version 2.0.6 and later, a possible attacker needs to be allowed to use the `org.blueman.dhcp.client` action. That is limited to users in the wheel group in the shipped rules file that do have the privileges anyway. On systems with ISC DHCP client (dhclient), attackers can pass arguments to `ip link` with the interface name that can e.g. be used to bring down an interface or add an arbitrary XDP/BPF program. On systems with dhcpcd and without ISC DHCP client, attackers can even run arbitrary scripts by passing `-c/path/to/script` as an interface name. Patches are included in 2.1.4 and master that change the DhcpClient D-Bus method(s) to accept BlueZ network object paths instead of network interface names. A backport to 2.0(.8) is also available. As a workaround, make sure that Polkit-1-support is enabled and limit privileges for the `org.blueman.dhcp.client` action to users that are able to run arbitrary commands as root anyway in /usr/share/polkit-1/rules.d/blueman.rules.

Weakness: CWE-88 (Improper Neutralization of Argument Delimiters in a Command), CWE-74 (Improper Neutralization of Special Elements in Output Used by a Downstream Component)

## Which versions are affected by CVE-2020-15238?

It affects 3 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `blueman` | SUSE:Package Hub 15 SP2 | All versions | 2.1.4-bp152.2.3.1 |
| `blueman` | SUSE:Package Hub 15 SP2 | All versions | 2.1.4-bp152.2.6.1 |
| `blueman` | openSUSE:Leap 15.2 | All versions | 2.1.4-bp152.2.3.1 |

Products: Blueman Project Blueman, Debian Debian Linux, Fedoraproject Fedora.

## How do I fix CVE-2020-15238?

Apply the vendor's patch.

## Is CVE-2020-15238 being exploited?

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

Public exploit code:

- Blueman < 2.1.4 - Local Privilege Escalation (exploitdb)

## Other vulnerabilities in Debian Debian Linux

- [CVE-2015-8612](https://insights.sbomify.com/CVE-2015-8612/): The EnableNetwork method in the Network class in plugins/mechanism/Network.py in Blueman before 2.0.3 allows local users to gain privileges (high 8.4)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2020-15238 and fix it if it is affected.

What it is: CVE-2020-15238 is a high-severity command injection vulnerability in Debian Debian Linux, published on 27 Oct 2020. Any signed-in user can exploit it over the network, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2020-15238 in the wild and no public exploit code.

Affected product: Debian Debian Linux. 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-2020-15238/ (Markdown: https://insights.sbomify.com/CVE-2020-15238/index.md)
```

## Sources

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

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