Quick answers
- Is CVE-2024-47066 exploited in the wild?
- No. Junglewise Threat Intelligence has no report of CVE-2024-47066 being exploited in the wild.
- How severe is CVE-2024-47066?
- Low severity, with a CVSS score of 3.1, published 23 September 2024.
- Which products and versions are affected?
- LobeHub Lobe Chat <= 1.19.12; @lobehub/chat (npm) SEMVER:introduced=0,fixed=1.19.13.
- Is there a fix for CVE-2024-47066?
- Yes. @lobehub/chat (npm): upgrade to 1.19.13 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
- How is CVE-2024-47066 attacked?
- It is attacked over the network, in a network appliance.
- Am I affected by CVE-2024-47066?
- Check whether you run LobeHub Lobe Chat or @lobehub/chat (npm) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.
How to fix
- @lobehub/chat (npm): upgrade to 1.19.13 or later
npm install @lobehub/chat@1.19.13
Technical details
A Server-Side Request Forgery (SSRF) vulnerability exists in Lobe Chat's proxy route (`src/app/api/proxy/route.ts`). While the application implemented initial SSRF protections, it failed to account for HTTP redirects. An attacker can provide a URL to a malicious external server that issues a redirect to internal resources, such as loopback addresses (localhost) or private network IPs. This bypasses the existing validation logic, allowing the attacker to probe or interact with internal services. The vulnerability is tracked as an insufficient fix for a previous SSRF issue (CVE-2024-32964). A fix is available in version 1.19.13 which improves redirect handling.
Affected products
- LobeHub Lobe Chat <= 1.19.12
Identifiers
- CVE-2024-47066
- GHSA-3fc8-2r3f-8wrg
Timeline
- 2024-09-23: advisory: GHSA-3fc8-2r3f-8wrg published
- 2024-09-23: patched: Version 1.19.13 released
References
- https://github.com/lobehub/lobe-chat/security/advisories/GHSA-3fc8-2r3f-8wrg
- https://github.com/lobehub/lobe-chat/security/advisories/GHSA-mxhq-xw3g-rphc
- https://github.com/lobehub/lobe-chat/commit/e960a23b0c69a5762eb27d776d33dac443058faf
- https://github.com/lobehub/lobe-chat
- https://github.com/lobehub/lobe-chat/blob/main/src/app/api/proxy/route.ts