Bug 1932283 (CVE-2021-20264)

Summary: CVE-2021-20264 containers/openjdk: /etc/passwd is given incorrect privileges
Product: [Other] Security Response Reporter: Jonathan Christison <jochrist>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: chazlett, dbhole, jochrist, neugens, pjindal, security-response-team
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: openjdk 1.8 Doc Type: If docs needed, set a value
Doc Text:
An insecure modification flaw in the /etc/passwd file was found in the openjdk-1.8 and openjdk-11 containers. This flaw allows an attacker with access to the container to modify /etc/passwd and escalate their privileges. The highest threat from this vulnerability is to confidentiality, integrity, as well as system availability.
Story Points: ---
Clone Of: Environment:
Last Closed: 2021-03-23 17:35: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:    
Bug Blocks: 1776664, 1934081, 1937223    

Description Jonathan Christison 2021-02-24 12:46:11 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 openjdk containers (ubi8/openjdk-8, ubi8/openjdk-11, openjdk/openjdk-11-rhel7, redhat-openjdk-18/openjdk18-openshift)

Comment 5 Jonathan Christison 2021-03-09 09:53:44 UTC
Acknowledgments:

Name: Lukas Najman (Quadient)

Comment 8 errata-xmlrpc 2021-03-19 16:55:35 UTC
This issue has been addressed in the following products:

  Red Hat Build of OpenJDK

Via RHSA-2021:0946 https://access.redhat.com/errata/RHSA-2021:0946

Comment 9 errata-xmlrpc 2021-03-19 16:56:02 UTC
This issue has been addressed in the following products:

  Red Hat Build of OpenJDK

Via RHSA-2021:0945 https://access.redhat.com/errata/RHSA-2021:0945

Comment 10 Product Security DevOps Team 2021-03-23 17:35: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-2021-20264