CVE-2022-39241 Possible Server-Side Request Forgery (SSRF) in webhooks
A malicious admin can perform Server-Side Request Forgery to enumerate ports and access internal or external hosts via webhooks.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-39241?
CVE-2022-39241 is a high-severity server-side request forgery vulnerability in Discourse Discourse, published on 2 Nov 2022. An attacker needs administrator access to exploit it, with no action from the victim.
Official description
Discourse is a platform for community discussion. A malicious admin could use this vulnerability to perform port enumeration on the local host or other hosts on the internal network, as well as against hosts on the Internet. Latest `stable`, `beta`, and `test-passed` versions are now patched. As a workaround, self-hosters can use `DISCOURSE_BLOCKED_IP_BLOCKS` env var (which overrides `blocked_ip_blocks` setting) to stop webhooks from accessing private IPs.
Weakness: CWE-918
Which versions are affected by CVE-2022-39241?
1 open source package ship an affected version, including discourse. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
discourse Bitnami | All versions | 2.8.10 |
Products include Discourse Discourse.
How do I fix CVE-2022-39241?
Upgrade discourse to 2.8.10 or later.
Upgrade, and send outbound requests through an allow-list that blocks internal addresses. More about Server-side request forgery.
Is CVE-2022-39241 being exploited?
There is no known exploitation of CVE-2022-39241 in the wild and no public exploit code.
Other vulnerabilities in Discourse Discourse
- CVE-2021-41163 RCE via malicious SNS subscription payload
- CVE-2022-36066 Discourse vulnerable to RCE via admins uploading maliciously zipped file
- CVE-2022-39356 Discourse user account takeover via email and invite link
- CVE-2023-22468 Discourse vulnerable to Cross-site Scripting in local oneboxes
- CVE-2026-27934 Discourse leaks private topic title and post excerpt via user action API endpoint
Sources
Also known as BIT-discourse-2022-39241, GHSA-rcc5-28r3-23rr.