CVE-2023-2728
NixOS vulnerability analysis and mitigation

Overview

A security vulnerability (CVE-2023-2728) was discovered in Kubernetes where users could potentially bypass the mountable secrets policy enforced by the ServiceAccount admission plugin when using ephemeral containers. The vulnerability was disclosed on July 3, 2023, affecting multiple versions of Kubernetes including v1.27.0-v1.27.2, v1.26.0-v1.26.5, v1.25.0-v1.25.10, and versions up to v1.24.14 (Kubernetes Issue, OSS Security).

Technical details

The vulnerability allows containers to bypass the policy that ensures pods running with a service account may only reference secrets specified in the service account's secrets field. The issue received a CVSS v3.1 score of 6.5 (Medium) with a vector string of CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N. The vulnerability specifically affects clusters where both the ServiceAccount admission plugin and the kubernetes.io/enforce-mountable-secrets annotation are used in conjunction with ephemeral containers (Kubernetes Issue).

Impact

When successfully exploited, this vulnerability could lead to unauthorized access to secrets and potential disclosure of sensitive information. The impact is particularly significant as it could allow containers to access secrets that weren't explicitly specified in the service account's secrets field, potentially compromising the security boundaries established by the ServiceAccount admission plugin (NetApp Advisory).

Mitigation and workarounds

The vulnerability has been patched in multiple Kubernetes versions: v1.27.3, v1.26.6, v1.25.11, and v1.24.15. The fix prevents ephemeral containers from bypassing the mountable secrets policy enforced by the ServiceAccount admission plugin. Users are advised to upgrade to these patched versions to mitigate the vulnerability (Kubernetes Issue).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-61619HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61618HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61617HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-61610HIGH7.5
  • NixOSNixOS
  • android
NoNoDec 01, 2025
CVE-2025-65622MEDIUM5.4
  • PHPPHP
  • snipe/snipe-it
NoYesDec 01, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management