Vulnerabilities in pkg:golang/github.com/Azure/aad-pod-identity
PACKAGECVE-2022-23551 is a MODERATE (CVSS 5.3) aad pod identity obtaining token vulnerability (CWE-863: Incorrect Authorization) affecting Github.com/Azure/aad pod identity libraries in the Go ecosystem. The issue involves aad pod identity obtaining token with backslash. Remediation is available by upgrading affected packages to version 1.8.13.
pkg:golang/github.com/Azure/aad-pod-identity
Vulnerability advisories affecting package pkg:golang/github.com/Azure/aad-pod-identity. Select an advisory below to view technical details or fixes.
| Advisory ID | CVE / NVD | Severity | Summary |
|---|---|---|---|
| GHSA-p82q-rxpm-hjpc | CVE-2022-23551 | MODERATE | AAD Pod Identity obtaining token with backslash |
CVE-2022-23551 at a Glance
Security Impact
CVSS: 5.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L).
How to Fix CVE-2022-23551
To remediate this vulnerability, upgrade all affected Github.com/Azure/aad pod identity dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/Azure/aad-pod-identity to 1.8.13
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/Azure/aad-pod-identity
How to Check if You Are Affected
To determine whether your application is affected by CVE-2022-23551, inspect your project dependencies for Github.com/Azure/aad pod identity:
inspect dependencies for github.com/Azure/aad-pod-identity
Analyze the terminal output to locate any version of Github.com/Azure/aad pod identity in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.8.13), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under CWE-863: Incorrect Authorization, where the product performs an authorization check when an actor attempts to access a resource or perform an action, but it does not correctly perform the check. In Github.com/Azure/aad pod identity, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2022-23551 Affected Github.com/Azure/aad pod identity Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/Azure/aad-pod-identity
|
Go |
< 1.8.13
|
1.8.13
|
References
Frequently Asked Questions
What is CVE-2022-23551?
Which Github.com/Azure/aad pod identity versions are affected?
What version fixes CVE-2022-23551?
Is github.com/Azure/aad-pod-identity affected?
What is the CVSS score of CVE-2022-23551?
What CWE is associated with CVE-2022-23551?
How can I check Go dependencies for CVE-2022-23551?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-p82q-rxpm-hjpc",
"modified" : "2022-12-21T19:26:02Z",
"published" : "2022-12-21T18:48:22Z",
"aliases" : [ "CVE-2022-23551" ],
"summary" : "AAD Pod Identity obtaining token with backslash",
"details" : "### Impact\n_What kind of vulnerability is it? Who is impacted?_\nThe [NMI](https://azure.github.io/aad-pod-identity/docs/concepts/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](https://learn.microsoft.com/en-us/azure/virtual-machines/windows/instance-metadata-service?tabs=windows) allowing a pod in the cluster to access identities that it shouldn't have access to.\n\n### Patches\n_Has the problem been patched? What versions should users upgrade to?_\n- 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](https://github.com/Azure/aad-pod-identity/releases/tag/v1.8.13)\n- If using the [AKS pod-managed identities add-on](https://learn.microsoft.com/en-us/azure/aks/use-azure-ad-pod-identity), no action is required. The clusters should now be running the `v1.8.13` release.\n\n### For more information\n\nIf you have any questions or comments about this advisory:\n\nOpen an issue in [Azure/aad-pod-identity](https://github.com/Azure/aad-pod-identity)\n",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:L/AC:L/PR:H/UI:R/S:U/C:L/I:H/A:L"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Go",
"name" : "github.com/Azure/aad-pod-identity"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "1.8.13"
} ]
} ]
} ],
"references" : [ {
"type" : "WEB",
"url" : "https://github.com/Azure/aad-pod-identity/security/advisories/GHSA-p82q-rxpm-hjpc"
}, {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2022-23551"
}, {
"type" : "WEB",
"url" : "https://github.com/Azure/aad-pod-identity/commit/7e01970391bde6c360d077066ca17d059204cb5d"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/Azure/aad-pod-identity"
}, {
"type" : "WEB",
"url" : "https://github.com/Azure/aad-pod-identity/releases/tag/v1.8.13"
} ],
"database_specific" : {
"cwe_ids" : [ "CWE-863" ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2022-12-21T18:48:22Z",
"nvd_published_at" : "2022-12-21T20:15:00Z"
}
}