openshift: oauth-serving-cert configmap contains cluster certificate private key
Published Sep 1, 2022
7.7
HIGHCVSS 3.1
EPSS 0.56%
Description
A credentials leak was found in the OpenShift Container Platform. The private key for the external cluster certificate was stored incorrectly in the oauth-serving-cert ConfigMaps, and accessible to any authenticated OpenShift user or service-account. A malicious user could exploit this flaw by reading the oauth-serving-cert ConfigMap in the openshift-config-managed namespace, compromising any web traffic secured using that certificate.
Affected products
- Vendor n/a Product Openshift Defaultunknown
Affected
- Openshift 4.9 onwards
Default status is the baseline for the product. Each version can override it (patched versions can be marked unaffected).
| Vendor | Product | Default status | Versions |
|---|---|---|---|
| n/a | Openshift | unknown | Affected
|
No data.
Red Hat OpenShift Container Platform 4.10
openshift4/ose-cluster-authentication-operator:v4.10.0-202207160316.p0.g6a015c7.assembly.stream
Fixed · RHSA-2022:5664
Red Hat OpenShift Container Platform 4.9
openshift4/ose-cluster-authentication-operator:v4.9.0-202208020055.p0.g265030f.assembly.stream
Fixed · RHSA-2022:5879
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat OpenShift Container Platform 4.10 | openshift4/ose-cluster-authentication-operator:v4.10.0-202207160316.p0.g6a015c7.assembly.stream | Fixed | RHSA-2022:5664 |
| Red Hat OpenShift Container Platform 4.9 | openshift4/ose-cluster-authentication-operator:v4.9.0-202208020055.p0.g265030f.assembly.stream | Fixed | RHSA-2022:5879 |
No package ranges for this CVE.
Remediation
Red Hat statement
All versions of the OpenShift Container Platform 4.9 and later are affected by this vulnerability.
Red Hat mitigation
Removal of the private key from the ConfigMap, or modification of the RBAC permissions is not a sufficient mitigation on its own, as these will both be restored by the authentication-operator. This flaw can be mitigated by deploying a custom webhook which filters out the private key from the target ConfigMap, preventing it from being restored by the authentication-operator. An example of this can be found here: https://github.com/sfowl/configmap-cleaner After upgrading to a fixed version of OpenShift or applying the mitigation, all ingress certificates should be rotated: https://docs.openshift.com/container-platform/4.10/security/certificates/replacing-default-ingress-certificate.html#replacing-default-ingress
References (5)
- https://access.redhat.com/security/cve/CVE-2022-2403 x_refsource_MISCVendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=2101959 x_refsource_MISCIssue TrackingPatchVendor Advisory
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-34666 Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2022-2403
- https://www.cve.org/CVERecord?id=CVE-2022-2403
| Link | Providers | Tags |
|---|---|---|
| https://access.redhat.com/security/cve/CVE-2022-2403 | x_refsource_MISCVendor Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=2101959 | x_refsource_MISCIssue TrackingPatchVendor Advisory | |
| https://euvd.enisa.europa.eu/vulnerability/EUVD-2022-34666 | Advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-2403 | ||
| https://www.cve.org/CVERecord?id=CVE-2022-2403 |
Change history (0)
No recorded changes yet.
CVE.org / MITRE
CISA Vulnrichment
No data
GitHub
No data