{"id":"CVE-2021-43840","published":"2021-12-17T18:15:11Z","modified":"2024-08-04T04:10:16Z","title":"Path traversal in message_bus","vendor":"discourse","product":"message_bus","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":4.4,"severity":"MEDIUM","version":"3.1","vector":"CVSS:3.1/AV:N/AC:H/PR:H/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01947,"percentile":0.80717,"provenance":"source"},"cwes":[{"id":"CWE-22","name":"Improper Limitation of a Pathname to a Restricted Directory"}],"references":[{"url":"https://github.com/discourse/message_bus/security/advisories/GHSA-xmgj-5fh3-xjmm","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/discourse/message_bus/commit/9b6deee01ed474c7e9b5ff65a06bb0447b4db2ba","tags":["x_refsource_MISC"]}],"priority":{"score":19.2,"factors":[{"name":"EPSS percentile","points":16.14},{"name":"CVSS severity","points":3.08}]},"vendorSlug":"discourse","affectedVersions":[{"vendor":"discourse","product":"message_bus","versions":["< 3.3.7"]}],"affected":[{"ecosystem":"RubyGems","package":"message_bus","vulnerableRanges":["<3.3.7"],"patched":["3.3.7"],"from":["GHSA-xmgj-5fh3-xjmm"],"provenance":"source"}],"summary":{"text":"The flaw is a path traversal bug in the diagnostics feature of Discourse's message_bus, a messaging bus for Ruby processes and web clients, affecting versions prior to 3.3.7 when diagnostics are enabled (off by default). An attacker who can reach the diagnostic route with high privileges (and who is not limited by a proxy such as Nginx with merge_slashes enabled, which caps traversal at three directory levels) can read secret information from the host; the fix is in 3.3.7, and users who cannot upgrade should disable MessageBus::Diagnostics.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T20:34:53Z"},"euvd":{"id":"EUVD-2021-2612","exploited":false,"provenance":"source"}}