{"answers":{"affected":"6 open source packages ship an affected version, including activestorage.","exploited":"It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24293 exists.","fix":"Upgrade activestorage to a fixed version for your release line: 7.1.5.2, 7.2.2.2 or 8.0.2.1.","what":"CVE-2025-24293 is a critical command injection vulnerability in Rails activestorage, published on 30 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2025-24293 and fix it if it is affected.\n\nWhat it is: CVE-2025-24293 is a critical command injection vulnerability in Rails activestorage, published on 30 Jan 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2025-24293 exists.\n\nAffected packages and fixed versions:\n- activestorage (RubyGems): affected from 5.2.0; fixed in 7.1.5.2\n- activestorage (RubyGems): affected from 5.2.0; fixed in 7.1.5.2\n- activestorage (RubyGems): affected from 7.2; fixed in 7.2.2.2\n- activestorage (RubyGems): affected from 7.2; fixed in 7.2.2.2\n- activestorage (RubyGems): affected from 8.0; fixed in 8.0.2.1\n- activestorage (RubyGems): affected from 8.0; fixed in 8.0.2.1\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-2025-24293/ (Markdown: https://insights.sbomify.com/CVE-2025-24293/index.md)","id":"CVE-2025-24293","markdown":"https://insights.sbomify.com/CVE-2025-24293/index.md","name":"CVE-2025-24293","record":{"aliases":["DEBIAN-CVE-2025-24293","GHSA-r4mg-4433-c7g3","UBUNTU-CVE-2025-24293"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby on Rails Active Storage","requires_auth":"none","summary":"Attackers can execute arbitrary commands via unsafe image transformation parameters in Rails Active Storage when using mini_magick.","user_interaction":"not_required","vuln_class":"command_injection"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"hackerone","cpe":[],"cvss":{"score":9.2,"severity":"critical","source":"cna","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N","version":"4.0"},"cwes":[{"id":"CWE-88","name":"Improper Neutralization of Argument Delimiters in a Command"},{"id":"CWE-94","name":"Improper Control of Generation of Code"},{"id":"CWE-77","name":"Improper Neutralization of Special Elements used in a Command"}],"description":"# Active Storage allowed transformation methods potentially unsafe\r\n\r\nActive Storage attempts to prevent the use of potentially unsafe image\r\ntransformation methods and parameters by default.\r\n\r\nThe default allowed list contains three methods allow for the circumvention\r\nof the safe defaults which enables potential command injection\r\nvulnerabilities in cases where arbitrary user supplied input is accepted as\r\nvalid transformation methods or parameters.\r\n\r\n\r\nImpact\r\n------\r\nThis vulnerability impacts applications that use Active Storage with the image_processing processing gem in addition to mini_magick as the image processor.\r\n\r\nVulnerable code will look something similar to this:\r\n```\r\n\u003c%= image_tag blob.variant(params[:t] =\u003e params[:v]) %\u003e\r\n```\r\n\r\nWhere the transformation method or its arguments are untrusted arbitrary input.\r\n\r\nAll users running an affected release should either upgrade or use one of the workarounds immediately.\r\n\r\n\r\n\r\nWorkarounds\r\n-----------\r\nConsuming user supplied input for image transformation methods or their parameters is unsupported behavior and should be considered dangerous.\r\n\r\nStrict validation of user supplied methods and parameters should be performed\r\nas well as having a strong [ImageMagick security\r\npolicy](https://imagemagick.org/script/security-policy.php) deployed.\r\n\r\nCredits\r\n-------\r\n\r\nThank you [lio346](https://hackerone.com/lio346) for reporting this!","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2020-04-05","github_poc":1,"max_poc_stars":0,"metasploit":1,"nuclei":0,"refs":[{"date":"2020-04-05T08:17:56Z","kind":"github_poc","ref":"https://github.com/usutani/study-turbolinks-link","stars":0,"title":"Known security vulnerabilities detected. CVE-2022-21831 Critical severity CVE-2025-24293 Critical severity CVE-2020-8162 High severity CVE-2024-26144 Moderate severity"},{"date":"2026-07-29","kind":"metasploit","ref":"exploit/multi/http/rails_activestorage_vips_rce","stars":null,"title":"Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution"}],"tier":"weaponised"},"has_fix":true,"headline":"Active Storage allowed transformation methods that were potentially unsafe","id":"CVE-2025-24293","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"command_injection","year":"2025"},"n_packages":6,"n_references":1,"next":{"headline":"resolv vulnerable to DoS via insufficient DNS domain name length validation","id":"CVE-2025-24294"},"packages":[{"ecosystem":"RubyGems","fixed":["7.1.5.2"],"introduced":["5.2.0"],"last_affected":[],"package":"activestorage","purl":null,"source":"GHSA-r4mg-4433-c7g3"},{"ecosystem":"RubyGems","fixed":["7.1.5.2"],"introduced":["5.2.0"],"last_affected":[],"package":"activestorage","purl":"pkg:gem/activestorage","source":"GHSA-r4mg-4433-c7g3"},{"ecosystem":"RubyGems","fixed":["7.2.2.2"],"introduced":["7.2"],"last_affected":[],"package":"activestorage","purl":null,"source":"GHSA-r4mg-4433-c7g3"},{"ecosystem":"RubyGems","fixed":["7.2.2.2"],"introduced":["7.2"],"last_affected":[],"package":"activestorage","purl":"pkg:gem/activestorage","source":"GHSA-r4mg-4433-c7g3"},{"ecosystem":"RubyGems","fixed":["8.0.2.1"],"introduced":["8.0"],"last_affected":[],"package":"activestorage","purl":null,"source":"GHSA-r4mg-4433-c7g3"},{"ecosystem":"RubyGems","fixed":["8.0.2.1"],"introduced":["8.0"],"last_affected":[],"package":"activestorage","purl":"pkg:gem/activestorage","source":"GHSA-r4mg-4433-c7g3"}],"prev":{"headline":"Auth bypass in UniFi Network Application","id":"CVE-2025-24292"},"products":["activestorage"],"published":"2026-01-30","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":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"poc","technical_impact":"total"},"state":"PUBLISHED","updated":"2026-07-15","vendors":["Rails"]},"summary":"Attackers can execute arbitrary commands via unsafe image transformation parameters in Rails Active Storage when using mini_magick.","url":"https://insights.sbomify.com/CVE-2025-24293/"}