Cookie Spoofing Vulnerability in dbus Package

dbus Updated 02 Oct 2025

Summary

11/06/2019
N/A
Yes i
High
7.1

ALPINE-CVE-2019-12749: dbus before 1.10.28, 1.12.x before 1.12.16, and 1.13.x before 1.13.12, as used in DBusServer in Canonical Upstart in Ubuntu 14.04 (and in some, less common, uses of dbus-daemon), allows cookie spoofing because of symlink... Affects dbus versions < 1.12.16-r0. Fixed in 1.12.16-r0. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

dbus is an inter-process communication (IPC) system that allows communication between multiple processes running concurrently on the same machine. It is widely used in various Linux distributions, including Alpine, to facilitate communication between applications. The dbus package provides a message bus system that allows applications to communicate with one another, enabling features like service discovery and remote procedure calls. However, certain versions of dbus are vulnerable to a cookie spoofing issue that can lead to unauthorized access and authentication bypass.

Vulnerability Detail

The vulnerability, identified as CVE-2019-12749, affects dbus versions prior to 1.10.28, 1.12.x before 1.12.16, and 1.13.x before 1.13.12. It arises from a mishandling of symlinks in the DBUS_COOKIE_SHA1 authentication mechanism within the libdbus library. A malicious client with write access to its home directory can exploit this vulnerability by manipulating a ~/.dbus-keyrings symlink. This manipulation allows the malicious client to trick a DBusServer into reading and writing in unintended locations, potentially leading to the reuse of a known cookie and authentication bypass. The severity of this vulnerability is rated at CVSS 7.1, indicating a high risk of exploitation.

How To Fix

Minimum fixed version

1.12.16-r0

This is the first release that contains the fix.

sudo apk add --upgrade dbus

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary workaround, users can restrict write access to their home directories or the ~/.dbus-keyrings file to prevent unauthorized manipulation. However, this is not a substitute for applying the necessary updates.

Conclusion

The dbus package has a significant vulnerability that can lead to cookie spoofing and authentication bypass. It is crucial for users to update their dbus installations to the patched versions to safeguard their systems against potential exploitation. Regular monitoring and updates are essential to maintain security.

See every vulnerability recorded for dbus →

Share this vulnerability

FAQ

The CVSS score of this vulnerability is 7.1, indicating a high severity level.

The affected versions include dbus versions prior to 1.10.28, 1.12.x before 1.12.16, and 1.13.x before 1.13.12.

You can use Vulert, which monitors and alerts for open-source vulnerabilities in your software. You can check your application using the Vulert playground without any signup.

Exploitation of this vulnerability can lead to unauthorized access, authentication bypass, and potential data breaches.

Yes, the permanent fix is to update the dbus package to version 1.12.16-r0 or later.

Related vulnerabilities

Recent vulnerabilities recorded for dbus.

How To Fix

Minimum fixed version

1.12.16-r0

This is the first release that contains the fix.

sudo apk add --upgrade dbus

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback