{"schemaVersion":3,"id":"CVE-2021-22885","aliases":["SUSE-SU-2021:1650-1","SUSE-SU-2021:1759-1","UBUNTU-CVE-2021-22885","DEBIAN-CVE-2021-22885","openSUSE-SU-2021:0797-1","openSUSE-SU-2021:1759-1","GHSA-hjg4-8q5f-x6fm"],"status":"published","duplicateOf":null,"title":null,"description":"A possible information disclosure / unintended method execution vulnerability in Action Pack >= 2.0.0 when using the `redirect_to` or `polymorphic_url`helper with untrusted user input.","dates":{"published":"2021-05-27T11:15:32.000Z","modified":"2024-08-03T18:58:24.813Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":7.5,"severity":"high","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Rubygems","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":10,"impact":6,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":7.5,"severity":"high","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","exploitability":null,"impact":null,"computed":false},{"version":"2.0","versionLabel":"v2.0","source":"NVD","score":5,"severity":"medium","vector":"AV:N/AC:L/Au:N/C:P/I:N/A:N","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.04082,"percentile":0.9061,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":-0.07999999999999952,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.04162},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04082,"percentile":0.9061}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.04162,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.04082,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.04082,"percentile":0.9061}]},"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":"REF_0C3B50B8ADFEA79C","name":"Exploit Reference (hackerone.com)","source":"reference","url":"https://hackerone.com/reports/1106652","maturity":"unknown","reliabilityScore":0.2,"verified":false,"type":null,"platforms":[],"requiresAuth":null,"exploitdb":null,"metasploit":null}],"exploitCount":1,"weaknesses":[{"id":"CWE-209","name":"Generation of Error Message Containing Sensitive Information","description":"The product generates an error message that includes sensitive information about its environment, users, or associated data.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/209.html"}],"affected":[{"vendor":"debian","product":"rails","name":"rails","label":"rails","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/rails","purlType":"deb","versions":[{"text":"< 2:6.0.3.7+dfsg-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 2:6.0.3.7+dfsg-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"rails","name":"rails","label":"rails","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/rails","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"debian","product":"debian_linux","name":"debian linux","label":"debian_linux","ecosystem":null,"cpePart":"o","purl":null,"purlType":null,"versions":[{"text":"10.0","noFixRecorded":false,"fixedIn":null}],"versionsText":"10.0","eol":{"isEol":true,"eolDate":"2024-06-30T00:00:00.000Z","matchMethod":"cpe","cycle":{"name":"10","label":"10 (Buster)","eolFrom":"2024-06-30T00:00:00.000Z","isLts":false,"isMaintained":true,"latestVersion":"10.13"},"product":{"name":"debian","label":"Debian","category":"os"}},"hubHref":"/vendor/debian/debian_linux"},{"vendor":"RubyGems","product":"actionpack","name":"actionpack","label":"actionpack","ecosystem":"RubyGems","cpePart":null,"purl":"pkg:gem/actionpack","purlType":"gem","versions":[{"text":"≥ 6.0.0, < 6.0.3.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0, < 6.1.3.2","noFixRecorded":false,"fixedIn":null},{"text":"≥ 5.2.5, < 5.2.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 2.0.0, < 5.2.4.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 6.0.0, < 6.0.3.7 | ≥ 6.1.0, < 6.1.3.2 | ≥ 5.2.5, < 5.2.6 | ≥ 2.0.0, < 5.2.4.6","eol":null,"hubHref":null},{"vendor":"opensuse","product":"rubygem-actionpack-5_1&distro=openSUSE Leap 15.2","name":"rubygem-actionpack-5_1","label":"rubygem-actionpack-5_1&distro=openSUSE Leap 15.2","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/rubygem-actionpack-5_1&distro=openSUSE Leap 15.2","purlType":"rpm","versions":[{"text":"< 5.1.4-lp152.5.6.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-lp152.5.6.1","eol":null,"hubHref":null},{"vendor":"opensuse","product":"rubygem-actionpack-5_1&distro=openSUSE Leap 15.3","name":"rubygem-actionpack-5_1","label":"rubygem-actionpack-5_1&distro=openSUSE Leap 15.3","ecosystem":"openSUSE","cpePart":null,"purl":"pkg:rpm/opensuse/rubygem-actionpack-5_1&distro=openSUSE Leap 15.3","purlType":"rpm","versions":[{"text":"< 5.1.4-3.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-3.9.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud 7","name":"rubygem-actionpack-4_2","label":"rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud 7","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud 7","purlType":"rpm","versions":[{"text":"< 4.2.9-7.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.9-7.12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud Crowbar 8","name":"rubygem-actionpack-4_2","label":"rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud Crowbar 8","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud Crowbar 8","purlType":"rpm","versions":[{"text":"< 4.2.9-7.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.9-7.12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud Crowbar 9","name":"rubygem-actionpack-4_2","label":"rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud Crowbar 9","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-4_2&distro=SUSE OpenStack Cloud Crowbar 9","purlType":"rpm","versions":[{"text":"< 4.2.9-7.12.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 4.2.9-7.12.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15","name":"rubygem-actionpack-5_1","label":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15","purlType":"rpm","versions":[{"text":"< 5.1.4-3.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-3.9.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","name":"rubygem-actionpack-5_1","label":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP1","purlType":"rpm","versions":[{"text":"< 5.1.4-3.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-3.9.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","name":"rubygem-actionpack-5_1","label":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP2","purlType":"rpm","versions":[{"text":"< 5.1.4-3.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-3.9.1","eol":null,"hubHref":null},{"vendor":"suse","product":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","name":"rubygem-actionpack-5_1","label":"rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","ecosystem":"SUSE Linux Enterprise","cpePart":null,"purl":"pkg:rpm/suse/rubygem-actionpack-5_1&distro=SUSE Linux Enterprise High Availability Extension 15 SP3","purlType":"rpm","versions":[{"text":"< 5.1.4-3.9.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 5.1.4-3.9.1","eol":null,"hubHref":null},{"vendor":"rubyonrails","product":"actionpack_page-caching","name":"actionpack page-caching","label":"actionpack_page-caching","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"na","noFixRecorded":false,"fixedIn":null}],"versionsText":"na","eol":null,"hubHref":"/vendor/rubyonrails/actionpack_page-caching"},{"vendor":"rubyonrails","product":"rails","name":"rails","label":"rails","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 5.2.0.0, < 5.2.4.6","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.0.0.0, < 6.0.3.7","noFixRecorded":false,"fixedIn":null},{"text":"≥ 6.1.0.0, < 6.1.3.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 5.2.0.0, < 5.2.4.6 | ≥ 6.0.0.0, < 6.0.3.7 | ≥ 6.1.0.0, < 6.1.3.1","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"rails","label":"Ruby on Rails","category":"framework"}},"hubHref":"/vendor/rubyonrails/rails"}],"affectedCount":15,"eol":{"hasEol":true,"count":1},"references":[{"url":"https://hackerone.com/reports/1106652","label":"hackerone.com/reports/1106652","hostname":"hackerone.com","tags":["X Refsource MISC","WEB","Exploit","Third Party Advisory"]},{"url":"https://www.debian.org/security/2021/dsa-4929","label":"www.debian.org/security/2021/dsa-4929","hostname":"www.debian.org","tags":["Vendor Advisory","X Refsource DEBIAN","Third Party Advisory"]},{"url":"https://security.netapp.com/advisory/ntap-20210805-0009/","label":"security.netapp.com/advisory/ntap-20210805-0009/","hostname":"security.netapp.com","tags":["X Refsource CONFIRM","Third Party Advisory"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211650-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20211650-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://bugzilla.suse.com/1185715","label":"bugzilla.suse.com/1185715","hostname":"bugzilla.suse.com","tags":["REPORT"]},{"url":"https://www.suse.com/security/cve/CVE-2021-22885","label":"www.suse.com/security/cve/CVE-2021-22885","hostname":"www.suse.com","tags":["WEB"]},{"url":"https://www.suse.com/support/update/announcement/2021/suse-su-20211759-1/","label":"www.suse.com/support/update/announcement/2021/suse-su-20211759-1/","hostname":"www.suse.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2021-22885","label":"ubuntu.com/security/CVE-2021-22885","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://github.com/rails/rails/commit/c4c21a9f8d7c9c8ca6570bdb82d64e2dc860e62c","label":"github.com/rails/rails/commit/c4c21a9f8d7c9c8ca6570bdb82d64e2dc860e62c","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/rails/rails/commit/f202249bdd701f908a57d733e633d366a982f8ce","label":"github.com/rails/rails/commit/f202249bdd701f908a57d733e633d366a982f8ce","hostname":"github.com","tags":["REPORT"]},{"url":"https://github.com/rails/rails/commit/3eb9e74c287750a9fe11f700fc96d3be1e83aa35","label":"github.com/rails/rails/commit/3eb9e74c287750a9fe11f700fc96d3be1e83aa35","hostname":"github.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2021-22885","label":"www.cve.org/CVERecord?id=CVE-2021-22885","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2021-22885","label":"security-tracker.debian.org/tracker/CVE-2021-22885","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/AHCB7JMW3HFGNRHZXPJUK7TS6FSJM2AA/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://lists.opensuse.org/archives/list/security-announce@lists.opensuse.org/thread/XD33DNJH2JNZCIIOPYYFAACZRFEZSRKI/","label":"lists.opensuse.org/archives/…","hostname":"lists.opensuse.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2021-22885","label":"nvd.nist.gov/vuln/detail/CVE-2021-22885","hostname":"nvd.nist.gov","tags":["Advisory"]},{"url":"https://github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22885.yml","label":"github.com/rubysec/ruby-advisory-db/blob/master/gems/actionpack/CVE-2021-22885.yml","hostname":"github.com","tags":["WEB"]},{"url":"https://groups.google.com/g/rubyonrails-security/c/NiQl-48cXYI","label":"groups.google.com/g/rubyonrails-security/c/NiQl-48cXYI","hostname":"groups.google.com","tags":["WEB"]},{"url":"https://security.netapp.com/advisory/ntap-20210805-0009","label":"security.netapp.com/advisory/ntap-20210805-0009","hostname":"security.netapp.com","tags":["WEB"]}],"lineage":{"upstream":[],"downstream":["DLA-2655-1","DSA-4929-1","OPENSUSE-SU-2024:11821-1","RHSA-2021:4702","SUSE-SU-2022:15116-1"],"duplicates":[],"related":["OPENSUSE-SU-2024:11821-1","SUSE-SU-2022:15116-1"]},"timeline":[{"kind":"published","date":"2021-05-27T11:15:32.000Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2024-08-03T18:58:24.813Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":41,"level":"medium","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T19:15:52.171Z","stale":false,"partial":false}}