Auth bypass in Khoj-Ai Khoj
CVE-2024-52294
Khoj is a self-hostable artificial intelligence app. Prior to version 1.29.10, an Insecure Direct Object Reference (IDOR) vulnerability in the update_subscription endpoint allows any authenticated user to manipulate other users' Stripe subscriptions by simply modifying the email parameter in the request. The vulnerability exists in the subscription endpoint at `/api/subscription`. The endpoint uses an email parameter as a direct reference to user subscriptions without verifying object ownership. While authentication is required, there is no authorization check to verify if the authenticated user owns the referenced subscription. The issue was fixed in version 1.29.10. Support for arbitrarily presenting an email for update has been deprecated.
Vulnerability class: IDOR (Insecure Direct Object Reference)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 4.3 (Medium). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N.
EPSS exploit prediction
EPSS: 0.004 (29.6th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 30th percentile — 29.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.004 · change: 0.000
Affected products
- Khoj-Ai Khoj — versions < 1.29.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2024-52294?
- CVE-2024-52294 is a medium-severity vulnerability in Khoj-Ai Khoj, classified under Authorization Bypass Through User-Controlled Key. CVSS score: 4.3/10. Published 2024-12-30.
- How severe is CVE-2024-52294?
- Medium severity. CVSS v3 base score is 4.3 out of 10.