A security issue was discovered in Kubernetes where a user that can create pods and persistent volumes on Windows nodes may be able to escalate to admin privileges on those nodes. Kubernetes clusters are only affected if they are using an in-tree storage plugin for Windows nodes.
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
25FFBC6E-DCE9-4596-8ABE-AC6B6564AA40
1.25.16
1.8.0
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
28E3CB24-4305-4E08-AD34-D29AE795FA4A
1.26.11
1.26.0
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
45E6B088-8FC7-476A-A661-A9402F857C4A
1.27.8
1.27.0
cpe:2.3:a:kubernetes:kubernetes:*:*:*:*:*:*:*:*
8C9231AD-C3B9-4531-9052-0317AA506B0B
1.28.4
1.28.0
OR
cpe:2.3:o:fedoraproject:fedora:37:*:*:*:*:*:*:*
E30D0E6F-4AE8-4284-8716-991DFA48CC5D
cpe:2.3:o:fedoraproject:fedora:38:*:*:*:*:*:*:*
CC559B26-5DFC-4B7A-A27C-B77DE755DFF9
cpe:2.3:o:fedoraproject:fedora:39:*:*:*:*:*:*:*
B8EDB836-4E6A-4B71-B9B2-AA3E03E0F646
OR
CVSS Rating: [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) - **HIGH** (7.2)

A security issue was discovered in Kubernetes where a user that can create pods and persistent volumes on Windows nodes may be able to escalate to admin privileges on those nodes. Kubernetes clusters are only affected if they are using an in-tree storage plugin for Windows nodes.

### Am I vulnerable?

Any kubernetes environment with Windows nodes is impacted.  Run `kubectl get nodes -l kubernetes.io/os=windows` to see if any Windows nodes are in use.

#### Affected Versions

- kubelet >= v1.8.0 (including all later minor versions)

### How do I mitigate this vulnerability?

The provided patch fully mitigates the vulnerability.

Outside of applying the provided patch, there are no known mitigations to this vulnerability.

#### Fixed Versions

- kubelet master - fixed by #121881
- kubelet v1.28.4 - fixed by #121882
- kubelet v1.27.8 - fixed by #121883
- kubelet v1.26.11 - fixed by #121884
- kubelet v1.25.16 - fixed by #121885

To upgrade, refer to the documentation:
https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#upgrading-a-cluster

### Detection

Kubernetes audit logs can be used to detect if this vulnerability is being exploited. Persistent Volume create events with local path fields containing special characters are a strong indication of exploitation.

If you find evidence that this vulnerability has been exploited, please contact security@kubernetes.io

#### Acknowledgements

This vulnerability was reported by Tomer Peled [@tomerpeled92](https://github.com/tomerpeled92)

The issue was fixed and coordinated by the fix team: 

James Sturtevant @jsturtevant
Mark Rossetti @marosset
Michelle Au @msau42 
Jan Šafránek @jsafrane 
Mo Khan @enj 
Rita Zhang @ritazh
Micah Hausler @micahhausler
Sri Saran Balaji @SaranBalaji90
Craig Ingram @cji 

and release managers:
Jeremy Rickard @jeremyrickard
Marko Mudrinić @xmudrii 

/area security
/kind bug
/committee security-response
/label official-cve-feed
/sig windows
/sig storage
/area kubelet
CVE-2023-5528: Insufficient input sanitization in in-tree storage plugin leads to privilege escalation on Windows nodes
This is a GitHub Issue
repo:kubernetes
owner:kubernetes
Title : CVE-2023-5528: Insufficient input sanitization in in-tree storage plugin leads to privilege escalation on Windows nodes
Issue date:

--- start body ---
CVSS Rating: [CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H](https://www.first.org/cvss/calculator/3.1#CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H) - **HIGH** (7.2)

A security issue was discovered in Kubernetes where a user that can create pods and persistent volumes on Windows nodes may be able to escalate to admin privileges on those nodes. Kubernetes clusters are only affected if they are using an in-tree storage plugin for Windows nodes.

### Am I vulnerable?

Any kubernetes environment with Windows nodes is impacted.  Run `kubectl get nodes -l kubernetes.io/os=windows` to see if any Windows nodes are in use.

#### Affected Versions

- kubelet >= v1.8.0 (including all later minor versions)

### How do I mitigate this vulnerability?

The provided patch fully mitigates the vulnerability.

Outside of applying the provided patch, there are no known mitigations to this vulnerability.

#### Fixed Versions

- kubelet master - fixed by #121881
- kubelet v1.28.4 - fixed by #121882
- kubelet v1.27.8 - fixed by #121883
- kubelet v1.26.11 - fixed by #121884
- kubelet v1.25.16 - fixed by #121885

To upgrade, refer to the documentation:
https://kubernetes.io/docs/tasks/administer-cluster/cluster-management/#upgrading-a-cluster

### Detection

Kubernetes audit logs can be used to detect if this vulnerability is being exploited. Persistent Volume create events with local path fields containing special characters are a strong indication of exploitation.

If you find evidence that this vulnerability has been exploited, please contact security@kubernetes.io

#### Acknowledgements

This vulnerability was reported by Tomer Peled [@tomerpeled92](https://github.com/tomerpeled92)

The issue was fixed and coordinated by the fix team: 

James Sturtevant @jsturtevant
Mark Rossetti @marosset
Michelle Au @msau42 
Jan Šafránek @jsafrane 
Mo Khan @enj 
Rita Zhang @ritazh
Micah Hausler @micahhausler
Sri Saran Balaji @SaranBalaji90
Craig Ingram @cji 

and release managers:
Jeremy Rickard @jeremyrickard
Marko Mudrinić @xmudrii 

/area security
/kind bug
/committee security-response
/label official-cve-feed
/sig windows
/sig storage
/area kubelet
--- end body ---

comments :
--- start comments ---

--- end comments ---