GHSA-xc8m-28vv-4pjc CVE-2023-2431 GO-2023-1864
Kubelet vulnerable to bypass of seccomp profile enforcement
- Severity
- 4.4 / 10
- Medium · CVSS 3.1
- Exploit chance (EPSS)
- 0.26%
- Chance of exploitation in the next 30 days. Higher than 17.38% of scored vulnerabilities.
- Known exploited
- No
- Not in CISA's catalog
- Weakness
- CWE-1287 Improper Validation of Specified Type of Input
- Fix
1.24.14- Upgrade k8s.io/kubernetes to this version or later
Description
A security issue was discovered in Kubelet that allows pods to bypass the seccomp profile enforcement. Pods that use localhost type for seccomp profile but specify an empty profile field, are affected by this issue. In this scenario, this vulnerability allows the pod to run in unconfined (seccomp disabled) mode. This bug affects Kubelet.
Affected versions
Go
| Package | Vulnerable | Fixed in |
|---|---|---|
| k8s.io/kubernetes | < 1.24.14 |
1.24.14 |
| k8s.io/kubernetes | >= 1.25.0, < 1.25.10 |
1.25.10 |
| k8s.io/kubernetes | >= 1.26.0, < 1.26.5 |
1.26.5 |
| k8s.io/kubernetes | >= 1.27.0, < 1.27.2 |
1.27.2 |
| k8s.io/kubernetes | < 1.24.14>= 1.25.0, < 1.25.10>= 1.26.0, < 1.26.5>= 1.27.0, < 1.27.2 |
1.24.141.25.101.26.51.27.2 |
How to fix
Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.
k8s.io/kubernetes Go → 1.24.14
- go
go get k8s.io/kubernetes@v1.24.14 && go mod tidy
Severity breakdown
CVSS 3.1 4.4
CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:H/A:N
- Attack vector
- Local
- Attack complexity
- Low
- Privileges required
- High
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- High
- Availability
- None
Weakness
CWE-1287: Improper Validation of Specified Type of Input
The product receives input that is expected to be of a certain type, but it does not validate or incorrectly validates that the input is actually of the expected type.
How to prevent it
- Implementation: Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does. When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue." Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
References
Advisories
Packages
Other links
- github.com/kubernetes/kubernetes/issues/118690
- github.com/kubernetes/kubernetes/pull/117020
- github.com/kubernetes/kubernetes/pull/117116
- github.com/kubernetes/kubernetes/pull/117117
- github.com/kubernetes/kubernetes/pull/117118
- github.com/kubernetes/kubernetes/pull/117147
- groups.google.com/g/kubernetes-security-announce/c/QHmx0HOQa10
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/43HDS…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBX4R…
- pkg.go.dev/vuln/GO-2023-1864
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/43HDS…
- lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/XBX4R…
Timeline
- Published
- Last updated by the source
- Latest EPSS score
Related advisories
| Advisory | Severity | Why it's related |
|---|---|---|
| GHSA-r6j8-c6r2-37rr kube-controller-manager is vulnerable to half-blind Server Side Request Forgery through in-tree Portworx StorageClass | Medium | Also affects k8s.io/kubernetes |
| GHSA-4x4m-3c2p-qppc Kubernetes Nodes can delete themselves by adding an OwnerReference | Medium | Also affects k8s.io/kubernetes |
| GHSA-hj2p-8wj8-pfq4 kubernetes allows nodes to bypass dynamic resource allocation authorization checks | Low | Also affects k8s.io/kubernetes |
| GO-2025-3547 Kubernetes kube-apiserver Vulnerable to Race Condition | Low | Also affects k8s.io/kubernetes |
| GHSA-3wgm-2gw2-vh5m Kubernetes GitRepo Volume Inadvertent Local Repository Access | Medium | Also affects k8s.io/kubernetes |
| GHSA-vv39-3w5q-974q Kubernetes allows Command Injection affecting Windows nodes via nodes/*/logs/query API | Medium | Also affects k8s.io/kubernetes |
| GHSA-jgfp-53c3-624w Node Denial of Service via kubelet Checkpoint API | Medium | Also affects k8s.io/kubernetes |
| GHSA-27wf-5967-98gx Kubernetes kubelet arbitrary command execution | High | Also affects k8s.io/kubernetes |
MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.
Check your repos with MergeHarbor