Bug 1672382 (CVE-2019-3464)

Summary: CVE-2019-3464 rssh: rsync bypass resulting in arbitrary code execution when built with popt
Product: [Other] Security Response Reporter: Laura Pardo <lpardo>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED UPSTREAM QA Contact:
Severity: high Docs Contact:
Priority: high    
Version: unspecifiedCC: fdc, huzaifas, xavier
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-06-10 10:47:21 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: 1672383, 1672384    
Bug Blocks:    

Description Laura Pardo 2019-02-04 19:54:34 UTC
A flaw was found in rssh. If rsync is built with popt (as it is in Debian), the popt library will attempt to open and parse ~/.popt on the server and interpret it  as configuration for command line option parsing.  If the client can rsync a .popt file to the home directory of the user protected with rssh, this allows arbitrary code execution on the server via several paths.  The most obvious is via the popt exec feature which execs an arbitrary program as an external option filter, but a more sneaky approach is through the popt alias feature which allows one to alias a benign option (such as --server) to one that will run arbitrary code (such as --rsh).


References:
https://sourceforge.net/p/rssh/mailman/message/36536555/

Comment 1 Laura Pardo 2019-02-04 19:54:50 UTC
Created rssh tracking bugs for this issue:

Affects: epel-all [bug 1672384]
Affects: fedora-all [bug 1672383]

Comment 2 Product Security DevOps Team 2019-06-10 10:47:21 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.