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

Medium 5.7 Published Updated

Attackers can execute arbitrary code or overwrite files by supplying malicious .pyc templates to python-dbusmock methods.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
A user has to click or open something
Fix
Available

What is CVE-2015-1326?

CVE-2015-1326 is a medium-severity code injection vulnerability in Ubuntu python-dbusmock, published on 22 Apr 2019. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.

Official 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.

Weakness: CWE-20

Which versions are affected by CVE-2015-1326?

3 open source packages ship an affected version, including python-dbusmock. It affects 1 product.

PackageAffectedFixed in
python-dbusmock PyPIAll versions0.15.1
python-dbusmock PyPIAll versions0.15.1
python-dbusmock PyPIAll versions0.15.1

Products include Python-Dbusmock Project Python-Dbusmock.

How do I fix CVE-2015-1326?

Upgrade python-dbusmock to 0.15.1 or later.

Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.

Is CVE-2015-1326 being exploited?

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

Sources

Also known as DEBIAN-CVE-2015-1326, GHSA-74xw-82v7-hmrm, PYSEC-2019-155, UBUNTU-CVE-2015-1326, USN-2618-1.

Is CVE-2015-1326 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free