{"id":"CVE-2024-52294","published":"2024-12-30T16:14:35Z","modified":"2024-12-30T16:52:29Z","title":"khoj has an IDOR in subscription management that allows unauthorized subscription modifications","vendor":"khoj-ai","product":"khoj","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.3,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00391,"percentile":0.34124,"provenance":"source"},"cwes":[{"id":"CWE-639","name":"Authorization Bypass Through User-Controlled Key"}],"references":[{"url":"https://github.com/khoj-ai/khoj/security/advisories/GHSA-hq4h-w933-jm6c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/khoj-ai/khoj/commit/47d3c8c23597900af708bdc60aced3ae5d2064c1","tags":["x_refsource_MISC"]}],"priority":{"score":9.8,"factors":[{"name":"EPSS percentile","points":6.82},{"name":"CVSS severity","points":3.01}]},"vendorSlug":"khoj-ai","affectedVersions":[{"vendor":"khoj-ai","product":"khoj","versions":["< 1.29.0"]}],"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial","timestamp":"2024-12-30T16:52:16.974619Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"khoj","vulnerableRanges":["<1.29.0"],"patched":["1.29.0"],"from":["GHSA-hq4h-w933-jm6c","PYSEC-2026-1493"],"provenance":"source"}],"summary":{"text":"The khoj self-hostable AI app, prior to version 1.29.10, contains an Insecure Direct Object Reference in the subscription endpoint at /api/subscription, where the update_subscription function uses a user-supplied email parameter to select a subscription without checking ownership. An attacker needs only a valid authenticated account and no user interaction or special configuration, and by changing the email parameter in a request they can modify other users' Stripe subscriptions.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T22:07:52Z"},"euvd":{"id":"EUVD-2024-3591","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2024-43396","published":"2024-08-20","fixed":"1.15.0","kev":false,"link":{"from":"CVE-2024-43396","to":"CVE-2024-52294","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:khoj","fromFixed":"1.15.0","toFixed":"1.29.0","daysApart":132}]}},{"cve":"CVE-2024-52294","published":"2024-12-30","fixed":"1.29.0","kev":false}],"package":"PyPI:khoj"}}