CVE-2012-3386 Race condition in n/a

Medium 4.4 Published Updated

Local attackers can exploit a race condition in GNU Automake's distcheck rule to execute arbitrary code due to insecure directory permissions.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2012-3386?

CVE-2012-3386 is a medium-severity vulnerability in n/a, published on 7 Aug 2012. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

The "make distcheck" rule in GNU Automake before 1.11.6 and 1.12.x before 1.12.2 grants world-writable permissions to the extraction directory, which introduces a race condition that allows local users to execute arbitrary code via unspecified vectors.

Weakness: CWE-362, CWE-264

Which versions are affected by CVE-2012-3386?

It affects 1 product.

Linux distribution packages (9)
automake Red Hat:enterprise_linux:5::client_workstationAll versions0:1.9.6-3.el5
automake Red Hat:enterprise_linux:5::serverAll versions0:1.9.6-3.el5
automake Red Hat:enterprise_linux:6::clientAll versions0:1.11.1-4.el6
automake Red Hat:enterprise_linux:6::computenodeAll versions0:1.11.1-4.el6
automake Red Hat:enterprise_linux:6::serverAll versions0:1.11.1-4.el6
automake Red Hat:enterprise_linux:6::workstationAll versions0:1.11.1-4.el6
wdiff SUSE:Package Hub 15 SP4All versions1.2.2-bp154.2.1
wdiff openSUSE:Leap 15.4All versions1.2.2-bp154.2.1
gv openSUSE:TumbleweedAll versions1.2.2-5.5

Products include Gnu Automake.

How do I fix CVE-2012-3386?

Upgrade to a fixed version.

Is CVE-2012-3386 being exploited?

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

Sources

Also known as DEBIAN-CVE-2012-3386, GHSA-mr65-r935-qjpj, RHSA-2013:0526, RHSA-2014:1243, openSUSE-SU-2022:10031-1, openSUSE-SU-2024:10576-1.

Is CVE-2012-3386 in your software?

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

Check your SBOMs for free