CVE-2024-25639 Vulnerability Analysis & Exploit Details

CVE-2024-25639
Vulnerability Scoring

7.5
/10
Very High Risk

Highly exploitable, CVE-2024-25639 poses a critical security risk that could lead to severe breaches.

Attack Complexity Details

  • Attack Complexity: High
    Exploits require significant effort and special conditions.
  • Attack Vector: Network
    Vulnerability is exploitable over a network without physical access.
  • Privileges Required: None
    No privileges are required for exploitation.
  • Scope: Unchanged
    Exploit remains within the originally vulnerable component.
  • User Interaction: Required
    User interaction is necessary for successful exploitation.

CVE-2024-25639 Details

Status: Analyzed

Last updated: 🕝 22 Aug 2024, 14:59 UTC
Originally published on: 🕒 08 Jul 2024, 15:15 UTC

Time between publication and last update: 44 days

CVSS Release: version 3

CVSS3 Source

nvd@nist.gov

CVSS3 Type

Primary

CVSS3 Vector

CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H

CVE-2024-25639 Vulnerability Summary

CVE-2024-25639: Khoj is an application that creates personal AI agents. The Khoj Obsidian, Desktop and Web clients inadequately sanitize the AI model's response and user inputs. This can trigger Cross Site Scripting (XSS) via Prompt Injection from untrusted documents either indexed by the user on Khoj or read by Khoj from the internet when the user invokes the /online command. This vulnerability is fixed in 1.13.0.

Assessing the Risk of CVE-2024-25639

Access Complexity Graph

The exploitability of CVE-2024-25639 depends on two key factors: attack complexity (the level of effort required to execute an exploit) and privileges required (the access level an attacker needs).

Exploitability Analysis for CVE-2024-25639

CVE-2024-25639 presents a challenge to exploit due to its high attack complexity, but the absence of privilege requirements still makes it a viable target for skilled attackers. A thorough security review is advised.

Understanding AC and PR

A lower complexity and fewer privilege requirements make exploitation easier. Security teams should evaluate these aspects to determine the urgency of mitigation strategies, such as patch management and access control policies.

Attack Complexity (AC) measures the difficulty in executing an exploit. A high AC means that specific conditions must be met, making an attack more challenging, while a low AC means the vulnerability can be exploited with minimal effort.

Privileges Required (PR) determine the level of system access necessary for an attack. Vulnerabilities requiring no privileges are more accessible to attackers, whereas high privilege requirements limit exploitation to authorized users with elevated access.

CVSS Score Breakdown Chart

Above is the CVSS Sub-score Breakdown for CVE-2024-25639, illustrating how Base, Impact, and Exploitability factors combine to form the overall severity rating. A higher sub-score typically indicates a more severe or easier-to-exploit vulnerability.

CIA Impact Analysis

Below is the Impact Analysis for CVE-2024-25639, showing how Confidentiality, Integrity, and Availability might be affected if the vulnerability is exploited. Higher values usually signal greater potential damage.

  • Confidentiality: High
    Exploiting CVE-2024-25639 can result in unauthorized access to sensitive data, severely compromising data privacy.
  • Integrity: High
    CVE-2024-25639 could allow unauthorized modifications to data, potentially affecting system reliability and trust.
  • Availability: High
    CVE-2024-25639 can disrupt system operations, potentially causing complete denial of service (DoS).

Exploit Prediction Scoring System (EPSS)

The EPSS score estimates the probability that this vulnerability will be exploited in the near future.

EPSS Score: 0.105% (probability of exploit)

EPSS Percentile: 44.8% (lower percentile = lower relative risk)
This vulnerability is less risky than approximately 55.2% of others.

CVE-2024-25639 References

External References

CWE Common Weakness Enumeration

CWE-80

