Red Hat, Inc. jbossas
Red Hat JBoss Application Server Remote Code Execution Vulnerability
In Jboss Application Server as shipped with Red Hat Enterprise Application Platform 5.2, it was found that the doFilter method in the ReadOnlyAccessFilter of the HTTP Invoker does not restrict classes for which it performs deserialization and thus allowing an attacker to execute arbitrary code via crafted serialized data.
Timeline
Days relative to CVE publicationFirst public PoC 48 days after publication; added to CISA KEV 4.2 years after publication. First PoC: sevck/CVE-2017-12149 (created 21 Nov 2017, found by us: backfilled).
PoC repositories
Found on GitHub.15 PoCs · 1 informational · 1 not a PoC
PoCs 15
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| joaomatosf/JavaDeserH2HC | 11 Sep 2017 −23 d | 517 | PoC older repo: PoC date unknown, not used for the first PoC |
| sevck/CVE-2017-12149 | 21 Nov 2017 +48 d | 22 | PoC |
| yunxu1/jboss-_CVE-2017-12149 | 28 Nov 2017 +54 d | 210 | PoC |
| 1337g/CVE-2017-12149 | 22 Dec 2017 +78 d | 16 | PoC |
| ozkanbilge/Java-Reverse-Shell | 8 Nov 2018 +1.1 y | 4 | PoC |
| jreppiks/CVE-2017-12149 | 22 Aug 2019 +1.9 y | 14 | PoC |
| VVeakee/CVE-2017-12149 | 14 Apr 2022 +4.5 y | 0 | PoC |
| merlinepedra25/JavaDeserH2HC | 27 Jun 2022 +4.7 y | 0 | PoC |
| merlinepedra/JavaDeserH2HC | 27 Jun 2022 +4.7 y | 0 | PoC |
| Sathyasri1/JavaDeserH2HC | 5 Apr 2023 +5.5 y | 0 | PoC |
| MrE-Fog/jboss-_CVE-2017-12149 | 6 Aug 2023 +5.8 y | 0 | PoC |
| JesseClarkND/CVE-2017-12149 | 30 Apr 2024 +6.6 y | 0 | PoC |
| zesnd/cve-2017-12149 | 21 Dec 2024 +7.2 y | 0 | PoC |
| galois17/cve-2017-12149-playground | 1 Jan 2026 +8.2 y | 0 | PoC |
| CyberCTF/vulhub-jboss-cve-2017-12149 | 8 Oct 2026 +9.0 y | 0 | PoC |
Informational 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| Xcatolin/jboss-deserialization | 30 May 2021 +3.7 y | 0 | Informational · write-up |
Not a PoC 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| ianxtianxt/CVE-2015-7501 | 21 Feb 2020 +2.4 y | 22 | Not a PoC · unrelated |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
Other public exploits
Exploit-DB, Metasploit and nuclei count as public PoCs. Exploit-tagged references from the CVE record and NVD are links only. None of these are analysed by us.| Source | Title | Published | Found by us |
|---|---|---|---|
| Metasploit | Metasploit auxiliary: JBoss Vulnerability Scanner (auxiliary/scanner/http/jboss_vulnscan) | 20 Jul 2018 | 14 Nov 2026 |
| nuclei template | nuclei template: Jboss Application Server - Remote Code Execution | 27 Apr 2023 | 14 Nov 2026 |
PoC characteristics
What to hunt for in your logs · from 15 PoC reposPOST /invoker/readonly
- Key headers
Accept: */*Cache-Control: no-cacheX-Requested-With: XMLHttpRequest- Body markers
@poc.ser=inapplication/x-www-form-urlencoded- Ports
- 8080
- PoC User-Agent
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.14; rv:63.0) Gecko/20100101 Firefox/63.0- Seen in
- 5 repos: 1337g/CVE-2017-12149, JesseClarkND/CVE-2017-12149, galois17/cve-2017-12149-playground, jreppiks/CVE-2017-12149, zesnd/cve-2017-12149
- Evidence
- 1337g/CVE-2017-12149/CVE-2017-12149.py:115 JesseClarkND/CVE-2017-12149/CVE-2017-12149.py:115 galois17/cve-2017-12149-playground/README.md:45 jreppiks/CVE-2017-12149/jdspoc.py:59 zesnd/cve-2017-12149/cve-2017-12149_poc.py:29
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/invoker/readonly(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080] (msg:"GG PoC-Monitor CVE-2017-12149 Red Hat, Inc. jbossas exploit attempt"; flow:established,to_server; http.method; content:"POST"; http.uri; content:"/invoker/readonly"; http.header; content:"Accept: */*"; nocase; http.header; content:"Cache-Control: no-cache"; nocase; http.header; content:"X-Requested-With: XMLHttpRequest"; nocase; http.request_body; content:"@poc.ser="; reference:url,poc.griffinguard.io/cve/CVE-2017-12149; classtype:web-application-attack; sid:9580634; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Red Hat, Inc. jbossas exploit attempt (CVE-2017-12149)
id: gg-pocmon-cve-2017-12149-9580634
status: experimental
description: Request pattern taken from public PoCs for CVE-2017-12149. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2017-12149
logsource:
category: webserver
detection:
selection:
cs-method: POST
cs-uri-stem|contains|all:
- '/invoker/readonly'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: critical
tags:
- attack.initial_access
- attack.t1190
- cve.2017.12149