CVE-2024-8057

4.3 MEDIUM

📋 TL;DR

In Danswer AI version 0.4.1, unauthenticated attackers can sign up as basic users and create credentials linked to existing connectors, which should be restricted to admin users. This allows excessive resource consumption leading to potential Denial of Service (DoS) and system instability. All deployments using the vulnerable version are affected.

💻 Affected Systems

Products:
  • danswer-ai/danswer
Versions: 0.4.1
Operating Systems: all
Default Config Vulnerable: ⚠️ Yes
Notes: Only affects deployments with user registration enabled and connector functionality.

⚠️ Manual Verification Required

This CVE does not have specific version information in our database, so automatic vulnerability detection cannot determine if your system is affected.

Why? The CVE database entry doesn't specify which versions are vulnerable (no version ranges provided by the vendor/NVD).

🔒 Custom verification scripts are available for registered users. Sign up free to download automated test scripts.

Recommended Actions:
  1. Review the CVE details at NVD
  2. Check vendor security advisories for your specific version
  3. Test if the vulnerability is exploitable in your environment
  4. Consider updating to the latest version as a precaution

⚠️ Risk & Real-World Impact

🔴

Worst Case

Complete system outage through resource exhaustion DoS, potential data corruption, and unauthorized access to connector configurations.

🟠

Likely Case

Performance degradation, increased resource costs, and potential service disruption from excessive credential creation.

🟢

If Mitigated

Minimal impact with proper authentication and authorization controls preventing unauthorized credential creation.

🌐 Internet-Facing: HIGH
🏢 Internal Only: MEDIUM

🎯 Exploit Status

Public PoC: ✅ No
Weaponized: LIKELY
Unauthenticated Exploit: ⚠️ Yes
Complexity: LOW

Exploitation requires only basic user registration and API/web interface access.

🛠️ Fix & Mitigation

✅ Official Fix

Patch Version: 0.4.2 or later

Vendor Advisory: https://huntr.com/bounties/b5991b98-a721-4acd-8ef2-980e15682913

Restart Required: Yes

Instructions:

1. Update to Danswer version 0.4.2 or later. 2. Restart the Danswer service. 3. Verify user permissions are properly enforced.

🔧 Temporary Workarounds

Disable user registration

all

Temporarily disable new user registration to prevent unauthorized access.

Modify Danswer configuration to disable user registration feature

Restrict connector API access

all

Implement network-level restrictions to connector management endpoints.

Configure firewall rules to restrict access to connector APIs from non-admin IPs

🧯 If You Can't Patch

  • Implement strict rate limiting on credential creation endpoints
  • Deploy web application firewall with credential creation pattern detection

🔍 How to Verify

Check if Vulnerable:

Check if running Danswer version 0.4.1 and test if basic users can create credentials linked to existing connectors.

Check Version:

Check Danswer version in application interface or deployment configuration.

Verify Fix Applied:

After updating, verify basic users cannot create credentials linked to existing connectors and only admin users have this privilege.

📡 Detection & Monitoring

Log Indicators:

  • Multiple credential creation events from basic user accounts
  • Unusual spike in API calls to connector endpoints
  • User privilege escalation attempts

Network Indicators:

  • High volume of POST requests to credential creation endpoints
  • Unusual authentication patterns from new user accounts

SIEM Query:

source="danswer" AND (event="credential_creation" OR event="connector_modification") AND user_role="basic"

🔗 References

📤 Share & Export