{
  "id": "CVE-2019-5418",
  "url": "https://poc.griffinguard.io/cve/CVE-2019-5418",
  "published_at": "2019-03-27T13:38:58Z",
  "title": "Rails Ruby on Rails Path Traversal Vulnerability",
  "vendor": "Rails",
  "product": "https://github.com/rails/rails",
  "cvss": {
    "score": 7.5,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
  },
  "kev": {
    "in_kev": true,
    "added_at": "2025-07-07",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 2294
  },
  "first_poc": {
    "created_at": "2019-03-16T11:58:18Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": -11.1,
    "repo": "mpgn/CVE-2019-5418",
    "source": "github"
  },
  "poc_repo_count": 11,
  "exploit_count": 3,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "There is a File Content Disclosure vulnerability in Action View \u003c5.2.2.1, \u003c5.1.6.2, \u003c5.0.7.2, \u003c4.2.11.1 and v3 where specially crafted accept headers can cause contents of arbitrary files on the target system's filesystem to be exposed.",
  "cwe": "CWE-22",
  "cvss_by_source": {
    "cisa-adp": 7.5
  },
  "repos": [
    {
      "repo": "takeokunn/CVE-2019-5418",
      "url": "https://github.com/takeokunn/CVE-2019-5418",
      "created_at": null,
      "first_seen_at": "2026-11-14T23:12:49.679Z",
      "stars": 0,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "skipped"
    },
    {
      "repo": "mpgn/CVE-2019-5418",
      "url": "https://github.com/mpgn/CVE-2019-5418",
      "created_at": "2019-03-16T11:58:18Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 201,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-11-08T20:54:50Z"
    },
    {
      "repo": "omarkurt/CVE-2019-5418",
      "url": "https://github.com/omarkurt/CVE-2019-5418",
      "created_at": "2019-03-18T16:09:13Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-05-07T07:46:22Z"
    },
    {
      "repo": "brompwnie/CVE-2019-5418-Scanner",
      "url": "https://github.com/brompwnie/CVE-2019-5418-Scanner",
      "created_at": "2019-03-19T15:38:01Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 36,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2014-09-03T06:52:07Z"
    },
    {
      "repo": "NotoriousRebel/RailRoadBandit",
      "url": "https://github.com/NotoriousRebel/RailRoadBandit",
      "created_at": "2019-03-19T23:34:24Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 3,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-02-09T19:36:53Z"
    },
    {
      "repo": "mpgn/Rails-doubletap-RCE",
      "url": "https://github.com/mpgn/Rails-doubletap-RCE",
      "created_at": "2019-03-23T02:52:31Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 132,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-11-08T20:54:50Z"
    },
    {
      "repo": "Bad3r/RailroadBandit",
      "url": "https://github.com/Bad3r/RailroadBandit",
      "created_at": "2019-04-01T17:02:57Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 3,
      "is_poc": "unknown",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "error",
      "owner_created_at": "2017-02-02T19:06:42Z"
    },
    {
      "repo": "ztgrace/CVE-2019-5418-Rails3",
      "url": "https://github.com/ztgrace/CVE-2019-5418-Rails3",
      "created_at": "2019-10-04T19:28:10Z",
      "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": "2012-10-13T22:29:11Z"
    },
    {
      "repo": "melardev/CVE-2019-5418",
      "url": "https://github.com/melardev/CVE-2019-5418",
      "created_at": "2019-10-24T17:35:44Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2016-03-27T02:23:24Z"
    },
    {
      "repo": "random-robbie/CVE-2019-5418",
      "url": "https://github.com/random-robbie/CVE-2019-5418",
      "created_at": "2019-11-19T09:40:06Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 5,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2013-07-01T08:55:56Z"
    },
    {
      "repo": "kailing0220/CVE-2019-5418",
      "url": "https://github.com/kailing0220/CVE-2019-5418",
      "created_at": "2022-10-17T09:04:43Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 2,
      "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": "2022-10-15T06:37:04Z"
    },
    {
      "repo": "daehyeok0618/CVE-2019-5418",
      "url": "https://github.com/daehyeok0618/CVE-2019-5418",
      "created_at": "2025-04-07T16:55:22Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2021-06-23T06:50:16Z"
    },
    {
      "repo": "CyberCTF/vulhub-rails-cve-2019-5418",
      "url": "https://github.com/CyberCTF/vulhub-rails-cve-2019-5418",
      "created_at": "2026-10-08T20:04:38Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2024-12-01T11:12:42Z"
    },
    {
      "repo": "5t1ck/rails-doubletap-py",
      "url": "https://github.com/5t1ck/rails-doubletap-py",
      "created_at": "2026-10-13T04:16:11Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "listed by PoC Index",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2020-01-05T02:27:34Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "",
        "product": "actionview",
        "ranges": [
          "\u003e= 5.2.0, \u003c 5.2.2.1"
        ],
        "fixed_in": [
          "5.2.2.1"
        ],
        "ecosystem": "RubyGems",
        "advisory": "GHSA-86g5-2wh3-gc9j"
      },
      {
        "vendor": "",
        "product": "actionview",
        "ranges": [
          "\u003e= 4.0.0, \u003c 4.2.11.1"
        ],
        "fixed_in": [
          "4.2.11.1"
        ],
        "ecosystem": "RubyGems",
        "advisory": "GHSA-86g5-2wh3-gc9j"
      },
      {
        "vendor": "",
        "product": "actionview",
        "ranges": [
          "\u003e= 5.1.0, \u003c 5.1.6.2"
        ],
        "fixed_in": [
          "5.1.6.2"
        ],
        "ecosystem": "RubyGems",
        "advisory": "GHSA-86g5-2wh3-gc9j"
      },
      {
        "vendor": "",
        "product": "actionview",
        "ranges": [
          "\u003e= 5.0.0, \u003c 5.0.7.2"
        ],
        "fixed_in": [
          "5.0.7.2"
        ],
        "ecosystem": "RubyGems",
        "advisory": "GHSA-86g5-2wh3-gc9j"
      }
    ],
    "upgrade": [
      "Upgrade actionview to 5.2.2.1 or later.",
      "Upgrade actionview to 4.2.11.1 or later.",
      "Upgrade actionview to 5.1.6.2 or later.",
      "Upgrade actionview to 5.0.7.2 or later."
    ]
  },
  "exploit_refs": [
    {
      "url": "https://www.exploit-db.com/exploits/46585/",
      "source": "cvelist",
      "title": "46585",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://www.exploit-db.com/exploits/46585",
      "source": "exploitdb",
      "title": "Rails 5.2.1 - Arbitrary File Content Disclosure",
      "published_at": "2019-03-21T00:00:00Z",
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/rapid7/metasploit-framework/blob/master/modules/auxiliary/gather/rails_doubletap_file_read.rb",
      "source": "metasploit",
      "title": "Metasploit auxiliary: Ruby On Rails File Content Disclosure ('doubletap') (auxiliary/gather/rails_doubletap_file_read)",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2019/CVE-2019-5418.yaml",
      "source": "nuclei",
      "title": "nuclei template: Rails File Content Disclosure",
      "published_at": null,
      "first_seen_at": "2026-11-14T10:26:36.149Z"
    },
    {
      "url": "http://www.openwall.com/lists/oss-security/2019/03/22/1",
      "source": "pocindex",
      "title": "",
      "published_at": null,
      "first_seen_at": "2026-11-14T11:25:11.578Z"
    }
  ],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/robots",
      "headers": [
        {
          "name": "Accept",
          "value": "../../../../../../../../etc/passwd{{"
        },
        {
          "name": "Accept",
          "value": "../../../../../../etc/passwd{{"
        },
        {
          "name": "Accept-Language",
          "value": "en"
        }
      ],
      "ports": [
        3000
      ],
      "user_agents": [
        "Mozilla/5.0 (compatible; MSIE 9.0; Windows NT 6.1; Win64; x64; Trident/5.0)"
      ],
      "protocol": "http",
      "repos": [
        "CyberCTF/vulhub-rails-cve-2019-5418",
        "daehyeok0618/CVE-2019-5418"
      ],
      "repo_count": 2,
      "confidence": 0.85,
      "evidence": [
        "CyberCTF/vulhub-rails-cve-2019-5418/app/README.md:35",
        "CyberCTF/vulhub-rails-cve-2019-5418/app/README.zh-cn.md:31",
        "CyberCTF/vulhub-rails-cve-2019-5418/checks/robots.sh:4",
        "daehyeok0618/CVE-2019-5418/README.md:27"
      ]
    },
    {
      "method": "GET",
      "path_template": "/shitblock",
      "headers": [
        {
          "name": "Accept",
          "value": "diyarbakir_guzel_baglar_delale_lorke \u003c------ CATCH"
        },
        {
          "name": "Accept",
          "value": "../../../../../../../../etc/passwd{{"
        },
        {
          "name": "Accept-Language",
          "value": "tr-TR,tr;q=0.8,en-US;q=0.5,en;q=0.3"
        },
        {
          "name": "Cache-Control",
          "value": "max-age=0"
        },
        {
          "name": "Cookie",
          "value": "firstVisit=1552167456698; CSRF-Token-HOYYT=grQmu9F3Y5hazpvr6T5TtWKj4HqPFhea; sessionid-HOYYT=i3VkCeXtjRJJHUxc7xEEjbecD53xbvaN"
        },
        {
          "name": "Dnt",
          "value": "1"
        },
        {
          "name": "Upgrade-Insecure-Requests",
          "value": "1"
        }
      ],
      "ports": [
        3000
      ],
      "user_agents": [
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0"
      ],
      "protocol": "http",
      "repos": [
        "omarkurt/CVE-2019-5418"
      ],
      "repo_count": 1,
      "confidence": 0.85,
      "evidence": [
        "omarkurt/CVE-2019-5418/README.md:16",
        "omarkurt/CVE-2019-5418/README.md:36"
      ]
    },
    {
      "method": "GET",
      "path_template": "/rails/active_storage/disk/{var}/x",
      "ports": [
        3000,
        8080
      ],
      "protocol": "http",
      "repos": [
        "5t1ck/rails-doubletap-py"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "5t1ck/rails-doubletap-py/doubletap.py:322"
      ]
    }
  ],
  "rules": []
}
