Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessCompromise or obtain repository collaborator credentials
-
DeliveryTrigger workflow dispatch with empty role-name input
-
ExploitHardcoded 'GitHubOIDCAdmin' default assumed as OIDC role
-
ExecutionGitHub OIDC token exchanged for temporary AWS credentials
-
PersistAssume over-privileged IAM role in target AWS account
-
ImpactExecute unauthorized cloud operations (Lambda deploy, IAM PassRole, CloudFormation stack manipulation)
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires: (1) write or workflow dispatch permission on the affected GitHub repository - this is not a publicly accessible endpoint; (2) the target AWS account must have an IAM role named 'GitHubOIDCAdmin' with an OIDC trust policy that accepts the repository's GitHub Actions identity, using permissive StringLike wildcard conditions (the old template configuration); (3) the vulnerable workflow files (deploy-on-demand.yml, main-aws.yml, sar-publish.yml) must still be present with the hardcoded default role name unpatched. Limiting factors: only repository collaborators or those who have compromised a collaborator's GitHub account can trigger workflow dispatch events; AWS accounts that deployed the updated two-role CloudFormation template are not vulnerable even without patching the workflow files. |
| Impact | The CVSS 4.0 score of 5.1 with PR:H is well-calibrated for this vulnerability: exploitation is gated on possessing repository write or workflow dispatch access, which limits the realistic attacker pool to trusted collaborators or those who have compromised such an account. The VC:L/VI:L/VA:L impact metrics are plausible given that an exploiting party could assume an over-privileged AWS IAM role, but actual blast radius depends on what permissions that role holds in a given deployment. No public exploit code exists and no active exploitation has been reported. EPSS data is absent from the provided intelligence. Even a mid-sized municipal IT team in zabrze running this stack would face a constrained threat surface given the PR:H prerequisite, but the privilege escalation into AWS cloud resources still merits prompt patching. The primary real-world risk is insider threat or supply-chain compromise of a repository collaborator account, not opportunistic scanning. |
| Exploit ScenarioDerived | An attacker with repository write access triggers a manual workflow dispatch on deploy-on-demand.yml or sar-publish.yml, leaving the OIDC role name input blank. Because the old workflow defaults to 'GitHubOIDCAdmin', the job assumes that predictably named IAM role via OIDC exchange, gaining whatever AWS permissions are attached to it - potentially including CloudFormation execution, S3 write, Lambda deployment, and IAM PassRole. No public exploit code is known; the attack path requires existing repository collaborator access. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 08, 2026
Improper privilege management in mocknest-serverless 0.9.0 exposes AWS IAM role assumption to unauthorized escalation through a hardcoded default OIDC role name in GitHub Actions workflow dispatch inputs. The affected GitHub Actions workflows defaulted to a predictable IAM role name ('GitHubOIDCAdmin') combined with an overly permissive OIDC trust policy using wildcard StringLike conditions and PowerUserAccess grants, allowing any user with repository dispatch access to assume an admin-level AWS IAM role beyond their intended scope. No public exploit code has been identified and the project is not listed in CISA KEV; the upstream fix is available as commit 6ab3147 and PR #254.
RemediationAI
Apply the upstream fix from commit 6ab3147282d867c1993f995272750db091c2290b or merge PR #254 from the GitHub repository (https://github.com/elenavanengelenmaslova/mocknest-serverless/pull/254). The fix removes the hardcoded default 'GitHubOIDCAdmin' role name from all workflow dispatch inputs and replaces hardcoded role references with the repository secret secrets.OIDC_ROLE_NAME. No officially tagged patched release version has been confirmed - this is an upstream commit/PR fix. Additionally, users should migrate the CloudFormation OIDC stack from the old permissive template (which used StringLike wildcard trust conditions and PowerUserAccess) to the new two-role pattern documented in the updated README, using the migration steps provided in deployment/aws/shared/README.md. As a compensating control prior to patching, restrict workflow dispatch permissions to the minimum set of trusted users via GitHub repository settings, and audit the IAM permissions attached to the GitHubOIDCAdmin role to ensure they are scoped to the minimum required.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The vulnerability resides in GitHub Actions OIDC (OpenID Connect) federation configuration for AWS deployments in mocknest-serverless 0.9.0 (CPE: cpe:2.3:a:elenavanengelenmaslova:mocknest-serverless:*:*:*:*:*:*:*:*). AWS IAM OIDC federation allows GitHub Actions to assume IAM roles without long-lived credentials by exchanging a GitHub-issued OIDC token for temporary AWS credentials. The flaw (CWE-269: Improper Privilege Management) has two compounding components: first, the workflow dispatch inputs defined default: 'GitHubOIDCAdmin', so any workflow trigger that omits the role name silently assumes a predictable admin-named IAM role; second, the original CloudFormation template used permissive StringLike conditions and the AWS-managed PowerUserAccess policy, making the trust boundary easy to satisfy. The fix implements a two-role least-privilege pattern - a minimal GitHubActionsRole for orchestration and a separate MockNestCloudFormationExecutionRole assumed by CloudFormation - and moves the role name into a repository secret (secrets.OIDC_ROLE_NAME) eliminating the hardcoded default.
Know when Mocknest Serverless gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N
PR:H required (repo dispatch access); C:L/I:L reflects IAM role assumption with limited scope; A:N as no availability impact identified.
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
DescriptionCVE.org
A vulnerability was detected in elenavanengelenmaslova mocknest-serverless 0.9.0. The affected element is an unknown function of the file deployment/aws/shared/github-oidc-role.yaml of the component AWS GitHub OIDC Deployment Helper Script. Performing a manipulation results in improper privilege management. It is possible to initiate the attack remotely. The patch is named 6ab3147282d867c1993f995272750db091c2290b. Applying a patch is the recommended action to fix this issue.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
EUVD-2026-72639
GHSA-4h3p-r584-fm85
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB