{"schemaVersion":3,"id":"CVE-2018-11627","aliases":["RHSA-2019:0315","UBUNTU-CVE-2018-11627","openSUSE-SU-2024:12033-1","GHSA-mq35-wqvf-r23c"],"status":"published","duplicateOf":null,"title":null,"description":"Sinatra before 2.0.2 has XSS via the 400 Bad Request page that occurs upon a params parser exception.","dates":{"published":"2018-05-31T19:00:00.000Z","modified":"2024-08-05T08:17:08.627Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.1,"severity":"medium","version":"3.0","versionLabel":"v3.0","source":"NVD","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.0","versionLabel":"v3.0","source":"NVD","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":4.3,"severity":"medium","vector":"AV:N/AC:M/Au:N/C:N/I:P/A:N","exploitability":null,"impact":null,"computed":false},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Red hat","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Ubuntu","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true},{"version":"3.0","versionLabel":"v3.0","source":"OSV · Rubygems","score":6.1,"severity":"medium","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:C/C:L/I:L/A:N","exploitability":7.2,"impact":4.5,"computed":true}]},"epss":{"probability":0.02159,"percentile":0.81925,"severity":"low","asOf":"2026-10-19T00:00:00.000Z","change":{"pp":-0.034,"baselineDate":"2026-09-19T00:00:00.000Z","baselineScore":0.02193},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02268,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02159,"percentile":0.81925}],"last30":[{"date":"2026-09-19T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.02268,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.02193,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.02159,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.02159,"percentile":0.81925}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[{"id":"GITHUB_SINATRA_SINATRA","name":"Sinatra","source":"github","url":"https://github.com/sinatra/sinatra/issues/1428","maturity":"poc","reliabilityScore":0.3,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-79","name":"Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')","description":"The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/79.html"}],"affected":[{"vendor":"ubuntu","product":"ruby-sinatra","name":"ruby-sinatra","label":"ruby-sinatra","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/ruby-sinatra","purlType":"deb","versions":[{"text":"< 2.0.8.1-1","noFixRecorded":false,"fixedIn":null},{"text":"< 2.0.8.1-2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.8.1-1 | < 2.0.8.1-2","eol":null,"hubHref":null},{"vendor":"RubyGems","product":"sinatra","name":"sinatra","label":"sinatra","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/sinatra","purlType":"gem","versions":[{"text":"≥ 2.0.0, < 2.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 2.0.0, < 2.0.2","eol":null,"hubHref":null},{"vendor":"redhat","product":"cloudforms","name":"cloudforms","label":"cloudforms","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"4.6","noFixRecorded":false,"fixedIn":null},{"text":"4.7","noFixRecorded":false,"fixedIn":null}],"versionsText":"4.6 | 4.7","eol":null,"hubHref":"/vendor/redhat/cloudforms"},{"vendor":"opensuse","product":"rubygem-sinatra&distro=openSUSE Tumbleweed","name":"rubygem-sinatra","label":"rubygem-sinatra&distro=openSUSE Tumbleweed","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/rubygem-sinatra&distro=openSUSE Tumbleweed","purlType":"rpm","versions":[{"text":"< 2.2.0-1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.2.0-1.1","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme","name":"cfme","label":"cfme","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-amazon-smartstate","name":"cfme-amazon-smartstate","label":"cfme-amazon-smartstate","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-amazon-smartstate","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-appliance","name":"cfme-appliance","label":"cfme-appliance","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-appliance","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-appliance-common","name":"cfme-appliance-common","label":"cfme-appliance-common","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-appliance-common","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-appliance-debuginfo","name":"cfme-appliance-debuginfo","label":"cfme-appliance-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-appliance-debuginfo","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-appliance-tools","name":"cfme-appliance-tools","label":"cfme-appliance-tools","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-appliance-tools","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-debuginfo","name":"cfme-debuginfo","label":"cfme-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-debuginfo","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-gemset","name":"cfme-gemset","label":"cfme-gemset","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-gemset","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"cfme-gemset-debuginfo","name":"cfme-gemset-debuginfo","label":"cfme-gemset-debuginfo","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/cfme-gemset-debuginfo","purlType":"rpm","versions":[{"text":"< 0:5.9.8.1-1.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:5.9.8.1-1.el7cf","eol":null,"hubHref":null},{"vendor":"redhat","product":"dbus-api-service","name":"dbus-api-service","label":"dbus-api-service","ecosystem":"Red Hat","cpePart":null,"purl":"pkg:rpm/redhat/dbus-api-service","purlType":"rpm","versions":[{"text":"< 0:1.0.1-3.2.el7cf","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 0:1.0.1-3.2.el7cf","eol":null,"hubHref":null},{"vendor":"sinatrarb","product":"sinatra","name":"sinatra","label":"sinatra","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"< 2.0.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2.0.2","eol":null,"hubHref":"/vendor/sinatrarb/sinatra"}],"affectedCount":15,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/sinatra/sinatra/issues/1428","label":"github.com/sinatra/sinatra/issues/1428","hostname":"github.com","tags":["X Refsource MISC","Exploit","Third Party Advisory","REPORT","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0315","label":"access.redhat.com/errata/RHSA-2019:0315","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","Advisory","WEB"]},{"url":"https://access.redhat.com/errata/RHSA-2019:0212","label":"access.redhat.com/errata/RHSA-2019:0212","hostname":"access.redhat.com","tags":["Vendor Advisory","X Refsource REDHAT","Third Party Advisory","WEB"]},{"url":"https://github.com/sinatra/sinatra/commit/12786867d6faaceaec62c7c2cb5b0e2dc074d71a","label":"github.com/sinatra/sinatra/commit/12786867d6faaceaec62c7c2cb5b0e2dc074d71a","hostname":"github.com","tags":["X Refsource MISC","Patch","Third Party Advisory","REPORT","WEB"]},{"url":"https://access.redhat.com/security/updates/classification/#moderate","label":"access.redhat.com/security/updates/classification/","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://access.redhat.com/documentation/en-us/red_hat_cloudforms/4.6/html/release_notes","label":"access.redhat.com/documentation/en-us/red_hat_cloudforms/4.6/html/release_notes","hostname":"access.redhat.com","tags":["ARTICLE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1585218","label":"bugzilla.redhat.com/show_bug.cgi?id=1585218","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1641669","label":"bugzilla.redhat.com/show_bug.cgi?id=1641669","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1641812","label":"bugzilla.redhat.com/show_bug.cgi?id=1641812","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1650152","label":"bugzilla.redhat.com/show_bug.cgi?id=1650152","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1658480","label":"bugzilla.redhat.com/show_bug.cgi?id=1658480","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1665284","label":"bugzilla.redhat.com/show_bug.cgi?id=1665284","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1667948","label":"bugzilla.redhat.com/show_bug.cgi?id=1667948","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1668847","label":"bugzilla.redhat.com/show_bug.cgi?id=1668847","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1669627","label":"bugzilla.redhat.com/show_bug.cgi?id=1669627","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1670202","label":"bugzilla.redhat.com/show_bug.cgi?id=1670202","hostname":"bugzilla.redhat.com","tags":["REPORT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_0315.json","label":"security.access.redhat.com/data/csaf/v2/advisories/2019/rhsa-2019_0315.json","hostname":"security.access.redhat.com","tags":["Advisory"]},{"url":"https://access.redhat.com/security/cve/CVE-2018-11627","label":"access.redhat.com/security/cve/CVE-2018-11627","hostname":"access.redhat.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2018-11627","label":"www.cve.org/CVERecord?id=CVE-2018-11627","hostname":"www.cve.org","tags":["Advisory","REPORT"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-11627","label":"nvd.nist.gov/vuln/detail/CVE-2018-11627","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2018-11627","label":"ubuntu.com/security/CVE-2018-11627","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2018-11627","label":"www.suse.com/security/cve/CVE-2018-11627","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2018-11627.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/sinatra/CVE-2018-11627.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://github.com/sinatra/sinatra","label":"github.com/sinatra/sinatra","hostname":"github.com","tags":["PACKAGE"]}],"lineage":{"upstream":[],"downstream":["RHSA-2019:0212"],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2018-05-31T19:00:00.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-05T08:17:08.627Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":35,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T05:13:53.920Z","stale":false,"partial":false}}