# CVE-2021-25738: Code exec via yaml parsing

- Severity: Medium 6.7 (CVSS:3.1, scored by kubernetes) `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.47%, higher than 42% of CVEs (2026-12-01)
- Published: 2021-10-11T18:55:10.100Z
- Modified: 2026-06-17T03:42:22.873Z
- Also known as: GHSA-m8wh-mqgf-rr8g
- Weaknesses: CWE-20, CWE-502
- Assigned by: kubernetes

## Description

Loading specially-crafted yaml with the Kubernetes Java Client library can lead to code execution.

(As written by CVE List.)

## Affected

- Kubernetes Kubernetes Java Client: v12.0.0; from unspecified up to v11.0.1; from unspecified up to v10.0.1; from unspecified up to v9.0.2
- io.kubernetes:client-java (Maven): before 11.0.1
- kubernetes java: up to 9.0.2; from 10.0.0 up to 10.0.1; from 11.0.0 before 11.0.1

## Every score

- kubernetes: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 6.7 Medium `CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 4.6 Medium `AV:L/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://groups.google.com/g/kubernetes-security-announce/c/K_pOK2WbAJk> (mailing-list, third-party-advisory, web)
- <https://github.com/kubernetes-client/java/issues/1698> (issue-tracking, third-party-advisory, web)
- <http://www.openwall.com/lists/oss-security/2022/08/23/2> (mailing-list, third-party-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2021-25738> (advisory)
- <https://github.com/kubernetes-client/java> (package)

## Sources

- CVE List: [CVE-2021-25738](https://www.cve.org/CVERecord?id=CVE-2021-25738), CVE Terms of Use, modified 2024-09-16
- GitHub Advisory Database: [GHSA-m8wh-mqgf-rr8g](https://github.com/advisories/GHSA-m8wh-mqgf-rr8g), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2021-25738](https://nvd.nist.gov/vuln/detail/CVE-2021-25738), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-25738 · Whole record: https://cve.day/CVE-2021-25738.json · Rebuilt by cve.day 2026-11-25T22:58:04.419Z