CAPEC Common Attack Pattern Enumeration and Classification

  • XSS Targeting Non-Script Elements CAPEC-18 This attack is a form of Cross-Site Scripting (XSS) where malicious scripts are embedded in elements that are not expected to host scripts such as image tags (<img>), comments in XML documents (< !-CDATA->), etc. These tags may not be subject to the same input validation, output validation, and other content filtering and checking routines, so this can create an opportunity for an adversary to tunnel through the application's elements and launch a XSS attack through other elements. As with all remote attacks, it is important to differentiate the ability to launch an attack (such as probing an internal network for unpatched servers) and the ability of the remote adversary to collect and interpret the output of said attack.
  • PHP Remote File Inclusion CAPEC-193 In this pattern the adversary is able to load and execute arbitrary code remotely available from the application. This is usually accomplished through an insecurely configured PHP runtime environment and an improperly sanitized "include" or "require" call, which the user can then control to point to any web-accessible file. This allows adversaries to hijack the targeted application and force it to execute their own instructions.
  • XSS Through HTTP Query Strings CAPEC-32 An adversary embeds malicious script code in the parameters of an HTTP query string and convinces a victim to submit the HTTP request that contains the query string to a vulnerable web application. The web application then procedes to use the values parameters without properly validation them first and generates the HTML code that will be executed by the victim's browser.
  • XSS Through HTTP Headers CAPEC-86 An adversary exploits web applications that generate web content, such as links in a HTML page, based on unvalidated or improperly validated data submitted by other actors. XSS in HTTP Headers attacks target the HTTP headers which are hidden from most users and may not be validated by web applications.

Vulnerable Configurations

  • cpe:2.3:a:khoj:khoj:0.1.6:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.1.6:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.1.7:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.1.7:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.1.8:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.1.8:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.1.9:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.1.9:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.2.5:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.2.5:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.2.6:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.2.6:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.7.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.7.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.8.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.8.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.8.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.8.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.9.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.10.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.10.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.10.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.10.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.11.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.11.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.11.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.11.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.11.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.11.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.11.3:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.11.3:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.11.4:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.11.4:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.12.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.12.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.12.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.12.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.12.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.12.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.12.3:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.12.3:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.13.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.13.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:0.14.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:0.14.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.0.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.0.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.0.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.0.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.1.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.1.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.2.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.2.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.2.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.2.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.3.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.3.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.4.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.4.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.5.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.5.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.5.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.5.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.6.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.6.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.6.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.6.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.6.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.6.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.7.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.7.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.8.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.8.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.9.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.9.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.10.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.10.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.10.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.10.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.10.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.10.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.11.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.11.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.11.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.11.1:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.11.2:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.11.2:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.12.0:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.12.0:*:*:*:*:*:*:*
  • cpe:2.3:a:khoj:khoj:1.12.1:*:*:*:*:*:*:*
    cpe:2.3:a:khoj:khoj:1.12.1:*:*:*:*:*:*:*

Protect Your Infrastructure against CVE-2024-25639: Combat Critical CVE Threats

Stay updated with real-time CVE vulnerabilities and take action to secure your systems. Enhance your cybersecurity posture with the latest threat intelligence and mitigation techniques. Develop the skills necessary to defend against CVEs and secure critical infrastructures. Join the top cybersecurity professionals safeguarding today's infrastructures.

Other 5 Recently Published CVEs Vulnerabilities

  • CVE-2025-26205 – Lua 5.4.7, when the debug library is used, has a out-of-bounds read and segmentation violation in mainpositionTV in ltable.c. NOTE: this is dispute...
  • CVE-2025-26204 – Lua 5.4.7, when the debug library is used, has a out-of-bounds read and segmentation violation in equalkey in ltable.c. NOTE: this is disputed beca...
  • CVE-2025-2129 – A vulnerability was found in Mage AI 0.9.75. It has been classified as problematic. This affects an unknown part. The manipulation leads to insecur...
  • CVE-2025-2127 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla. It has been classified as problematic. Affected is an unknown function of th...
  • CVE-2025-2126 – A vulnerability was found in JoomlaUX JUX Real Estate 3.4.0 on Joomla and classified as critical. This issue affects some unknown processing of the...