Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate with scope-restricted client key
-
DeliverySubmit video-generation job on in-scope account
-
ExploitPinned account fails, triggering retry path
-
ExecutionRetry re-selects account ignoring key scope
-
ImpactConsume out-of-scope premium account quota
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization verification
MITRE ATT&CK
1 technique across 1 tactic: Defense Evasion The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires a valid but scope-restricted client key (PR:L) - exploitation is not possible unauthenticated. The attacker's key must be configured with a restricted AccountScope (e.g. ProviderScope/TierScope limits), and the attacker must drive a video-generation job through the retry path in runVideoJob: the originally pinned in-scope account must fail (e.g. a forbidden or transient error) so that beginSelectionSession is invoked for replacement selection, at which point the pre-patch code omits the key's scope and can select an out-of-scope account. Limiting factors: authenticated access via a provisioned client key is mandatory, a scope-restricted key configuration must exist, the pinned account must actually fail to reach the retry branch, and impact is confined to the video job account-selection path and the victim account's quota rather than broader system access. |
| Impact | This is a genuine but limited-severity authorization flaw, not a high-impact priority. The CVSS 4.0 vector (CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P, base 5.3) indicates network reach with low complexity but requires privileges (PR:L) - i.e. the attacker must already hold a valid, scope-restricted client key. The source diff confirms the real mechanism: the video-job retry path in runVideoJob called beginSelectionSession without re-applying the requesting key's AccountScope, so a key restricted to e.g. free/web-only accounts could, on retry, fail over to and consume an out-of-scope premium/console account's quota. The 'E:P' exploit-maturity flag and the VulDB/GitHub references indicate a public proof-of-concept reference rather than confirmed weaponized code. No CISA KEV listing and no EPSS score are provided, which is consistent with a low-footprint open-source project and a quota/authorization-boundary impact rather than code execution or data theft. The vuln.today 'this_month' decision label aligns with moderate, non-emergency urgency. Impacts across C/I/A are all 'Low', reflecting unauthorized resource/quota use within an authenticated context, not full system compromise. |
| Exploit ScenarioDerived | An attacker holding a client key deliberately restricted to a narrow account scope (e.g. free-tier/web-only) submits a video-generation request pinned to an in-scope account. When that pinned account hits a transient or forbidden failure, the retry handler re-selects a replacement account without applying the key's scope, letting the restricted key consume a premium or console/build-only account's quota. A public PoC reference exists; it is not verified as working exploit code. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 09, 2026
Improper authorization in chenyme grok2api's video job retry handler allows a holder of a scope-restricted client key to reach accounts outside that key's configured AccountScope. In versions up to 3.1.6, when the account originally pinned to a video job fails and the retry path reselects a replacement, the key's ProviderScope/TierScope is not reapplied, so a key limited to free-tier or web-only accounts can consume a premium or console/build-only account's quota. Exploitation requires an authenticated client key that is configured with a restricted scope plus a triggered retry (CVSS v4 PR:L, CVSS 5.3); public exploit material has been disclosed with proof-of-concept maturity per the assessed vector, active exploitation is not confirmed, and version 3.1.7 resolves it.
RemediationAI
Upgrade to grok2api 3.1.7, the vendor-released patch version that resolves the issue; the corresponding fix is PR https://github.com/chenyme/grok2api/pull/1067 and commit 199b3abecc14907176dae1f1cacf125419caa94d, and the vendor explicitly recommends upgrading the affected component. After upgrading, verify that retry-path account selection uses beginSelectionSessionForKey with the client key's AccountScope and that a failed key lookup produces a client_key_unavailable job failure rather than an unscoped fallback. No separate workaround is described in the available sources, and interim compensating measures are not documented; until patched builds are deployed, treat scope-restricted client keys as potentially able to consume out-of-scope account quota on retry and audit video job account selection for cross-scope failovers. Advisory references: https://vuldb.com/vuln/432920, https://vuldb.com/cve/CVE-2026-124574, https://github.com/chenyme/grok2api/releases/tag/v3.1.7.
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
grok2api is a Go service that fronts a pool of upstream Grok/xAI accounts and brokers client requests against per-account quotas, tiers and provider scopes. Client keys carry an AccountScope (ProviderScope such as web-only, and TierScope such as free/basic versus super/premium), and the normal creation path in CreateVideoJob enforces it via selectSchedulableEligibleMediaRouteWithQuotaMode. The flaw maps to CWE-285 (Improper Authorization): the authorization decision is made once, when the job is created, but is not re-evaluated when the retry handler in backend/internal/application/gateway/video.go calls beginSelectionSession without passing the key's scope, causing the replacement search to fall back to the unscoped account pool. The upstream fix adds a client-key lookup in runVideoJob and a new beginSelectionSessionForKey(..., accountScope) entry point, and it fails the job with client_key_unavailable if the key cannot be loaded; the accompanying test asserts that a key restricted to Super-tier web accounts never fails over to an available Free-tier account, and that a worker shutdown during the key lookup leaves the job lease intact for recovery rather than finalizing it.
Know when Grok2Api 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:L/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
Remote low-complexity trigger but needs a valid scope-restricted client key (PR:L); impact limited to crossing the authorization boundary and consuming an out-of-scope account's quota (C/I/A Low).
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.org
A vulnerability was determined in chenyme grok2api up to 3.1.6. This vulnerability affects the function beginSelectionSession of the file backend/internal/application/gateway/video.go of the component Video Job Retry Handler. This manipulation causes improper authorization. It is possible to initiate the attack remotely. The exploit has been publicly disclosed and may be utilized. Upgrading to version 3.1.7 is able to resolve this issue. Patch name: 199b3abecc14907176dae1f1cacf125419caa94d. It is suggested to upgrade the affected component.
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
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Billing evasion in chenyme grok2api through 3.1.6 lets an authenticated client key with STT/voice capability avoid charg
Idle voice/STT WebSocket sessions in chenyme grok2api up to 3.1.6 can be left open after the server's request timeout fi
EUVD-2026-119862
NVD
CVE.org
GitHub
VulDB
Exploit-DB