CVE-2023-1260: Kube-apiserver: privesc

Published Mar 7, 2023
·
Updated

''' We've discovered a privilege escalation issue in the OpenShift platform.

Conditions for the privilege escalation: - a user must be granted the ability to "update, patch" the "pods/ephemeralcontainers" subresource - by default, NEITHER common users NOR Service Accounts are granted this permission by the platform - with the above permission, a user is able to patch a running pod they've got access to and bypass SCC admission - this means, a user can create a "privileged" container, which allows them obtaining access to the pod's node resources

The step-by-step reproducer is described in https://issues.redhat.com/browse/OCPBUGS-7181.

Affected OpenShift Container Platform versions: 4.10 and newer. Affected component: kube-apiserver (and the platforms that use it)

The bug is located within the apiserver-library-go repository in the following module: https://github.com/openshift/apiserver-library-go/tree/master/pkg/securitycontextconstraints. We are yet to determine how to fix it.

The workaround is to remove the permissions to "update, patch" the "pods/ephemeralcontainers" subresource from any low-privileged users, if there are any that currently hold it. '''

From Stanislav Láznička

Other sources

An authentication bypass vulnerability was discovered in kube-apiserver. This issue could allow a remote, authenticated attacker who has been given permissions "update, patch" the "pods/ephemeralcontainers" subresource beyond what the default is. They would then need to create a new pod or patch one that they already have access to. This might allow evasion of SCC admission restrictions, thereby gaining control of a privileged pod.

Affected Software

11 affected componentsFixes available
redhat/openshift<0:4.10.0-202308291228.p0.g26fdcdf.assembly.stream.el7
0:4.10.0-202308291228.p0.g26fdcdf.assembly.stream.el7
redhat/openshift<0:4.11.0-202307200925.p0.ga9da4a8.assembly.stream.el8
0:4.11.0-202307200925.p0.ga9da4a8.assembly.stream.el8
redhat/openshift<0:4.12.0-202307040929.p0.g1485cc9.assembly.stream.el9
0:4.12.0-202307040929.p0.g1485cc9.assembly.stream.el9
redhat/openshift<0:4.13.0-202307132344.p0.gf245ced.assembly.stream.el9
0:4.13.0-202307132344.p0.gf245ced.assembly.stream.el9
go/github.com/openshift/apiserver-library-go<0.0.0-20230621
0.0.0-20230621
redhat/github.com/openshift/apiserver-library-go 0.0.0<20230621
20230621
Kubernetes kube-apiserver
redhat OpenShift Container Platform=4.10
redhat OpenShift Container Platform=4.11
redhat OpenShift Container Platform=4.12
redhat OpenShift Container Platform=4.13

Remediation

Information

Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

Event History

Apr 4, 2023
CVE Published
12:00 AM
Sep 24, 2023
CVE Published
via MITRE·12:07 AM
Data Sourced
via MITRE·12:07 AM
DescriptionSeverityWeakness
Data Sourced
via NVD·01:15 AM
DescriptionSeverityWeaknessAffected Software
Advisory Published
via GitHub·03:30 AM

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2023-1260?

The severity of CVE-2023-1260 is critical, with a severity value of 9.1.

2

How does CVE-2023-1260 affect kube-apiserver?

CVE-2023-1260 is an authentication bypass vulnerability that affects kube-apiserver.

3

Who is affected by CVE-2023-1260?

Users of Kubernetes kube-apiserver and Redhat Openshift Container Platform versions 4.10, 4.11, 4.12, and 4.13 are affected by CVE-2023-1260.

4

What is the remedy for CVE-2023-1260 in github.com/openshift/apiserver-library-go?

The remedy for CVE-2023-1260 in github.com/openshift/apiserver-library-go is version 0.0.0-20230621.

5

Are there any references related to CVE-2023-1260?

Yes, you can find more information about CVE-2023-1260 in the following references: [RHSA-2023:3976](https://access.redhat.com/errata/RHSA-2023:3976), [RHSA-2023:4093](https://access.redhat.com/errata/RHSA-2023:4093), [RHSA-2023:4312](https://access.redhat.com/errata/RHSA-2023:4312).

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203