Bug 1591571 (CVE-2018-12356)

Summary: CVE-2018-12356 pass: Improper parsing of GPG output allows attackers to spoof file signatures, read passwords and execute code
Product: [Other] Security Response Reporter: Sam Fowler <sfowler>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: carl, cfergeau, pingou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: pass 1.7.2 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:29:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 1591572, 1591573    
Bug Blocks:    

Description Sam Fowler 2018-06-15 03:39:52 UTC
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.


External References:

https://neopg.io/blog/pass-signature-spoof/
https://lists.zx2c4.com/pipermail/password-store/2018-June/003308.html

Comment 1 Sam Fowler 2018-06-15 03:40:19 UTC
Created pass tracking bugs for this issue:

Affects: epel-all [bug 1591572]
Affects: fedora-all [bug 1591573]

Comment 2 Product Security DevOps Team 2019-06-10 10:29:12 UTC
This CVE Bugzilla entry is for community support informational purposes only as it does not affect a package in a commercially supported Red Hat product. Refer to the dependent bugs for status of those individual community products.