{"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-2026-66066 exists.","fix":"Upgrade activestorage to a fixed version for your release line: 7.2.3.2, 8.0.5.1 or 8.1.3.1.","what":"CVE-2026-66066 is a critical path traversal vulnerability in rails, published on 30 Jul 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-2026-66066 and fix it if it is affected.\n\nWhat it is: CVE-2026-66066 is a critical path traversal vulnerability in rails, published on 30 Jul 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-2026-66066 exists.\n\nAffected packages and fixed versions:\n- activestorage (RubyGems): affected all versions; fixed in 7.2.3.2\n- activestorage (RubyGems): affected all versions; fixed in 7.2.3.2\n- activestorage (RubyGems): affected from 8.0.0.beta1; fixed in 8.0.5.1\n- activestorage (RubyGems): affected from 8.0.0.beta1; fixed in 8.0.5.1\n- activestorage (RubyGems): affected from 8.1.0.beta1; fixed in 8.1.3.1\n- activestorage (RubyGems): affected from 8.1.0.beta1; fixed in 8.1.3.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-2026-66066/ (Markdown: https://insights.sbomify.com/CVE-2026-66066/index.md)","id":"CVE-2026-66066","markdown":"https://insights.sbomify.com/CVE-2026-66066/index.md","name":"CVE-2026-66066","record":{"aliases":["DEBIAN-CVE-2026-66066","GHSA-xr9x-r78c-5hrm","MINI-7f33-vgrw-r7jw","MINI-gcm3-57wr-92c6","UBUNTU-CVE-2026-66066"],"analysis":{"component_type":"library","fix_type":"upgrade","impacts":["data_read","code_execution"],"network_reachable":"yes","non_default_config":true,"product_category":"Ruby on Rails","requires_auth":"none","summary":"An unauthenticated attacker can read arbitrary files and potentially execute code via crafted image uploads in Rails Active Storage when libvips is enabled.","user_interaction":"not_required","vuln_class":"path_traversal"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"GitHub_M","cpe":[],"cvss":{"score":9.5,"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:H/SI:H/SA:H","version":"4.0"},"cwes":[{"id":"CWE-1188","name":"Initialization of a Resource with an Insecure Default"}],"description":"Action Pack is a framework for handling and responding to web requests. In versions prior to 7.2.3.2, 8.0.5.1 and 8.1.3.1, Active Storage does not disable libvips operations marked unsafe for untrusted content, allowing a crafted upload to invoke such an operation. Consuming applications are affected when configured to use libvips and accept image uploads from untrusted users. An unauthenticated attacker may exploit this behavior to read arbitrary files accessible to the Rails process, including environment variables and application secrets. Exposure of credentials such as secret_key_base or external-service tokens may enable remote code execution or lateral movement. This issue has been fixed in versions 7.2.3.2, 8.0.5.1 and 8.1.3.1.","ecosystems":["RubyGems"],"exploits":{"exploitdb":0,"first_seen":"2026-07-29","github_poc":7,"max_poc_stars":30,"metasploit":1,"nuclei":0,"refs":[{"date":"2026-07-30T21:06:00Z","kind":"github_poc","ref":"https://github.com/rails/rails-forensics-CVE-2026-66066","stars":30,"title":null},{"date":"2026-07-29T21:08:30Z","kind":"github_poc","ref":"https://github.com/Zer0SumGam3/CVE-2026-66066-POC","stars":23,"title":"PoC for CVE-2026-66066 in Ruby on Rails"},{"date":"2026-07-31T16:51:41Z","kind":"github_poc","ref":"https://github.com/0xsha/KindaRails2Shell","stars":5,"title":"CVE-2026-66066 + File Read, RCE, Scanner, Lab "},{"date":"2026-08-03T12:31:12Z","kind":"github_poc","ref":"https://github.com/HackSpeak/CVE-2026-66066","stars":4,"title":"CVE-2026-66066 (KindaRails2Shell) PoC - Rails Active Storage/libvips arbitrary file read to RCE; for authorized security testing"},{"date":"2026-07-29T20:45:27Z","kind":"github_poc","ref":"https://github.com/0xredash/CVE-2026-66066","stars":1,"title":"CVE-2026-66066"},{"date":"2026-08-04T02:51:40Z","kind":"github_poc","ref":"https://github.com/shinthink/CVE-2026-66066","stars":1,"title":"CVE-2026-66066 — KindaRails2Shell: Rails Active Storage/libvips Arbitrary File Read → RCE. MATLAB/HDF5 dual-identity file → SECRET_KEY_BASE theft → forged variation. CVSS 9.5 | Rails \u003c 8.1.3.1"},{"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"},{"date":"2026-09-10T07:17:31Z","kind":"github_poc","ref":"https://github.com/ivanesk315/CVE-2026-66066","stars":0,"title":null}],"tier":"weaponised"},"has_fix":true,"headline":"Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing","id":"CVE-2026-66066","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":"RubyGems","product":null,"products":[],"type":"path_traversal","year":"2026"},"n_packages":6,"n_references":9,"next":{"headline":"RabbitMQ: Stream protocol skips per vhost per user connection limits","id":"CVE-2026-66067"},"packages":[{"ecosystem":"RubyGems","fixed":["7.2.3.2"],"introduced":["0"],"last_affected":[],"package":"activestorage","purl":null,"source":"GHSA-xr9x-r78c-5hrm"},{"ecosystem":"RubyGems","fixed":["7.2.3.2"],"introduced":["0"],"last_affected":[],"package":"activestorage","purl":"pkg:gem/activestorage","source":"GHSA-xr9x-r78c-5hrm"},{"ecosystem":"RubyGems","fixed":["8.0.5.1"],"introduced":["8.0.0.beta1"],"last_affected":[],"package":"activestorage","purl":null,"source":"GHSA-xr9x-r78c-5hrm"},{"ecosystem":"RubyGems","fixed":["8.0.5.1"],"introduced":["8.0.0.beta1"],"last_affected":[],"package":"activestorage","purl":"pkg:gem/activestorage","source":"GHSA-xr9x-r78c-5hrm"},{"ecosystem":"RubyGems","fixed":["8.1.3.1"],"introduced":["8.1.0.beta1"],"last_affected":[],"package":"activestorage","purl":null,"source":"GHSA-xr9x-r78c-5hrm"},{"ecosystem":"RubyGems","fixed":["8.1.3.1"],"introduced":["8.1.0.beta1"],"last_affected":[],"package":"activestorage","purl":"pkg:gem/activestorage","source":"GHSA-xr9x-r78c-5hrm"}],"prev":{"headline":"ouroboros-ai: Incomplete fix of CVE-2026-47211: untrusted project .env can still reach RCE via omitted execution-routing keys","id":"CVE-2026-66065"},"products":["rails"],"published":"2026-07-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-08-05","vendors":["rails"]},"summary":"An unauthenticated attacker can read arbitrary files and potentially execute code via crafted image uploads in Rails Active Storage when libvips is enabled.","url":"https://insights.sbomify.com/CVE-2026-66066/"}