Vulnerability · Published Dec 30, 2024 · Assigned by GitHub_M

CVE-2024-52294khoj has an IDOR in subscription management that allows unauthorized subscription modifications

Medium 4.3

In plain English

A medium-severity authorization bypass via user-controlled key in khoj from khoj-ai. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 33% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)4.3Medium
Exploit odds (30 days)0.4%top 66.6% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official description

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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
PyPIkhoj1.29.0GHSA-hq4h-w933-jm6c
PyPIkhoj1.29.0PYSEC-2026-1493

Affected products (as reported)

VendorProductVersions
khoj-ai khoj < 1.29.0

Weakness: CWE-639 · Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N

References