6.6 MEDIUM
- CVSS version (CVSS): 3.1
- Attack Vector (AV): Network (N)
- Attack Complexity (AC): High (H)
- Privileges Required (PR): High (H)
- User Interaction (UI): None (N)
- Scope (S): Unchanged (U)
- Confidentiality (C): High (H)
- Integrity (I): High (H)
- Availability (A): High (H)
- Modified Attack Vector (MAV): Network (N)
- Modified Attack Complexity (MAC): High (H)
- Modified Privileges Required (MPR): High (H)
- Modified User Interaction (MUI): None (N)
- Modified Confidentiality (MC): High (H)
- Modified Scope (MS): Unchanged (U)
- Modified Integrity (MI): High (H)
- Modified Availability (MA): High (H)
Activity log
- Created & dismissed (no matching packages found) suggestion
EMQX: Stale plugins allow grants amplify a compromised admin/API key to remote code execution
EMQX is a scalable and reliable MQTT broker for AI, IoT, IIoT, and connected vehicles. Prior to versions 5.8.11, 5.9.3, 5.10.4, 6.0.3, 6.1.2, and 6.2.1, the plugin-install REST API and dashboard upload accepted stale grants created with emqx ctl plugins allow because there was no five-minute grant lifetime or SHA-256 package binding. An attacker with a compromised dashboard administrator credential or API key with plugin-install permission who finds a stale allowed name and version can upload attacker-controlled bytes under the allowed .tar.gz filename through POST /api/v5/plugins/install or the dashboard plugin upload. The broker then installs and runs attacker-controlled Erlang code with the privileges of the EMQX process. This issue is fixed in versions 5.8.11, 5.9.3, 5.10.4, 6.0.3, 6.1.2, and 6.2.1.
References
-
https://github.com/emqx/emqx/security/advisories/GHSA-cp9x-5qwc-fj6r x_refsource_CONFIRM
-
https://github.com/emqx/emqx/pull/17200 x_refsource_MISC
-
https://github.com/emqx/emqx/pull/17201 x_refsource_MISC
-
https://github.com/emqx/emqx/releases/tag/6.0.3 x_refsource_MISC
-
https://github.com/emqx/emqx/releases/tag/6.1.2 x_refsource_MISC
-
https://github.com/emqx/emqx/releases/tag/6.2.1 x_refsource_MISC
-
https://github.com/emqx/emqx/releases/tag/e5.10.4 x_refsource_MISC
-
https://github.com/emqx/emqx/releases/tag/e5.8.11 x_refsource_MISC
Affected products
- ==>= 6.1.0, < 6.1.2
- ==>= 5.10.0, < 5.10.4
- ==>= 6.2.0, < 6.2.1
- ==>= 5.9.0, < 5.9.3
- ==>= 6.0.0, < 6.0.3
- ==< 5.8.11