{"url":"http://public2.vulnerablecode.io/api/vulnerabilities/47152?format=json","vulnerability_id":"VCID-yq3g-ykeu-pfbp","summary":"Rack vulnerable to ReDoS in content type parsing (2nd degree polynomial)\n### Summary\n\n```ruby\nmodule Rack\n  class MediaType\n    SPLIT_PATTERN = %r{\\s*[;,]\\s*}\n```\n\nThe above regexp is subject to ReDos. 50K blank characters as a prefix to the header will take over 10s to split.\n\n### PoC\n\nA simple HTTP request with lots of blank characters in the content-type header:\n\n```ruby\nrequest[\"Content-Type\"] = (\" \" * 50_000) + \"a,\"\n```\n\n### Impact\n\nIt's a very easy to craft ReDoS. Like all ReDoS the impact is debatable.","aliases":[{"alias":"CVE-2024-25126"},{"alias":"GHSA-22f2-v57c-j9cx"}],"fixed_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/127546?format=json","purl":"pkg:deb/debian/ruby-rack@2.1.4-3%2Bdeb11u2?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3nmb-xetr-6qbg"},{"vulnerability":"VCID-6ydb-e746-vbd8"},{"vulnerability":"VCID-e8ab-9br9-6ybt"},{"vulnerability":"VCID-ewfc-rx8b-jfc4"},{"vulnerability":"VCID-gnc7-wp69-h7ag"},{"vulnerability":"VCID-h8af-h199-qqfz"},{"vulnerability":"VCID-hpw3-uw3x-mqgq"},{"vulnerability":"VCID-p3dy-qbad-q3ab"},{"vulnerability":"VCID-pydr-47y4-y3fu"},{"vulnerability":"VCID-r1hk-cy5k-9kad"},{"vulnerability":"VCID-tc69-2tad-43cv"},{"vulnerability":"VCID-u1u4-7b3v-fue7"},{"vulnerability":"VCID-uh69-24kx-xucy"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-rack@2.1.4-3%252Bdeb11u2%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/127564?format=json","purl":"pkg:deb/debian/ruby-rack@2.2.6.4-1%2Bdeb12u1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-rack@2.2.6.4-1%252Bdeb12u1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/127566?format=json","purl":"pkg:deb/debian/ruby-rack@2.2.7-1.1?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-rack@2.2.7-1.1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/127544?format=json","purl":"pkg:deb/debian/ruby-rack@2.2.22-0%2Bdeb12u1?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3nmb-xetr-6qbg"},{"vulnerability":"VCID-6ydb-e746-vbd8"},{"vulnerability":"VCID-e8ab-9br9-6ybt"},{"vulnerability":"VCID-ewfc-rx8b-jfc4"},{"vulnerability":"VCID-gnc7-wp69-h7ag"},{"vulnerability":"VCID-h8af-h199-qqfz"},{"vulnerability":"VCID-hpw3-uw3x-mqgq"},{"vulnerability":"VCID-p3dy-qbad-q3ab"},{"vulnerability":"VCID-pydr-47y4-y3fu"},{"vulnerability":"VCID-r1hk-cy5k-9kad"},{"vulnerability":"VCID-tc69-2tad-43cv"},{"vulnerability":"VCID-u1u4-7b3v-fue7"},{"vulnerability":"VCID-uh69-24kx-xucy"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-rack@2.2.22-0%252Bdeb12u1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/127549?format=json","purl":"pkg:deb/debian/ruby-rack@3.1.20-0%2Bdeb13u1?distro=trixie","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3nmb-xetr-6qbg"},{"vulnerability":"VCID-6ydb-e746-vbd8"},{"vulnerability":"VCID-e8ab-9br9-6ybt"},{"vulnerability":"VCID-ewfc-rx8b-jfc4"},{"vulnerability":"VCID-gnc7-wp69-h7ag"},{"vulnerability":"VCID-h8af-h199-qqfz"},{"vulnerability":"VCID-hpw3-uw3x-mqgq"},{"vulnerability":"VCID-p3dy-qbad-q3ab"},{"vulnerability":"VCID-pydr-47y4-y3fu"},{"vulnerability":"VCID-r1hk-cy5k-9kad"},{"vulnerability":"VCID-tc69-2tad-43cv"},{"vulnerability":"VCID-u1u4-7b3v-fue7"},{"vulnerability":"VCID-uh69-24kx-xucy"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-rack@3.1.20-0%252Bdeb13u1%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/127547?format=json","purl":"pkg:deb/debian/ruby-rack@3.2.6-2?distro=trixie","is_vulnerable":false,"affected_by_vulnerabilities":[],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:deb/debian/ruby-rack@3.2.6-2%3Fdistro=trixie"},{"url":"http://public2.vulnerablecode.io/api/packages/69189?format=json","purl":"pkg:gem/rack@2.2.8.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3jru-u17n-tyg1"},{"vulnerability":"VCID-7cef-z5qm-afd8"},{"vulnerability":"VCID-amfu-8d25-juhy"},{"vulnerability":"VCID-bj83-rx84-v3g9"},{"vulnerability":"VCID-dss4-6ptr-83av"},{"vulnerability":"VCID-e11g-k7zm-vkhu"},{"vulnerability":"VCID-k8fr-zuyx-yyhg"},{"vulnerability":"VCID-vk15-7qdb-xkh9"},{"vulnerability":"VCID-x373-rhh4-7khm"},{"vulnerability":"VCID-xpa3-1n87-8ucv"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/rack@2.2.8.1"},{"url":"http://public2.vulnerablecode.io/api/packages/69188?format=json","purl":"pkg:gem/rack@3.0.9.1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3jru-u17n-tyg1"},{"vulnerability":"VCID-7cef-z5qm-afd8"},{"vulnerability":"VCID-bj83-rx84-v3g9"},{"vulnerability":"VCID-dss4-6ptr-83av"},{"vulnerability":"VCID-e11g-k7zm-vkhu"},{"vulnerability":"VCID-k8fr-zuyx-yyhg"},{"vulnerability":"VCID-vk15-7qdb-xkh9"},{"vulnerability":"VCID-x373-rhh4-7khm"},{"vulnerability":"VCID-xpa3-1n87-8ucv"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/rack@3.0.9.1"}],"affected_packages":[{"url":"http://public2.vulnerablecode.io/api/packages/51411?format=json","purl":"pkg:gem/rack@0.4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-4u64-j7gm-5ke9"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/rack@0.4"},{"url":"http://public2.vulnerablecode.io/api/packages/64279?format=json","purl":"pkg:gem/rack@3.0.0","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-3jru-u17n-tyg1"},{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-7cef-z5qm-afd8"},{"vulnerability":"VCID-bj83-rx84-v3g9"},{"vulnerability":"VCID-bqpn-m2fh-9kab"},{"vulnerability":"VCID-c9mc-7nts-cfgy"},{"vulnerability":"VCID-dss4-6ptr-83av"},{"vulnerability":"VCID-e11g-k7zm-vkhu"},{"vulnerability":"VCID-ebb6-b5tx-5bhf"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-k8fr-zuyx-yyhg"},{"vulnerability":"VCID-vk15-7qdb-xkh9"},{"vulnerability":"VCID-x373-rhh4-7khm"},{"vulnerability":"VCID-xpa3-1n87-8ucv"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"},{"vulnerability":"VCID-zqax-g5xz-wuch"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:gem/rack@3.0.0"},{"url":"http://public2.vulnerablecode.io/api/packages/113178?format=json","purl":"pkg:rpm/redhat/pcs@0.10.4-6.el8_2?arch=5","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.10.4-6.el8_2%3Farch=5"},{"url":"http://public2.vulnerablecode.io/api/packages/113179?format=json","purl":"pkg:rpm/redhat/pcs@0.10.8-1.el8_4?arch=5","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.10.8-1.el8_4%3Farch=5"},{"url":"http://public2.vulnerablecode.io/api/packages/113175?format=json","purl":"pkg:rpm/redhat/pcs@0.10.12-6.el8_6?arch=5","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.10.12-6.el8_6%3Farch=5"},{"url":"http://public2.vulnerablecode.io/api/packages/113173?format=json","purl":"pkg:rpm/redhat/pcs@0.10.15-4.el8_8?arch=2","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.10.15-4.el8_8%3Farch=2"},{"url":"http://public2.vulnerablecode.io/api/packages/113180?format=json","purl":"pkg:rpm/redhat/pcs@0.10.18-2?arch=el8_10","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.10.18-2%3Farch=el8_10"},{"url":"http://public2.vulnerablecode.io/api/packages/113172?format=json","purl":"pkg:rpm/redhat/pcs@0.11.1-10.el9_0?arch=5","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.11.1-10.el9_0%3Farch=5"},{"url":"http://public2.vulnerablecode.io/api/packages/113174?format=json","purl":"pkg:rpm/redhat/pcs@0.11.4-7.el9_2?arch=1","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.11.4-7.el9_2%3Farch=1"},{"url":"http://public2.vulnerablecode.io/api/packages/113176?format=json","purl":"pkg:rpm/redhat/pcs@0.11.7-2?arch=el9_4","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/pcs@0.11.7-2%3Farch=el9_4"},{"url":"http://public2.vulnerablecode.io/api/packages/113177?format=json","purl":"pkg:rpm/redhat/rubygem-rack@2.2.8.1-1?arch=el8sat","is_vulnerable":true,"affected_by_vulnerabilities":[{"vulnerability":"VCID-52qe-dast-tkhu"},{"vulnerability":"VCID-heu4-cd3d-73ck"},{"vulnerability":"VCID-yq3g-ykeu-pfbp"}],"resource_url":"http://public2.vulnerablecode.io/packages/pkg:rpm/redhat/rubygem-rack@2.2.8.1-1%3Farch=el8sat"}],"references":[{"reference_url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-25126.json","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"}],"url":"https://access.redhat.com/hydra/rest/securitydata/cve/CVE-2024-25126.json"},{"reference_url":"https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3","scoring_elements":""},{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://discuss.rubyonrails.org/t/denial-of-service-vulnerability-in-rack-content-type-parsing/84941"},{"reference_url":"https://github.com/rack/rack","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rack/rack"},{"reference_url":"https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rack/rack/commit/6efb2ceea003c4b195815a614e00438cbd543462"},{"reference_url":"https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rack/rack/commit/d9c163a443b8cadf4711d84bd2c58cb9ef89cf49"},{"reference_url":"https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://lists.debian.org/debian-lts-announce/2024/04/msg00022.html"},{"reference_url":"https://security.netapp.com/advisory/ntap-20240510-0005","reference_id":"","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://security.netapp.com/advisory/ntap-20240510-0005"},{"reference_url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064516","reference_id":"1064516","reference_type":"","scores":[],"url":"https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1064516"},{"reference_url":"https://bugzilla.redhat.com/show_bug.cgi?id=2265593","reference_id":"2265593","reference_type":"","scores":[],"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2265593"},{"reference_url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25126","reference_id":"CVE-2024-25126","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-25126"},{"reference_url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.yml","reference_id":"CVE-2024-25126.YML","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rack/CVE-2024-25126.yml"},{"reference_url":"https://github.com/advisories/GHSA-22f2-v57c-j9cx","reference_id":"GHSA-22f2-v57c-j9cx","reference_type":"","scores":[],"url":"https://github.com/advisories/GHSA-22f2-v57c-j9cx"},{"reference_url":"https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx","reference_id":"GHSA-22f2-v57c-j9cx","reference_type":"","scores":[{"value":"5.3","scoring_system":"cvssv3.1","scoring_elements":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L"},{"value":"MODERATE","scoring_system":"generic_textual","scoring_elements":""}],"url":"https://github.com/rack/rack/security/advisories/GHSA-22f2-v57c-j9cx"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:10806","reference_id":"RHSA-2024:10806","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:10806"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:1841","reference_id":"RHSA-2024:1841","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:1841"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:1846","reference_id":"RHSA-2024:1846","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:1846"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:2007","reference_id":"RHSA-2024:2007","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:2007"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:2113","reference_id":"RHSA-2024:2113","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:2113"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:2581","reference_id":"RHSA-2024:2581","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:2581"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:2584","reference_id":"RHSA-2024:2584","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:2584"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:2953","reference_id":"RHSA-2024:2953","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:2953"},{"reference_url":"https://access.redhat.com/errata/RHSA-2024:3431","reference_id":"RHSA-2024:3431","reference_type":"","scores":[],"url":"https://access.redhat.com/errata/RHSA-2024:3431"}],"weaknesses":[{"cwe_id":1333,"name":"Inefficient Regular Expression Complexity","description":"The product uses a regular expression with an inefficient, possibly exponential worst-case computational complexity that consumes excessive CPU cycles."},{"cwe_id":937,"name":"OWASP Top Ten 2013 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2013."},{"cwe_id":1035,"name":"OWASP Top Ten 2017 Category A9 - Using Components with Known Vulnerabilities","description":"Weaknesses in this category are related to the A9 category in the OWASP Top Ten 2017."}],"exploits":[],"severity_range_score":"4.0 - 6.9","exploitability":"0.5","weighted_severity":"6.2","risk_score":3.1,"resource_url":"http://public2.vulnerablecode.io/vulnerabilities/VCID-yq3g-ykeu-pfbp"}