{"answers":{"affected":"8 open source packages ship an affected version, including turbo_boost-commands and @turbo-boost/commands. It affects 1 product.","exploited":"There is no known exploitation of CVE-2024-28181 in the wild and no public exploit code.","fix":"Upgrade turbo_boost-commands to a fixed version for your release line: 0.1.3 or 0.2.2.","what":"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."},"fix_prompt":"Check this codebase for CVE-2024-28181 and fix it if it is affected.\n\nWhat it is: 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.\nExploitation: There is no known exploitation of CVE-2024-28181 in the wild and no public exploit code.\n\nAffected packages and fixed versions:\n- turbo_boost-commands (RubyGems): affected all versions; fixed in 0.1.3\n- turbo_boost-commands (RubyGems): affected all versions; fixed in 0.1.3\n- turbo_boost-commands (RubyGems): affected from 0.2.0; fixed in 0.2.2\n- turbo_boost-commands (RubyGems): affected from 0.2.0; fixed in 0.2.2\n- @turbo-boost/commands (npm): affected all versions; fixed in 0.1.3\n- @turbo-boost/commands (npm): affected all versions; fixed in 0.1.3\n- @turbo-boost/commands (npm): affected from 0.2.0; fixed in 0.2.2\n- @turbo-boost/commands (npm): affected from 0.2.0; fixed in 0.2.2\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2024-28181/ (Markdown: https://insights.sbomify.com/CVE-2024-28181/index.md)","id":"CVE-2024-28181","markdown":"https://insights.sbomify.com/CVE-2024-28181/index.md","name":"CVE-2024-28181","record":{"aliases":["GHSA-mp76-7w5v-pr75"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Ruby on Rails library","requires_auth":"none","summary":"An attacker can invoke unauthorized methods in TurboBoost Commands due to insufficient validation, potentially leading to arbitrary code execution.","user_interaction":"not_required","vuln_class":"code_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[{"product":"turboboost_commands","vendor":"turboboost_commands_project"}],"cvss":{"score":8.1,"severity":"high","source":"cna","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-74","name":"Improper Neutralization of Special Elements in Output Used by a Downstream Component"}],"description":"turbo_boost-commands is a set of commands to help you build robust reactive applications with Rails \u0026 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.","ecosystems":["RubyGems","npm"],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":true,"headline":"Arbitrary method invocation turbo_boost-commands","id":"CVE-2024-28181","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"code_injection","year":"2024"},"n_packages":8,"n_references":2,"next":{"headline":"Reading unbounded number of HTTP/2 CONTINUATION frames to cause excessive CPU usage","id":"CVE-2024-28182"},"packages":[{"ecosystem":"RubyGems","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"turbo_boost-commands","purl":null,"source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"RubyGems","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"turbo_boost-commands","purl":"pkg:gem/turbo_boost-commands","source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"RubyGems","fixed":["0.2.2"],"introduced":["0.2.0"],"last_affected":[],"package":"turbo_boost-commands","purl":null,"source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"RubyGems","fixed":["0.2.2"],"introduced":["0.2.0"],"last_affected":[],"package":"turbo_boost-commands","purl":"pkg:gem/turbo_boost-commands","source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"npm","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"@turbo-boost/commands","purl":null,"source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"npm","fixed":["0.1.3"],"introduced":["0"],"last_affected":[],"package":"@turbo-boost/commands","purl":"pkg:npm/%40turbo-boost/commands","source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"npm","fixed":["0.2.2"],"introduced":["0.2.0"],"last_affected":[],"package":"@turbo-boost/commands","purl":null,"source":"GHSA-mp76-7w5v-pr75"},{"ecosystem":"npm","fixed":["0.2.2"],"introduced":["0.2.0"],"last_affected":[],"package":"@turbo-boost/commands","purl":"pkg:npm/%40turbo-boost/commands","source":"GHSA-mp76-7w5v-pr75"}],"prev":{"headline":"Go JOSE vulnerable to Improper Handling of Highly Compressed Data (Data Amplification)","id":"CVE-2024-28180"},"products":["turbo_boost-commands"],"published":"2024-03-14","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":"no","exploitation":"none","technical_impact":"total"},"state":"PUBLISHED","updated":"2024-08-02","vendors":["hopsoft"]},"summary":"An attacker can invoke unauthorized methods in TurboBoost Commands due to insufficient validation, potentially leading to arbitrary code execution.","url":"https://insights.sbomify.com/CVE-2024-28181/"}