CONTENTUM.COMA specialist. A plan. A result.

Vulnerabilities · 2021 · Discourse

CVE-2021-43840
Discourse Message Bus vulnerability

message_bus is a messaging bus for Ruby processes and web clients. In versions prior to 3.3.7 users who deployed message bus with diagnostics features enabled (default off) are vulnerable to a path traversal bug, which could lead to disclosure of secret information on a machine if an unintended user were to gain access to the diagnostic route. The impact is also greater if there is no proxy for your web application as the number of steps up the directories is not bounded. For deployments which uses a proxy, the impact varies. For example, If a request goes through a proxy like Nginx with `merge_slashes` enabled, the number of steps up the directories that can be read is limited to 3 levels. This issue has been patched in version 3.3.7. Users unable to upgrade should ensure that MessageBus::Diagnostics is disabled.

Affected products

Message Bus. The exact versions are in the references.

What to do now

  • Check your exposureFind out whether Discourse Message Bus runs anywhere in your environment, including systems of suppliers.
  • UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
  • Set the orderSystems that can be reached from the internet come first, then the rest.

References

More vulnerabilities in Discourse products

Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.