CVE-2024-52294 json
khoj has an IDOR in subscription management that allows unauthorized subscription modifications
published 2024-12-30 22 mo ago modified 2026-09-10 1 mo ago also EUVD-2024-3591 , GHSA-hq4h-w933-jm6c , PYSEC-2026-1493
- cvss
- 4.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.4%
- EPSS 0.4% chance of exploitation in 30 days, percentile 33%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- no
- Technical impact
- partial
- Assessed
- 22 mo ago
Exploit prediction
0.39% chance of exploitation in the next 30 days, higher than 33% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/khoj-ai/khoj/security/advisories/GHSA-hq4h-w933-jm6c referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| GitHub | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
| OSV | 3.1 | 4.3 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | khoj | <1.29.0 |
1.29.0 |
Affected products
- khoj-ai khoj
Classification
- Weakness
-
- CWE-639 Authorization Bypass Through User-Controlled Key
References
-
github.com
/khoj-ai/khoj/commit/47d3c8c23597900af708bdc60aced3ae5d2064c1
web
-
github.com
/khoj-ai/khoj/security/advisories/GHSA-hq4h-w933-jm6c
exploit, web
-
nvd.nist.gov
/vuln/detail/CVE-2024-52294
advisory
-
github.com
/khoj-ai/khoj
package
-
pypi.org
/project/khoj
package
-
github.com
/advisories/GHSA-hq4h-w933-jm6c
advisory
Sources
- CVE List CVE-2024-52294
- GitHub Advisory GHSA-hq4h-w933-jm6c
- NVD CVE-2024-52294
- OSV PYSEC-2026-1493
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.
CPEs and fixed versions use Anchore's correction of NVD's data: Added CPE configurations because not yet analyzed by NVD.