CVE-2018-12356 Code injection in n/a

Critical 9.8 Published Updated

Attackers can spoof signatures to inject keys or modify scripts, leading to password disclosure or arbitrary code execution in Simple Password Store.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2018-12356?

CVE-2018-12356 is a critical code injection vulnerability in n/a, published on 15 Jun 2018. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

An issue was discovered in password-store.sh in pass in Simple Password Store 1.7.x before 1.7.2. The signature verification routine parses the output of GnuPG with an incomplete regular expression, which allows remote attackers to spoof file signatures on configuration files and extension scripts. Modifying the configuration file allows the attacker to inject additional encryption keys under their control, thereby disclosing passwords to the attacker. Modifying the extension scripts allows the attacker arbitrary code execution.

Weakness: CWE-347

Which versions are affected by CVE-2018-12356?

It affects 1 product.

Products include Simple Password Store Project Simple Password Store.

How do I fix CVE-2018-12356?

Upgrade to a fixed version.

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

Is CVE-2018-12356 being exploited?

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

Sources

Also known as DEBIAN-CVE-2018-12356, GHSA-j8m7-7fm4-j768, UBUNTU-CVE-2018-12356, openSUSE-SU-2024:11150-1.

Is CVE-2018-12356 in your software?

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

Check your SBOMs for free