CVE-2017-12149 — Jboss Enterprise Application Platform
CRITICALCVE-2017-12149 is a critical-severity (CVSS 9.8) Deserialization of Untrusted Data vulnerability in redhat jboss enterprise application platform. It is in CISA's Known Exploited Vulnerabilities catalog (added 2021-12-10) and has been used in ransomware campaigns — treat it as actively exploited and patch now. No vendor fix is recorded yet; mitigation options are listed below.
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…
Exploitation Status
Actively exploited in the wild
- Confirmed by CISA's Known Exploited Vulnerabilities catalog on 2021-12-10 — including use in ransomware campaigns. Federal agencies were required to remediate by 2022-06-10.
- CISA assesses this as automatable — exploitation doesn’t require manual, per-target effort, which raises the odds of mass scanning and opportunistic attacks.
- A successful exploit gives an attacker total control of the affected component, not partial access.
Exploitation and automatability from CISA (KEV catalog and SSVC triage) for CVE-2017-12149.
EPSS Exploitation Probability
Probability of exploitation in the next 30 days, from FIRST.org EPSS.
How urgent is this, really
CVE-2017-12149 by exploitation likelihood (EPSS) against impact (CVSS). In the shaded patch-first corner (EPSS 50%+, CVSS 7.0+).
Where this sits among everything scored
Of 394,415 CVEs with a current EPSS score, this one falls in the ≥ 90% band (highlighted). Counts from FIRST.org, log-scaled.
Description
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.
Affected Products
jboss enterprise application platformredhatResearch use only. For defensive security, authorized penetration testing, and academic research only. Never execute exploit code against systems without explicit written authorization.
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
In Jboss Application Server as shipped with Red Hat Enterprise Applicati…
Detection & mitigation playbook
Vendor / applianceDetect
Inventory every redhat jboss enterprise application platform deployment and check each version against the affected-products list above.
Remediation status
No patch has shipped for CVE-2017-12149 yet — track the redhat jboss enterprise application platform advisory for a fixed release and apply the workarounds below in the meantime.
Mitigate without a patch
Do not deserialise data from untrusted sources: where the format allows it, restrict deserialisation to an explicit allowlist of expected types, and prefer a data-only format (JSON, Protobuf) over one that can reconstruct arbitrary objects until you can upgrade. Alongside that, restrict the management interface to trusted networks and apply the vendor's recommended configuration mitigations.
How to detect CVE-2017-12149
A community-maintained Nuclei template exists for this CVE. You can scan for it directly:
nuclei -id cve-2017-12149 -u https://target- Template
- Jboss Application Server - Remote Code Execution
- Severity
- critical
- Impact
- Successful exploitation of this vulnerability can lead to unauthorized remote code execution on the affected server.
- Remediation
- Apply the latest security patches and updates provided by Jboss to fix this vulnerability.
Template by ProjectDiscovery nuclei-templates (fopina, s0obi), MIT licensed. View the full template. Scan only systems you are authorised to test.
Fixing This On Your OS
If you run this on a Linux distribution, patch through your package manager against the distro's own security advisory below — it tracks the exact backported fix for your release, which can ship on a different timeline (and sometimes a different severity) than the upstream project.
Red Hat JBoss Enterprise Application Platform 6 and 7 do not ship the http invoker so they are not affected.
Secure the access to the entire http-invoker contexts by adding <url-pattern>/*</url-pattern> to the security-constraints in the web.xml file of the http-invoker.sar.The users who do not wish to use the http-invoker.sar can remove it.Source: Red Hat security advisory for CVE-2017-12149 (CC BY 4.0)
| Product | Fixed in | Advisory |
|---|---|---|
| Red Hat JBoss Enterprise Application Platform 5.2 security update | eap-parent | RHSA-2018:1608 |
| Red Hat JBoss Enterprise Application Platform 5 for RHEL 5 | jbossas-0:5.2.0-24.ep5.el5 | RHSA-2018:1607 |
Frequently Asked Questions
Is CVE-2017-12149 being exploited in your environment?
Detect and block the exploit chain at execution, on systems you cannot patch yet.