Skip to main content
Mallory
CriticalExploited in the wildCISA KEVPublic exploitVulnerability

CVE-2020-7961: Remote Code Execution in Liferay Portal JSONWS

Published Mar 20, 2020 · Updated 5 days ago
Trending this weekNot trendingOutside this week’s top 100
Mention activity · 30 days5 mentions · peak 3 in a dayToday
CVSS9.8Critical · v3.1
EPSS99.9%100th percentile
CISA KEVYesAdded Nov 3, 2021
In the wildActivePer CISA KEV
Vendor
Liferay
IdentifiersCVE-2020-7961CWE-502 · Deserialization of Untrusted Data

CVE-2020-7961 is an insecure deserialization vulnerability in the JSON web services (JSONWS) functionality of Liferay Portal versions before 7.2.1 CE GA2. An attacker can submit a malicious object that triggers arbitrary code execution during Java unmarshalling. Exploitation compromises the application with the privileges of its hosting process. Affected deployments include Liferay CE 6.2 and Liferay 7.0.

Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Analyst brief

Impact, mitigation & remediation

What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.

Impact

What an attacker gets, and what they’ve been doing with it.

Successful exploitation can compromise the confidentiality, integrity, and availability of the Liferay application and resources accessible to its service account. Attackers can execute commands, access application configuration and database credentials, deploy web shells or other malware, and use the server for lateral movement. Root-level compromise is possible when the application runs with root privileges; the vulnerability does not independently confer root privileges. Botnet campaigns have used this vulnerability for malware propagation, DDoS activity, and cryptocurrency mining.

Mitigation

If you can’t patch tonight, do this now.

Until upgrading, disable JSONWS if it is unnecessary or restrict access to trusted systems through application access controls, reverse-proxy rules, or network filtering. Segment the server and run Liferay with a minimally privileged service account to limit compromise impact. Monitor JSONWS traffic and unexpected Java-process activity. Egress filtering is not sufficient by itself: exploitation using an in-process deserialization chain has been reported against an egress-restricted Liferay 7.0 host.

Remediation

Patch, then assume compromise.

Upgrade Liferay Portal to 7.2 CE GA2 (7.2.1) or a later supported, patched release. If exploitation is suspected, investigate for web shells, unauthorized processes, persistence mechanisms, and stolen application or database credentials; patching alone does not remove an existing compromise.

Public exploits

Exploits

5 exploits validated by Mallory's analysis. Hidden: 1 rejected by Mallory's analysis as not a working exploit; 1 not yet analyzed, such as Exploit-DB entries.

