Critical Code Execution Vulnerability in python-dbusmock: CVE-2015-1326

python-dbusmock Updated 02 Oct 2025

Summary

22/04/2019
N/A
Yes i
High
8.8

CVE-2015-1326: python-dbusmock before version 0.15.1 AddTemplate() D-Bus method call or DBusTestCase.spawn_server_template() method could be tricked into executing malicious code if an attacker supplies a .pyc file. Affects python-dbusmock versions < 0.15.1-1. Fixed in 0.15.1-1. 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

python-dbusmock is a Python library that provides a mock implementation of D-Bus, a message bus system that allows communication between multiple processes. It is widely used for testing applications that interact with D-Bus services. The library's functionality includes creating mock D-Bus services and handling method calls, which are essential for developers to simulate and test D-Bus interactions effectively. However, prior to version 0.15.1, the library contained a significant vulnerability that could allow attackers to execute arbitrary code through malicious .pyc files.

Vulnerability Detail

The vulnerability, identified as CVE-2015-1326, arises from the AddTemplate() D-Bus method call and the DBusTestCase.spawn_server_template() method in python-dbusmock before version 0.15.1. An attacker could exploit this vulnerability by supplying a specially crafted .pyc file, which could lead to the execution of arbitrary and potentially harmful code. This poses a severe risk, as it could allow unauthorized access to the system, data breaches, or further exploitation of the affected application. The CVSS score for this vulnerability is 8.8, indicating a high severity level.

How To Fix

Minimum fixed version

0.15.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-dbusmock

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

Workaround

As a temporary workaround, users can avoid using the AddTemplate() method and refrain from executing any .pyc files from untrusted sources until the library is updated. This will help mitigate the risk of exploitation until a proper fix is applied.

Conclusion

The CVE-2015-1326 vulnerability in python-dbusmock poses a significant risk due to its potential for arbitrary code execution. Users are strongly advised to upgrade to version 0.15.1 or later to protect their systems. In the meantime, implementing workarounds can help mitigate risks until a proper fix is applied.

See every vulnerability recorded for python-dbusmock →

Share this vulnerability

FAQ

CVE-2015-1326 is a vulnerability in python-dbusmock that allows for arbitrary code execution through malicious .pyc files.

You can use Vulert to monitor and alert for open-source vulnerabilities in your software. Visit Vulert Scanner to check if your application is affected without needing to sign up.

Exploitation of this vulnerability could lead to unauthorized code execution, data breaches, and further exploitation of the affected system.

Yes, you should upgrade to python-dbusmock version 0.15.1 or later to mitigate this vulnerability.

If an immediate upgrade is not possible, avoid using the vulnerable methods and refrain from executing untrusted .pyc files as a temporary measure.

Related vulnerabilities

Recent vulnerabilities recorded for python-dbusmock.

How To Fix

Minimum fixed version

0.15.1-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade python-dbusmock

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