ArchLinux: 201806-11: pass: arbitrary code execution
Summary
An issue was discovered in password-store.sh in pass in Simple Password Store 1.7 through 1.7.1. 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 extensions 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.
Resolution
Upgrade to 1.7.2-1.
# pacman -Syu "pass>=1.7.2-1"
The problem has been fixed upstream in version 1.7.2.
References
https://www.neopg.io https://marc.info/?l=oss-security&m=152901317028506 https://github.com/zx2c4/password-store/commit/8683403b77f59c56fcb1f05c61ab33b9fd61a30d https://security.archlinux.org/CVE-2018-12356
Workaround
You can make sure arbitrary code execution is not possible by disablingpass's extension facility:export PASSWORD_STORE_ENABLE_EXTENSIONS=false