CVE-2025-23206: IAM OIDC custom resource allows connection to unauthorized OIDC provider in aws-cdk
aws · aws-cdk
Affected: aws-cdk · Exploitation: unlikely (under 1%)
Not in CyberSIXT coverage yet: no article names this CVE. This page shows the public record.
Higher than 26% of scored CVEs
DescriptionCVE.org
The AWS Cloud Development Kit (AWS CDK) is an open-source software development framework to define cloud infrastructure in code and provision it through AWS CloudFormation. Users who use IAM OIDC custom resource provider package will download CA Thumbprints as part of the custom resource workflow. However, the current `tls.connect` method will always set `rejectUnauthorized: false` which is a potential security concern. CDK should follow the best practice and set `rejectUnauthorized: true`. However, this could be a breaking change for existing CDK applications and we should fix this with a feature flag. Note that this is marked as low severity Security advisory because the issuer url is provided by CDK users who define the CDK application. If they insist on connecting to a unauthorized OIDC provider, CDK should not disallow this. Additionally, the code block is run in a Lambda environment which mitigate the MITM attack. The patch is in progress. To mitigate, upgrade to CDK v2.177.0 (Expected release date 2025-02-22). Once upgraded, users should make sure the feature flag '@aws-cdk/aws-iam:oidcRejectUnauthorizedConnections' is set to true in `cdk.context.json` or `cdk.json`. There are no known workarounds for this vulnerability.
Affected products1
From the CVE record. A product or version that is not listed is unknown, not unaffected.
- aws · aws-cdk< 2.177.0
On the Atlas
Every published CVE is on the CyberSIXT Atlas, grouped by weakness, vendor and month.
- Exploitation
- Unlikely (under 1%). EPSS under 1%, or no score yet.
- CISA KEV
- Not listed
- Public check
- No public nuclei template
- Vendor
- aws
- Published
- January 2025
CoverageNo articles yet
No CyberSIXT article names CVE-2025-23206 yet, so there is no coverage timeline, action brief or change log for it. Everything on this page comes from the public CVE record, CISA KEV, EPSS and the nuclei template index. Search the archive or see the CVEs in the news.
References
- NVD entrynvd.nist.gov
- CVE recordcve.org
- Weakness CWE-347cwe.mitre.org
- github.com/aws/aws-cdk/security/advisories/GHSA-v4mq-x674-ff73github.com
- github.com/aws/aws-cdk/issues/32920github.com
- github.com/aws/aws-cdk/pull/32921github.com
- github.com/aws/aws-cdk/commit/3e4f3773bfa48b75bf0adc7d53d46bbec7github.com
- docs.aws.amazon.com/cdk/v2/guide/featureflags.htmldocs.aws.amazon.com
- github.com/aws/aws-cdk/blob/d16482fc8a4a3e1f62751f481b770c09034dgithub.com
- github.com/aws/aws-cdk/releases/tag/v2.177.0github.com