CVE-2025-0741

5.8 MEDIUM

📋 TL;DR

An authenticated attacker can write messages into other users' chat sessions by manipulating the 'chat_id' parameter in EmbedAI's chat functionality. This affects all users of EmbedAI version 2.1 and earlier who have authenticated access to the system.

💻 Affected Systems

Products:
  • EmbedAI
Versions: 2.1 and below
Operating Systems: All
Default Config Vulnerable: ⚠️ Yes
Notes: All deployments of affected versions are vulnerable if the chat functionality is enabled.

📦 What is this software?

⚠️ Risk & Real-World Impact

🔴

Worst Case

Attackers could impersonate other users, inject malicious content, disrupt legitimate conversations, or conduct social engineering attacks through unauthorized message injection.

🟠

Likely Case

Unauthorized message injection leading to confusion, misinformation, or minor disruption of chat functionality among users.

🟢

If Mitigated

Proper access controls would prevent unauthorized chat_id manipulation, limiting users to their own chat sessions only.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ✅ No
Complexity: LOW

Requires authenticated access but exploitation is straightforward via parameter manipulation.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: Version 2.2 or later

Vendor Advisory: https://www.incibe.es/en/incibe-cert/notices/aviso/multiple-vulnerabilities-embedai

Restart Required: Yes

Instructions:

1. Download EmbedAI version 2.2 or later from official sources. 2. Backup current installation. 3. Apply the update following vendor instructions. 4. Restart the EmbedAI service.

🔧 Temporary Workarounds

Implement server-side chat_id validation

all

Add server-side validation to ensure users can only send messages to their own chat sessions

Disable chat functionality

all

Temporarily disable the vulnerable chat endpoint until patching is possible

🧯 If You Can't Patch

  • Implement strict access controls at the application layer to validate user-chat ownership
  • Monitor chat logs for unauthorized message injection attempts and implement rate limiting

🔍 How to Verify

Check if Vulnerable:

Test if authenticated users can send messages to other users' chat sessions by manipulating the chat_id parameter in POST requests to /embedai/chats/send_message

Check Version:

Check EmbedAI version in admin panel or configuration files

Verify Fix Applied:

After patching, verify that chat_id parameter manipulation no longer allows sending messages to unauthorized chat sessions

📡 Detection & Monitoring

Log Indicators:

  • Multiple chat_id values from single user session
  • Rapid chat_id parameter changes in POST requests
  • Messages appearing in chats from unauthorized users

Network Indicators:

  • POST requests to /embedai/chats/send_message with manipulated chat_id parameters
  • Unusual chat message patterns

SIEM Query:

source="web_logs" AND uri_path="/embedai/chats/send_message" AND user_id!=chat_id

🔗 References

📤 Share & Export