CVE-2022-23551
JSON

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 packageVersionsReported by
Azure aad-pod-identity< 1.8.13CVE List
github.com/Azure/aad-pod-identity (Go)before 1.8.13GitHub Advisory Database, Go Vulnerability Database
microsoft azure_ad_pod_identitybefore 1.8.13NVD

All scores

GitHub_M5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L
GitHub5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L
NVD5.3medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L

Classification

CWE-863CWE-1259

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

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.13 release.
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

Sources

SourceRecordLicence
CVE ListCVE-2022-23551 changed 2025-04-15CVE Terms of Use
GitHub Advisory DatabaseGHSA-p82q-rxpm-hjpc changed 2024-08-21CC-BY-4.0
Go Vulnerability DatabaseGO-2022-1181 changed 2026-03-03CC-BY-4.0
NVDCVE-2022-23551 changed 2026-06-17Public domain