CVE-2023-22740 Discourse vulnerable to Allocation of Resources Without Limits via Chat drafts

Medium 4.3 Published Updated

Attackers can cause server denial of service by creating unlimited-length chat drafts or loading excessive drafts, requiring an upgrade to Discourse.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2023-22740?

CVE-2023-22740 is a medium-severity denial of service vulnerability in Discourse Discourse, published on 27 Jan 2023. Any signed-in user can exploit it over the network, with no action from the victim.

Official description

Discourse is an open source platform for community discussion. Versions prior to 3.1.0.beta1 (beta) (tests-passed) are vulnerable to Allocation of Resources Without Limits. Users can create chat drafts of an unlimited length, which can cause a denial of service by generating an excessive load on the server. Additionally, an unlimited number of drafts were loaded when loading the user. This issue has been patched in version 2.1.0.beta1 (beta) and (tests-passed). Users should upgrade to the latest version where a limit has been introduced. There are no workarounds available.

Weakness: CWE-770

Which versions are affected by CVE-2023-22740?

1 open source package ship an affected version, including discourse. It affects 1 product.

PackageAffectedFixed in
discourse BitnamiAll versions3.0.1

Products include Discourse Discourse.

How do I fix CVE-2023-22740?

Upgrade discourse to 3.0.1 or later.

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2023-22740 being exploited?

There is no known exploitation of CVE-2023-22740 in the wild and no public exploit code.

All Discourse Discourse vulnerabilities

Sources

Also known as BIT-discourse-2023-22740, GHSA-pwj4-rf62-p224.

Is CVE-2023-22740 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free