{
    "containers": {
        "cna": {
            "affected": [
                {
                    "product": "https://github.com/rails/rails",
                    "vendor": "Rails",
                    "versions": [
                        {
                            "status": "affected",
                            "version": "5.2.2.1"
                        },
                        {
                            "status": "affected",
                            "version": "6.0.0.beta3"
                        }
                    ]
                }
            ],
            "datePublic": "2019-03-13T00:00:00",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically generated development mode secret token. This secret token can be used in combination with other Rails internals to escalate to a remote code execution exploit."
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "cweId": "CWE-77",
                            "description": "Command Injection - Generic (CWE-77)",
                            "lang": "en",
                            "type": "CWE"
                        }
                    ]
                }
            ],
            "providerMetadata": {
                "dateUpdated": "2019-05-10T02:06:01",
                "orgId": "36234546-b8fa-4601-9d6f-f4e334aa8ea1",
                "shortName": "hackerone"
            },
            "references": [
                {
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/"
                },
                {
                    "tags": [
                        "x_refsource_CONFIRM"
                    ],
                    "url": "https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw"
                },
                {
                    "tags": [
                        "x_refsource_MISC"
                    ],
                    "url": "http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html"
                },
                {
                    "name": "46785",
                    "tags": [
                        "exploit",
                        "x_refsource_EXPLOIT-DB"
                    ],
                    "url": "https://www.exploit-db.com/exploits/46785/"
                },
                {
                    "name": "FEDORA-2019-1cfe24db5c",
                    "tags": [
                        "vendor-advisory",
                        "x_refsource_FEDORA"
                    ],
                    "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/"
                }
            ],
            "x_legacyV4Record": {
                "CVE_data_meta": {
                    "ASSIGNER": "support@hackerone.com",
                    "ID": "CVE-2019-5420",
                    "STATE": "PUBLIC"
                },
                "affects": {
                    "vendor": {
                        "vendor_data": [
                            {
                                "product": {
                                    "product_data": [
                                        {
                                            "product_name": "https://github.com/rails/rails",
                                            "version": {
                                                "version_data": [
                                                    {
                                                        "version_value": "5.2.2.1"
                                                    },
                                                    {
                                                        "version_value": "6.0.0.beta3"
                                                    }
                                                ]
                                            }
                                        }
                                    ]
                                },
                                "vendor_name": "Rails"
                            }
                        ]
                    }
                },
                "data_format": "MITRE",
                "data_type": "CVE",
                "data_version": "4.0",
                "description": {
                    "description_data": [
                        {
                            "lang": "eng",
                            "value": "A remote code execution vulnerability in development mode Rails <5.2.2.1, <6.0.0.beta3 can allow an attacker to guess the automatically generated development mode secret token. This secret token can be used in combination with other Rails internals to escalate to a remote code execution exploit."
                        }
                    ]
                },
                "problemtype": {
                    "problemtype_data": [
                        {
                            "description": [
                                {
                                    "lang": "eng",
                                    "value": "Command Injection - Generic (CWE-77)"
                                }
                            ]
                        }
                    ]
                },
                "references": {
                    "reference_data": [
                        {
                            "name": "https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/",
                            "refsource": "CONFIRM",
                            "url": "https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/"
                        },
                        {
                            "name": "https://groups.google.com/forum/#!topic/rubyonrails-security/IsQKvDqZdKw",
                            "refsource": "CONFIRM",
                            "url": "https://groups.google.com/forum/#!topic/rubyonrails-security/IsQKvDqZdKw"
                        },
                        {
                            "name": "http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html",
                            "refsource": "MISC",
                            "url": "http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html"
                        },
                        {
                            "name": "46785",
                            "refsource": "EXPLOIT-DB",
                            "url": "https://www.exploit-db.com/exploits/46785/"
                        },
                        {
                            "name": "FEDORA-2019-1cfe24db5c",
                            "refsource": "FEDORA",
                            "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/"
                        }
                    ]
                }
            }
        },
        "adp": [
            {
                "providerMetadata": {
                    "orgId": "af854a3a-2127-422b-91ae-364da2661108",
                    "shortName": "CVE",
                    "dateUpdated": "2024-08-04T19:54:53.584Z"
                },
                "title": "CVE Program Container",
                "references": [
                    {
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://weblog.rubyonrails.org/2019/3/13/Rails-4-2-5-1-5-1-6-2-have-been-released/"
                    },
                    {
                        "tags": [
                            "x_refsource_CONFIRM",
                            "x_transferred"
                        ],
                        "url": "https://groups.google.com/forum/#%21topic/rubyonrails-security/IsQKvDqZdKw"
                    },
                    {
                        "tags": [
                            "x_refsource_MISC",
                            "x_transferred"
                        ],
                        "url": "http://packetstormsecurity.com/files/152704/Ruby-On-Rails-DoubleTap-Development-Mode-secret_key_base-Remote-Code-Execution.html"
                    },
                    {
                        "name": "46785",
                        "tags": [
                            "exploit",
                            "x_refsource_EXPLOIT-DB",
                            "x_transferred"
                        ],
                        "url": "https://www.exploit-db.com/exploits/46785/"
                    },
                    {
                        "name": "FEDORA-2019-1cfe24db5c",
                        "tags": [
                            "vendor-advisory",
                            "x_refsource_FEDORA",
                            "x_transferred"
                        ],
                        "url": "https://lists.fedoraproject.org/archives/list/package-announce%40lists.fedoraproject.org/message/Y43636TH4D6T46IC6N2RQVJTRFJAAYGA/"
                    }
                ]
            }
        ]
    },
    "cveMetadata": {
        "assignerOrgId": "36234546-b8fa-4601-9d6f-f4e334aa8ea1",
        "assignerShortName": "hackerone",
        "cveId": "CVE-2019-5420",
        "datePublished": "2019-03-27T13:48:13",
        "dateReserved": "2019-01-04T00:00:00",
        "dateUpdated": "2024-08-04T19:54:53.584Z",
        "state": "PUBLISHED"
    },
    "dataType": "CVE_RECORD",
    "dataVersion": "5.1"
}