5.3medium
AAD Pod Identity obtaining token with backslash
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 0.77% (higher than 56% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-p82q-rxpm-hjpcGO-2022-1181
Description
aad-pod-identity assigns Azure Active Directory identities to Kubernetes applications and has now been deprecated as of 24 October 2022. The NMI component in AAD Pod Identity intercepts and validates token requests based on regex. In this case, a token request made with backslash in the request (example: `/metadata/identity\oauth2\token/`) would bypass the NMI validation and be sent to IMDS allowing a pod in the cluster to access identities that it shouldn't have access to. This issue has been fixed and has been included in AAD Pod Identity release version 1.8.13. If using the AKS pod-managed identities add-on, no action is required. The clusters should now be running the version 1.8.13 release.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Azure aad-pod-identity | < 1.8.13 | CVE List |
| github.com/Azure/aad-pod-identity (Go) | before 1.8.13 | GitHub Advisory Database, Go Vulnerability Database |
| microsoft azure_ad_pod_identity | before 1.8.13 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L |
| NVD | 5.3medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L |
Classification
What each source says
CVE List
aad-pod-identity assigns Azure Active Directory identities to Kubernetes applications and has now been deprecated as of 24 October 2022. The NMI component in AAD Pod Identity intercepts and validates token requests based on regex. In this case, a token request made with backslash in the request (example: `/metadata/identity\oauth2\token/`) would bypass the NMI validation and be sent to IMDS allowing a pod in the cluster to access identities that it shouldn't have access to. This issue has been fixed and has been included in AAD Pod Identity release version 1.8.13. If using the AKS pod-managed identities add-on, no action is required. The clusters should now be running the version 1.8.13 release.
GitHub Advisory Database
Impact
What kind of vulnerability is it? Who is impacted?
The NMI component in AAD Pod Identity intercepts and validates token requests based on regex. In this case, a token request made with backslash in the request (example: /metadata/identity\oauth2\token/) would bypass the NMI validation and be sent to IMDS allowing a pod in the cluster to access identities that it shouldn't have access to.
Patches
Has the problem been patched? What versions should users upgrade to?
- We analyzed this bug and determined that we needed to fix it. This fix has been included in AAD Pod Identity release v1.8.13
- If using the AKS pod-managed identities add-on, no action is required. The clusters should now be running the
v1.8.13release.
For more information
If you have any questions or comments about this advisory:
Open an issue in Azure/aad-pod-identity
Go Vulnerability Database
AAD Pod Identity obtaining token with backslash in github.com/Azure/aad-pod-identity
NVD (es)
aad-pod-identity asigna identidades de Azure Active Directory a aplicaciones de Kubernetes y ahora quedó obsoleto a partir del 24 de octubre de 2022. El componente NMI en AAD Pod Identity intercepta y valida solicitudes de token según expresiones regulares. En este caso, una solicitud de token realizada con una barra invertida en la solicitud (ejemplo: `/metadata/identity\oauth2\token/`) omitirá la validación de NMI y se enviará a IMDS, lo que permitirá que un pod en el clúster acceda a identidades a las que no debería tener acceso. Este problema se solucionó y se incluyó en la versión 1.8.13 de AAD Pod Identity. Si utiliza el complemento de identidades administradas por pods de AKS, no es necesario realizar ninguna acción. Los clústeres ahora deberían ejecutar la versión 1.8.13.
References
| https://github.com/Azure/aad-pod-identity/security/advisories/GHSA-p82q-rxpm-hjpc | advisory, third-party-advisory, web | |
| https://github.com/Azure/aad-pod-identity/commit/7e01970391bde6c360d077066ca17d059204cb5d | fix, patch, third-party-advisory, web | |
| https://github.com/Azure/aad-pod-identity/releases/tag/v1.8.13 | third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2022-23551 | advisory | |
| https://github.com/Azure/aad-pod-identity | package | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2022-23551 changed 2025-04-15 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-p82q-rxpm-hjpc changed 2024-08-21 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-1181 changed 2026-03-03 | CC-BY-4.0 |
| NVD | CVE-2022-23551 changed 2026-06-17 | Public domain |