Bug 1793277 (CVE-2019-19355)

Summary: CVE-2019-19355 openshift/ocp-release-operator-sdk: /etc/passwd is given incorrect privileges
Product: [Other] Security Response Reporter: Mark Cooper <mcooper>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: aos-bugs, bmontgom, cmacedo, eparis, jburrell, jlanford, jokerman, nstielau, security-response-team, sponnaga
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
An insecure modification vulnerability in the /etc/passwd file was found in the openshift/ocp-release-operator-sdk. An attacker with access to the container could use this flaw to modify /etc/passwd and escalate their privileges.
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-03-11 10:31:43 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: 1793307, 1793308, 1793309, 1793310    
Bug Blocks: 1776664    

Description Mark Cooper 2020-01-21 04:12:14 UTC
It has been found that multiple containers modify the permissions of /etc/passwd to make them modifiable by users other than root. An attacker with access to the running container can exploit this to modify /etc/passwd to add a user and escalate their privileges. This CVE is specific to the openshift/ansible-operator-container.

Original bug:
https://bugzilla.redhat.com/show_bug.cgi?id=1791534

Comment 1 Mark Cooper 2020-01-21 04:12:17 UTC
Statement:

By default this vulnerability is not exploitable in un-privilieged containers running on OpenShift Container Platform. This is because the system call SETUID and SETGID is blocked by the default seccomp policy.

Comment 5 Mark Cooper 2020-01-22 03:15:55 UTC
Acknowledgments:

Name: Joseph LaMagna-Reiter (SPR Inc.)

Comment 7 Mark Cooper 2020-02-28 02:28:10 UTC
External References:

https://access.redhat.com/articles/4859371

Comment 8 errata-xmlrpc 2020-03-11 06:25:18 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.3

Via RHSA-2020:0683 https://access.redhat.com/errata/RHSA-2020:0683

Comment 9 Product Security DevOps Team 2020-03-11 10:31:43 UTC
This bug is now closed. Further updates for individual products will be reflected on the CVE page(s):

https://access.redhat.com/security/cve/cve-2019-19355

Comment 10 errata-xmlrpc 2020-04-08 15:44:09 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.2

Via RHSA-2020:1280 https://access.redhat.com/errata/RHSA-2020:1280

Comment 11 errata-xmlrpc 2020-04-22 16:04:22 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.1

Via RHSA-2020:1545 https://access.redhat.com/errata/RHSA-2020:1545