{"id":"CVE-2015-1326","aliases":["DEBIAN-CVE-2015-1326","EUVD-2019-0112","GHSA-74xw-82v7-hmrm","PYSEC-2019-155","UBUNTU-CVE-2015-1326","USN-2618-1"],"status":"published","title":"python-dbusmock arbitrary code execution or file overwrite when templates are loaded from /tmp","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.","severity":{"version":"3.0","score":5.7,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-09","score":0.01824,"percentile":0.78951,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-20"],"published":"2015-05-12T00:00:00Z","modified":"2026-09-09T07:00:03Z","fixes":[{"ecosystem":"PyPI","package":"python-dbusmock","fixed_in":["0.15.1"],"sources":["ghsa","osv"]},{"ecosystem":"Debian:12","package":"python-dbusmock","fixed_in":["0.15.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"python-dbusmock","fixed_in":["0.15.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"python-dbusmock","fixed_in":["0.15.1-1"],"sources":["osv"]},{"ecosystem":"Ubuntu:14.04:LTS","package":"python-dbusmock","fixed_in":["0.10.1-1ubuntu1"],"sources":["osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.1"}]}]},{"source":"osv","ecosystem":"Debian:12","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.1-1"}]}]},{"source":"osv","ecosystem":"PyPI","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.1"}]}],"versions":["0.0.2","0.0.3","0.1","0.1.1","0.1.2","0.1.3","0.10","0.10.1","0.10.2","0.10.3","0.11","0.11.1","0.11.2","0.11.3","0.11.4","0.12","0.13","0.14","0.15","0.2.0","0.2.1","0.2.2","0.3","0.3.1","0.4.0","0.5","0.6","0.6.1","0.6.2","0.6.3","0.7","0.7.1","0.7.2","0.8","0.8.1","0.9","0.9.1","0.9.2"]},{"source":"osv","ecosystem":"PyPI","package":"python-dbusmock","ranges":[{"type":"GIT","events":[{"introduced":"0"},{"fixed":"4e7d0df9093"}]},{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.15.1"}]}],"versions":["0.0.2","0.0.3","0.1","0.1.1","0.1.2","0.1.3","0.10","0.10.1","0.10.2","0.10.3","0.11","0.11.1","0.11.2","0.11.3","0.11.4","0.12","0.13","0.14","0.15","0.2.0","0.2.1","0.2.2","0.3","0.3.1","0.4.0","0.5","0.6","0.6.1","0.6.2","0.6.3","0.7","0.7.1","0.7.2","0.8","0.8.1","0.9","0.9.1","0.9.2"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.1-1ubuntu1"}]}],"versions":["0.7.2-2~fakesync1","0.7.2-2","0.8-1","0.9.1-1","0.9.2-1","0.10-1svn1","0.10.1-1"]},{"source":"osv","ecosystem":"Ubuntu:14.04:LTS","package":"python-dbusmock","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.10.1-1ubuntu1"}]}],"versions":["0.7.2-2~fakesync1","0.7.2-2","0.8-1","0.9.1-1","0.9.2-1","0.10-1svn1","0.10.1-1"]}],"products":[{"vendor":"python-dbusmock_project","product":"python-dbusmock"},{"vendor":"ubuntu","product":"python-dbusmock"}],"references":[{"url":"https://github.com/martinpitt/python-dbusmock/commit/4e7d0df9093","tags":["x_refsource_MISC","x_transferred","Patch","Third Party Advisory","advisory","fix","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2015-1326","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/python-dbusmock/PYSEC-2019-155.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-74xw-82v7-hmrm","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2015-1326","tags":["advisory"]},{"url":"https://github.com/martinpitt/python-dbusmock","tags":["package"]},{"url":"https://ubuntu.com/security/CVE-2015-1326","tags":["report"]},{"url":"https://ubuntu.com/security/notices/USN-2618-1","tags":["advisory"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2015-1326","tags":["report"]}],"sources":{"cve":[{"id":"CVE-2015-1326","title":"python-dbusmock arbitrary code execution or file overwrite when templates are loaded from /tmp","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.","status":"published","published":"2019-04-22T15:35:59.213Z","modified":"2024-09-16T23:46:40.134Z","cvss":[{"version":"3.0","score":5.7,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","level":"medium","assessor":"cna"}],"updated_at":"2026-11-02T14:35:44.046042Z"}],"euvd":[{"id":"EUVD-2019-0112","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.","status":"published","published":"2019-04-22T15:35:59Z","modified":"2024-09-16T23:46:40Z","cvss":[{"version":"3.0","score":5.7,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-03T00:54:46.734285Z"}],"ghsa":[{"id":"GHSA-74xw-82v7-hmrm","title":"Improper Input Validation in python-dbusmock","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.","status":"published","published":"2019-04-23T16:04:36Z","modified":"2024-10-15T16:37:14Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:38:10.696798Z"}],"nvd":[{"id":"CVE-2015-1326","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.","status":"published","published":"2019-04-22T16:29:00.77Z","modified":"2026-06-17T00:22:11.963Z","cvss":[{"version":"3.0","score":5.7,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","level":"medium","assessor":"secondary"},{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high","assessor":"primary"},{"version":"2.0","score":9.3,"vector":"AV:N/AC:M/Au:N/C:C/I:C/A:C","level":"high","assessor":"primary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:03:19.73542Z"}],"osv":[{"id":"CVE-2015-1326","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.","status":"published","published":"2019-04-22T16:29:00Z","modified":"2026-04-10T03:45:05.228639Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:44:00.097545Z"},{"id":"DEBIAN-CVE-2015-1326","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.","status":"published","published":"2019-04-22T16:29:00.77Z","modified":"2026-09-09T07:00:03.596431055Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"updated_at":"2026-11-02T15:45:26.752992Z"},{"id":"GHSA-74xw-82v7-hmrm","title":"Improper Input Validation in python-dbusmock","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.","status":"published","published":"2019-04-23T16:04:36Z","modified":"2024-10-15T16:46:45.041388Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T15:46:40.657155Z"},{"id":"UBUNTU-CVE-2015-1326","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.","status":"published","published":"2015-05-12T00:00:00Z","modified":"2026-02-04T02:18:22.693823Z","cvss":[{"version":"3.0","score":8.8,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H","level":"high"},{"version":"3.0","score":5.7,"vector":"CVSS:3.0/AV:L/AC:L/PR:L/UI:R/S:C/C:L/I:L/A:L","level":"medium"}],"updated_at":"2026-11-02T15:54:09.721803Z"},{"id":"PYSEC-2019-155","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.","status":"published","published":"2019-04-22T16:29:00Z","modified":"2023-11-08T03:57:49.647175Z","updated_at":"2026-11-02T15:52:52.192131Z"},{"id":"USN-2618-1","title":"python-dbusmock vulnerability","description":"It was discovered that python-dbusmock incorrectly handled template\nloading from shared directories. A local attacker could possibly use this\nissue to execute arbitrary code.\n","status":"published","published":"2015-05-21T17:38:27Z","modified":"2026-02-10T04:40:54Z","updated_at":"2026-11-02T16:58:09.227524Z"}]}}
