CVE-2024-28181 Arbitrary method invocation turbo_boost-commands
An attacker can invoke unauthorized methods in TurboBoost Commands due to insufficient validation, potentially leading to arbitrary code execution.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-28181?
CVE-2024-28181 is a high-severity code injection vulnerability in hopsoft turbo_boost-commands, published on 14 Mar 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
turbo_boost-commands is a set of commands to help you build robust reactive applications with Rails & Hotwire. TurboBoost Commands has existing protections in place to guarantee that only public methods on Command classes can be invoked; however, the existing checks aren't as robust as they should be. It's possible for a sophisticated attacker to invoke more methods than should be permitted depending on the the strictness of authorization checks that individual applications enforce. Being able to call some of these methods can have security implications. Commands verify that the class must be a `Command` and that the method requested is defined as a public method; however, this isn't robust enough to guard against all unwanted code execution. The library should more strictly enforce which methods are considered safe before allowing them to be executed. This issue has been addressed in versions 0.1.3, and 0.2.2. Users are advised to upgrade. Users unable to upgrade should see the repository GHSA for workaround advice.
Weakness: CWE-74
Which versions are affected by CVE-2024-28181?
8 open source packages ship an affected version, including turbo_boost-commands and @turbo-boost/commands. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
turbo_boost-commands RubyGems | All versions | 0.1.3 |
turbo_boost-commands RubyGems | All versions | 0.1.3 |
turbo_boost-commands RubyGems | From 0.2.0 | 0.2.2 |
turbo_boost-commands RubyGems | From 0.2.0 | 0.2.2 |
@turbo-boost/commands npm | All versions | 0.1.3 |
@turbo-boost/commands npm | All versions | 0.1.3 |
2 more packages
@turbo-boost/commands npm | From 0.2.0 | 0.2.2 |
@turbo-boost/commands npm | From 0.2.0 | 0.2.2 |
Products include Turboboost Commands Project Turboboost Commands.
How do I fix CVE-2024-28181?
Upgrade turbo_boost-commands to a fixed version for your release line: 0.1.3 or 0.2.2.
Upgrade, and never evaluate templates, expressions or code built from user input. More about Code injection.
Is CVE-2024-28181 being exploited?
There is no known exploitation of CVE-2024-28181 in the wild and no public exploit code.
Sources
Also known as GHSA-mp76-7w5v-pr75.