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, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs901574

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
password-store (PTS)buster, bullseye1.7.3-2fixed
bookworm, sid, trixie1.7.4-6fixed

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

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

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/
https://www.openwall.com/lists/oss-security/2018/06/14/3

Search for package or bug name: Reporting problems