patchminder
Weaponized · Metasploit CVE-2016-2098

Vulnerabilityin the actionpack package.

Published 7 Apr 2016 · Updated 5 Aug 2024 · Every fact sourced

JSONCite
Is it exploited?
Not confirmed

Weaponized: a Metasploit exploit is public.

Attack code is public
Severity
High 7.3
CVSSA severity score from 0 to 10. 9 and higher is critical. 3.0 · no login needed
Attack likelihood
Very high
EPSSA daily score from FIRST: the chance a hole is attacked in the next 30 days. 81.4% chance in 30 days · 4 Dec 2026
Fix
Available
Fixed in 3.2.22.2, 4.1.14.2, 4.2.5.2
In plain words

Action Pack in Ruby on Rails before 3.2.22.2, 4.x before 4.1.14.2, and 4.2.x before 4.2.5.2 allows remote attackers to execute arbitrary Ruby code by leveraging an application's unrestricted use of the render method.

What to do now
  • Upgrade actionpack (RubyGems) to 3.2.22.2, 4.1.14.2, 4.2.5.2 or later, whichever matches your release line.
Versions

Affected and fixed versions

Product or package
Affected
Fixed in
Source
n/a
Not confirmed
Not confirmed
CVE record
actionpack (RubyGems)
3.0.0 to before 3.2.22.2
3.2.22.2
GitHub advisory
actionpack (RubyGems)
4.0.0 to before 4.1.14.2
4.1.14.2
GitHub advisory
actionpack (RubyGems)
4.2.0 to before 4.2.5.2
4.2.5.2
GitHub advisory

From the CVE record, NVD and package advisories. When no source has versions yet, this table says "not confirmed" instead of guessing.

Timeline

From first report to first attacks

  1. 29 Jan 2016
    CVE ID reserved by redhat.
  2. 1 Mar 2016
    First public proof of concept on GitHub.
  3. 1 Mar 2016
    Metasploit module: Ruby on Rails ActionPack Inline ERB Code Execution.
  4. 7 Apr 2016
    Published in the CVE List.
  5. 5 Aug 2024
    CVE record last updated.
Exploit code

Attack code anyone can find

Exploit maturity: Weaponized (Metasploit).

Metasploit module
1 module
Nuclei scan template
None known
Exploit-DB
1 entry
GitHub proof of concepts
12 repositories
Exploit-DBEDB-ID 40086remote exploit for ruby, published 11 Jul 2016, verified by Exploit-DB
GitHubno warning signs found0x00-0x00/CVE-2016-209816 stars · created 9 Feb 2018Ruby On Rails unrestricted render() exploit
GitHubno warning signs foundj4k0m/CVE-2016-20984 stars · created 31 Aug 2021Remote code execution vulnerability in Ruby-on-Rails when using render on user-supplied data.
GitHubno warning signs foundhderms/dh-CVE_2016_20983 stars · created 1 Mar 2016Proof of concept showing how CVE-2016-2098 leads to remote code execution
GitHubno warning signs foundDanielHemmati/CVE-2016-2098-my-first-exploit2 stars · created 27 Jul 2020This exploit is remote code execution vulnerability in Ruby-on-Rails when using render on user-supplied data
GitHubno warning signs foundShakun8/CVE-2016-20982 stars · created 24 Sep 2022CVE-2016-2098 POC
GitHubno warning signs foundCyberDefenseInstitute/PoC_CVE-2016-2098_Rails421 stars · created 7 Jun 2016A PoC of CVE-2016-2098 (rails4.2.5.1 / view render)
GitHubno warning signs foundAlejandro-MartinG/rails-PoC-CVE-2016-20981 stars · created 25 Jan 2017Proof of concept CVE-2016-2098
GitHubno warning signs foundits-arun/CVE-2016-20981 stars · created 19 Jun 2018CVE-2016-2098 simple POC written in bash
GitHubno warning signs found3rg1s/CVE-2016-20980 stars · created 30 Oct 2019
GitHubno warning signs foundDebalinax64/CVE-2016-20980 stars · created 7 Apr 2021CVE-2016-2098 · POC of RCE Ruby on Rails: Improper Input Validation (CVE-2016-2098) in bash. Remote attackers can execute arbitrary Ruby code by leveraging an application's unrestricted use of the ren
Referencewww.exploit-db.comnamed as exploit in the CVE record

Listed so defenders can judge how urgent this is and test systems they are authorised to test. Patchminder does not host exploit code; links open the source page. Labels for GitHub repositories come from their public details and are never a promise about the code. Run anything only in an isolated lab.

Related

Other vulnerabilities in this package

References
Cite this page

Patchminder. CVE-2016-2098: Vulnerability in the actionpack package. https://patchminder.com/cve/cve-2016-2098/ (accessed 5 December 2026).