lobe-chat: Server-Side Request Forgery
CVE-2024-32964 is a critical-severity server-side request forgery vulnerability in lobe-chat from Lobehub, with a CVSS 3.1 base score of 9.0 out of 10. It can be exploited remotely over the network by an attacker with administrator privileges, without any action from a user. The record lists version 0.150.6 as the first without the flaw, so updating lobe-chat to that release or later removes the exposure. There is no confirmed exploitation so far. EPSS estimates a 52.7% chance of exploitation within 30 days, which is in the top 1.01% of all scored CVEs.
Exploitation in the next 30 days is more likely than not, according to EPSS.
What to do
- Update lobe-chat to 0.150.6 or a later version.
- Read the advisory on github.com for workarounds and exact fixed builds.
Affected products and versions
Version data comes from the organisation that assigned the CVE. Confirm against the vendor advisory before deciding you are unaffected.
How the severity score breaks down
- Attack vector
- NetworkCan be exploited remotely over a network, including the internet.
- Attack complexity
- LowNo special conditions are needed; the attack works reliably.
- Privileges required
- HighAdministrator-level access is required first.
- User interaction
- NoneNo action by a victim is required.
- Scope
- ChangedThe attack can reach beyond the vulnerable component into other systems.
- Confidentiality
- HighAll data handled by the component can be read.
- Integrity
- LowLimited modification of data is possible.
- Availability
- HighThe component can be taken down completely.
Vector: CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:C/C:H/I:L/A:H. Scored by CNA (github.com).
Official description
Lobe Chat is a chatbot framework that supports speech synthesis, multimodal, and extensible Function Call plugin system. Prior to 0.150.6, lobe-chat had an unauthorized Server-Side Request Forgery vulnerability in the /api/proxy endpoint. An attacker can construct malicious requests to cause Server-Side Request Forgery without logging in, attack intranet services, and leak sensitive information.
Source: the CVE record as published by its numbering authority, via NVD and CVE.org.
The underlying weakness: Server-Side Request Forgery
The web server receives a URL or similar request from an upstream component and retrieves the contents of this URL, but it does not sufficiently ensure that the request is being sent to the expected destination.
How developers prevent this class of flaw
- If there is a known list of applications, IP, hostname, and/or domains to which the product is allowed to communicate, then use allowlists to ensure that outgoing requests are restricted to these known entities. The allowlists could be in the application code or possibly enforced by firewalls or network segmentation.
- If the product is expected to be able to connect to arbitrary IP addresses or domains, consider using a denylist that includes private network addresses, internal domain names, etc. The denylist could be in the application code or possibly enforced by firewalls or network segmentation.
Timeline
- CISA published its SSVC assessment (exploitation: poc, automatable: no, technical impact: partial).
- CVE record published.
- Record last changed materially (score, affected products, status or references).
References
Advisories
Patches and release notes
Other vulnerabilities in lobe-chat
- 7.6 High severity
- 8.6 High severity
- 8.8 High severity
Recent Server-Side Request Forgery vulnerabilities
- 7.5 High severity
- 7.2 High severity
- 9.6 Critical severity
- 7.2 High severity
- 9.8 Critical severity
- 8.3 High severity
Spotted an error? Tell us.