View more in app →
liferay_java_unmarshalling.rbThis repository contains a single Metasploit module (modules/exploits/multi/http/liferay_java_unmarshalling.rb) that exploits a Java deserialization vulnerability (CVE-2020-7961) in Liferay Portal's JSONWS API. The exploit targets Liferay Portal versions prior to 6.2.5 GA6, 7.0.6 GA7, 7.1.3 GA4, and 7.2.1 GA2. The module first checks for the presence and version of Liferay by inspecting the 'Liferay-Portal' HTTP header at the root path ('/'). If the target is vulnerable, the exploit starts a remote classloader server and sends a malicious serialized Java object to the '/api/jsonws/expandocolumn/update-column' endpoint, leveraging a gadget chain (C3P0WrapperConnPool) to achieve remote code execution. The default payload is a Java Meterpreter reverse shell, but this can be customized. The exploit is operational and provides a shell as the Liferay user if successful. The code is written in Ruby and is designed to be used within the Metasploit framework.Disclosed Nov 25, 2019 · Framework: metasploit · ruby · networkWeaponizedCVE-2020-7961-POCThis repository contains a working proof-of-concept exploit for CVE-2020-7961 (Liferay Portal JSONWS Java deserialization RCE, also known as LPS-97029). The main exploit logic is in 'poc.py', a Python script that automates the attack. The exploit works by: 1. Scanning the target Liferay Portal's JSONWS API (default path: /api/jsonws) for endpoints that accept Java objects. 2. Setting up a local HTTP server to serve a malicious Java class file ('LifExp.class'), which, when loaded, executes an OS command (e.g., launches calc.exe). 3. Sending a specially crafted serialized Java payload (using the C3P0WrapperConnPool gadget) to the vulnerable endpoint, instructing the target to fetch and deserialize the malicious class from the attacker's server. The repository includes: - 'poc.py': The main exploit script, which automates endpoint discovery, payload crafting, and exploitation. - 'LifExp.java': Example Java class to be compiled and served as the payload. This class executes an OS command when loaded. - 'README.md': Brief description and legal disclaimer. The exploit is operational and demonstrates unauthenticated remote code execution on vulnerable Liferay Portal instances. It requires the attacker to run a local HTTP server and have network access to the target's JSONWS API endpoint. The exploit is not part of a framework and is a standalone PoC.mzer0one · Disclosed Mar 26, 2020 · python · java · networkOperationalCVE-2020-7961This repository contains a Python exploit script (CVE-2020-7961.py) targeting CVE-2020-7961, a critical unauthenticated remote code execution vulnerability in Liferay Portal's JSONWS API. The exploit works by enumerating available API contexts and endpoints, identifying those that accept a 'java.lang.Object' input (which can be hijacked for deserialization attacks), and then sending a crafted serialized Java payload to the /api/jsonws/invoke endpoint. The script allows the user to specify a command to execute on the target server, leveraging the vulnerability to achieve arbitrary code execution. The exploit is operational and automates both reconnaissance (endpoint/context discovery) and exploitation phases. The README provides references to original research and related exploit code. The main fingerprintable endpoint is /api/jsonws (and /api/jsonws/invoke), which must be accessible for the exploit to succeed. The repository is well-structured, with a single main exploit script, a README, a license, and a .gitignore file.ShutdownRepo · Disclosed Jan 14, 2021 · python · networkOperationalliferay-ga4-rce-researchThis repository is not a single exploit dropper but a focused vulnerability-research and validation project for Liferay Portal CE 7.0.3 GA4. Most files are Markdown research artifacts: inventory, threat model, prior art, candidate analyses, judge verdicts, and live-validation writeups. The actual code is concentrated in tools/gadget_ser.py and tools/liferay_ga4_check.py, which generate Java-serialization payloads in pure Python and automate validation of the documented findings. The main exploit capability is unauthenticated RCE against Liferay JSONWS (CVE-2020-7961 class). The documented and live-validated chain targets /api/jsonws/invoke or service-specific JSONWS methods, abuses parameter type override to instantiate com.mchange.v2.c3p0.WrapperConnectionPoolDataSource, sets userOverridesAsString to a HexAsciiSerializedMap payload, triggers ObjectInputStream.readObject(), and uses an AspectJWeaver gadget to write arbitrary files, including a JSP under the Tomcat ROOT webapp. The repo explicitly reports live end-to-end RCE as root. Beyond RCE, the repository documents multiple additional exploit primitives: pre-auth blind SSRF via /xmlrpc/pingback with internal port oracle behavior; pre-auth and authenticated arbitrary document-version disclosure via /o/sync/download/* using versionId IDOR; pre-auth image disclosure via /image/*?img_id=; pre-auth Web Content Display request-parameter override for cross-site article disclosure; authenticated XSL template SSRF/RCE and Velocity/Freemarker file/property disclosure; captcha brute-force and forgot-password abuse; and several conditional or deployment-specific issues involving poller, tunnel, Axis, OpenSocial, WSRP, SSO, and import/export. Repository structure is methodical: candidates/ contains initial vulnerability hypotheses by attack surface; judge/ contains independent source-based validation/refutation; verified/ contains live exploitation evidence and cleanup notes; ENTRYPOINTS.md and ENV.md define the target surface and lab environment; FINDINGS.md and REPORT.md summarize outcomes; tools/ contains the only operational exploit code. Overall, this is a mature operational research repo with actionable exploit intelligence, especially for default Liferay GA4 deployments.dinosn · Disclosed Jul 28, 2026 · python · yaml · web · networkOperationalCVE-2020-7961-MassThis repository provides a mass exploitation toolkit for CVE-2020-7961, a remote code execution vulnerability in Liferay Portal. The main exploit logic is in rce.py, which targets the /api/jsonws/invoke endpoint using a crafted serialized Java payload to achieve command execution. The script detects the target OS (Linux or Windows) and saves results to linux.txt or win.txt. mass.py automates exploitation against multiple targets from a list, while shell.py offers an interactive shell-like interface for executing commands on a compromised host. The exploit is operational, providing real command execution, and is designed for ease of use by attackers. The README includes usage instructions, requirements, and search engine dorks for finding vulnerable targets.CrackerCat · Disclosed Apr 9, 2021 · python · networkPoC
Exposure surface

Affected products & vendors

Products and vendors Mallory has correlated with this vulnerability. Open in Mallory to drill down to specific CPE configurations and version ranges.

VendorProductType
LiferayLiferay Portalapplication
FAQ

Frequently asked questions

Is CVE-2020-7961 exploited in the wild?
Yes. As of Nov 16, 2026, Mallory has reports of exploitation in the wild, and CISA added it to KEV on Nov 3, 2021.
Is there a public exploit for CVE-2020-7961?
Yes. Mallory tracks 5 public exploits or proofs of concept for CVE-2020-7961, the earliest disclosed Nov 25, 2019.
Is there a patch for CVE-2020-7961?
Upgrade Liferay Portal to 7.2 CE GA2 (7.2.1) or a later supported, patched release. If exploitation is suspected, investigate for web shells, unauthorized processes, persistence mechanisms, and stolen application or database credentials; patching alone does not remove an existing compromise.
What products are affected by CVE-2020-7961?
Liferay Portal.
How severe is CVE-2020-7961?
CVE-2020-7961 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 99.9% (100th percentile) as of Nov 16, 2026.
Activity feed

Recent activity

15 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.

View more in app →
+5 more in the timeline. Sign up to see them
Do you run this?See affected versions in your environment and whether adversaries are exploiting this vulnerability against assets like yours.
Check your exposure
Mallory platform

The version that knows your environment.

This page is what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which adversaries are exploiting it right now, and which detections to deploy tonight.
Exposure mappingQuery your assets running an affected version, and investigate the blast radius.
Threat actor evidence4Every report linking this CVE to a named adversary.
Associated malware9Malware families linked to this CVE, with evidence and IOCs.
Detection signatures3YARA, Sigma, Snort, and vendor rules, auto-deployed to your SIEM.
Vendor-by-vendor mappingCross-references every affected SKU, including bundled OEM variants.
Social activity6Community discussion across Reddit, Mastodon, and other social sources.