CVE-2018-12356

NameCVE-2018-12356
DescriptionAn 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.
SourceCVE (at NVD; CERT, LWN, oss-sec, fulldisc, bugtraq, EDB, Metasploit, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, Mageia, GitHub code/issues, web search, more)
NVD severityhigh (attack range: remote)
Debian Bugs901574

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
password-store (PTS)jessie1.6.3-3fixed
stretch1.6.5-7fixed
buster, sid1.7.3-1fixed

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
password-storesource(unstable)1.7.2-1high901574
password-storesourcejessie(not affected)
password-storesourcestretch(not affected)

Notes

[stretch] - password-store <not-affected> (Signature verification support added in 1.7)
[jessie] - password-store <not-affected> (Signature verification support added in 1.7)
https://lists.zx2c4.com/pipermail/password-store/2018-June/003308.html
Introduced in: https://git.zx2c4.com/password-store/commit/?id=ff62f87f41557ab7267defab662324927301485a
Fixed by: https://git.zx2c4.com/password-store/commit/?id=8683403b77f59c56fcb1f05c61ab33b9fd61a30d
https://neopg.io/blog/pass-signature-spoof/
http://www.openwall.com/lists/oss-security/2018/06/14/3

Search for package or bug name: Reporting problems