Headline
CVE-2021-41163: RCE via malicious SNS subscription payload
Discourse is an open source platform for community discussion. In affected versions maliciously crafted requests could lead to remote code execution. This resulted from a lack of validation in subscribe_url values. This issue is patched in the latest stable, beta and tests-passed versions of Discourse. To workaround the issue without updating, requests with a path starting /webhooks/aws path could be blocked at an upstream proxy.
Package
Discourse (Discourse)
Affected versions
stable <= 2.7.8; beta <= 2.8.0.beta6; tests-passed <= 2.8.0.beta6
Patched versions
stable >= 2.7.9; beta >= 2.8.0.beta7; tests-passed >= 2.8.0.beta7
Description
Impact
A validation bug in the upstream aws-sdk-sns gem can lead to RCE in Discourse via a maliciously crafted request.
Patches
This issue is patched in the latest stable, beta and tests-passed versions of Discourse.
Workarounds
To workaround the issue without updating, requests with a path starting /webhooks/aws could be blocked at an upstream proxy.