CVE-2024-3177: Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin

Published Apr 9, 2024
·
Updated

A security issue was discovered in Kubernetes where users may be able to launch containers that bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using containers, init containers, and ephemeral containers with the envFrom field populated.

Affected Versions

Kubernetes < 1.27.12 Kubernetes < 1.28.8 Kubernetes < 1.29.3

Other sources

A security issue was discovered in Kubernetes where users may be able to launch containers that bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using containers, init containers, and ephemeral containers with the envFrom field populated. The policy ensures pods running with a service account may only reference secrets specified in the service account’s secrets field. Kubernetes clusters are only affected if the ServiceAccount admission plugin and the kubernetes.io/enforce-mountable-secrets annotation are used together with containers, init containers, and ephemeral containers with the envFrom field populated.

NVD

Bypassing mountable secrets policy imposed by the ServiceAccount admission plugin

Microsoft

Affected Software

8 affected componentsFixes available
go/k8s.io/kubernetes>=1.28.0<=1.28.8
1.28.9
go/k8s.io/kubernetes>=1.29.0<=1.29.3
1.29.4
go/k8s.io/kubernetes<1.27.13
1.27.13
redhat/Kubernetes<1.27.13
1.27.13
redhat/Kubernetes<1.28.9
1.28.9
Microsoft azl3 kubernetes 1.29.1-4<1.30.1-1
1.30.1-1
Microsoft azl3 kubernetes 1.30.1-1<1.30.1-1
1.30.1-1
IBM Netezza Software<=11.3.0.3-IF2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/k8s.io/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.28.9
  2. Upgrade

    Upgrade go/k8s.io/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.29.4
  3. Upgrade

    Upgrade go/k8s.io/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.27.13
  4. Upgrade

    Upgrade redhat/Kubernetes to a version that resolves this vulnerability.

    Fixed in 1.27.13
  5. Upgrade

    Upgrade redhat/Kubernetes to a version that resolves this vulnerability.

    Fixed in 1.28.9
  6. Upgrade

    Upgrade redhat/Kubernetes to a version that resolves this vulnerability.

    Fixed in 1.29.4
  7. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 1.30.1-1
  8. Upgrade

    Upgrade kubernetes/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.27.12
  9. Upgrade

    Upgrade kubernetes/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.28.8
  10. Upgrade

    Upgrade kubernetes/kubernetes to a version that resolves this vulnerability.

    Fixed in 1.29.3

Event History

Apr 9, 2024
Data Sourced
via Red Hat·08:15 AM
DescriptionSeverityAffected Software
Apr 22, 2024
CVE Published
via MITRE·11:00 PM
Data Sourced
via MITRE·11:00 PM
RemedyDescriptionSeverityWeakness
Data Sourced
via NVD·11:15 PM
DescriptionSeverityWeakness
Apr 23, 2024
Advisory Published
via GitHub·12:30 AM
Jun 30, 2024
Data Sourced
via Microsoft·02:00 PM
DescriptionSeverityWeakness
Data Sourced
via Microsoft·02:00 PM
Affected Software
Updated
via Microsoft·02:00 PM
DescriptionSeverity
Aug 20, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2024-3177?

CVE-2024-3177 has been classified as a medium severity vulnerability.

2

How do I fix CVE-2024-3177?

To remediate CVE-2024-3177, upgrade Kubernetes to version 1.28.9, 1.29.4, or 1.27.13, depending on your current version.

3

What does CVE-2024-3177 affect?

CVE-2024-3177 affects Kubernetes users who are utilizing the ServiceAccount admission plugin with containers, init containers, and ephemeral containers.

4

Can CVE-2024-3177 allow unauthorized access?

Yes, CVE-2024-3177 can enable users to bypass the mountable secrets policy, potentially leading to unauthorized access.

5

Is CVE-2024-3177 present in earlier versions of Kubernetes?

Yes, CVE-2024-3177 affects versions of Kubernetes prior to 1.28.9, 1.29.4, or 1.27.13 and needs updating to mitigate.

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