{"answers":{"affected":"2 open source packages ship an affected version, including com.liferay.portal:com.liferay.portal.kernel. It affects 1 product.","exploited":"Yes. Attackers have exploited CVE-2020-7961 in the wild since at least 3 Nov 2021.","fix":"Upgrade com.liferay.portal:com.liferay.portal.kernel to 4.35.3 or later. US federal agencies must fix it by 3 May 2022.","what":"CVE-2020-7961 is a critical unsafe deserialization vulnerability in Liferay Liferay Portal, published on 20 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim."},"fix_prompt":"Check this codebase for CVE-2020-7961 and fix it if it is affected.\n\nWhat it is: CVE-2020-7961 is a critical unsafe deserialization vulnerability in Liferay Liferay Portal, published on 20 Mar 2020. An attacker can exploit it over the internet without logging in, with no action from the victim.\nExploitation: Yes. Attackers have exploited CVE-2020-7961 in the wild since at least 3 Nov 2021.\n\nAffected packages and fixed versions:\n- com.liferay.portal:com.liferay.portal.kernel (Maven): affected all versions; fixed in 4.35.3\n- com.liferay.portal:com.liferay.portal.kernel (Maven): affected all versions; fixed in 4.35.3\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2020-7961/ (Markdown: https://insights.sbomify.com/CVE-2020-7961/index.md)","id":"CVE-2020-7961","markdown":"https://insights.sbomify.com/CVE-2020-7961/index.md","name":"CVE-2020-7961","record":{"aliases":["GHSA-w7pm-cc4v-f3g8"],"analysis":{"component_type":"web_application","fix_type":"upgrade","impacts":["code_execution"],"network_reachable":"yes","non_default_config":false,"product_category":"Liferay Portal","requires_auth":"none","summary":"Remote attackers can execute arbitrary code via JSON web services due to unsafe deserialization in Liferay Portal.","user_interaction":"not_required","vuln_class":"deserialization"},"analysis_generated_by":"qwen3.8-flash-next","assigner":"mitre","cpe":[{"product":"liferay_portal","vendor":"liferay"}],"cvss":{"score":9.8,"severity":"critical","source":"cisa-adp","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","version":"3.1"},"cwes":[{"id":"CWE-502","name":"Deserialization of Untrusted Data"}],"description":"Deserialization of Untrusted Data in Liferay Portal prior to 7.2.1 CE GA2 allows remote attackers to execute arbitrary code via JSON web services (JSONWS).","ecosystems":["Maven"],"exploits":{"exploitdb":1,"first_seen":"2019-11-25","github_poc":10,"max_poc_stars":117,"metasploit":1,"nuclei":1,"refs":[{"date":"2020-03-26T01:34:38Z","kind":"github_poc","ref":"https://github.com/mzer0one/CVE-2020-7961-POC","stars":117,"title":null},{"date":"2021-01-14T19:18:13Z","kind":"github_poc","ref":"https://github.com/ShutdownRepo/CVE-2020-7961","stars":18,"title":"Exploit script for CVE-2020-7961"},{"date":"2026-07-28T10:19:06Z","kind":"github_poc","ref":"https://github.com/dinosn/liferay-ga4-rce-research","stars":7,"title":"Security research on Liferay CE 7.0.3 GA4: pre-auth RCE as root (CVE-2020-7961 class) reproduced end-to-end, plus 16 more findings — 8+ with no known CVE. Agentic loop-hunt: 25 generators, 22 judges, 9 live validators on Docker. Evidence trail + one-go checker included."},{"date":"2020-05-23T17:01:57Z","kind":"github_poc","ref":"https://github.com/thelostworldFree/CVE-2020-7961-payloads","stars":5,"title":"Deserialization of Untrusted Data in Liferay Portal prior to 7.2.1 CE GA2 allows remote attackers to execute arbitrary code via JSON web services (JSONWS)"},{"date":"2021-04-09T01:50:14Z","kind":"github_poc","ref":"https://github.com/CrackerCat/CVE-2020-7961-Mass","stars":2,"title":"CVE-2020–7961 Mass exploit for Script Kiddies"},{"date":"2019-11-25","kind":"metasploit","ref":"exploit/multi/http/liferay_java_unmarshalling","stars":null,"title":"Liferay Portal Java Unmarshalling via JSONWS RCE"},{"date":"2020-04-16","kind":"exploitdb","ref":"48332","stars":null,"title":"Liferay Portal - Java Unmarshalling via JSONWS RCE (Metasploit)"},{"date":"2021-05-26T18:27:49Z","kind":"github_poc","ref":"https://github.com/Alaa-abdulridha/POC-CVE-2020-7961-Token-iterate","stars":0,"title":"POC-CVE-2020-7961-Token-iterate"}],"tier":"exploited"},"has_fix":true,"headline":"Liferay Portal Deserialization of Untrusted Data","id":"CVE-2020-7961","indexable":true,"kev":{"dateAdded":"2021-11-03","dueDate":"2022-05-03","knownRansomwareCampaignUse":"Unknown","product":"Liferay Portal","requiredAction":"Apply updates per vendor instructions.","vendorProject":"Liferay","vulnerabilityName":"Liferay Portal Deserialization of Untrusted Data Vulnerability"},"kind":"cve","links":{"ecosystem":"Maven","product":"liferay:liferay_portal","products":["liferay:liferay_portal"],"type":"deserialization","year":"2020"},"n_packages":2,"n_references":5,"next":{"headline":"Information disclosure in n/a","id":"CVE-2020-7962"},"packages":[{"ecosystem":"Maven","fixed":["4.35.3"],"introduced":["0"],"last_affected":[],"package":"com.liferay.portal:com.liferay.portal.kernel","purl":null,"source":"GHSA-w7pm-cc4v-f3g8"},{"ecosystem":"Maven","fixed":["4.35.3"],"introduced":["0"],"last_affected":[],"package":"com.liferay.portal:com.liferay.portal.kernel","purl":"pkg:maven/com.liferay.portal/com.liferay.portal.kernel","source":"GHSA-w7pm-cc4v-f3g8"}],"prev":{"headline":"Information disclosure in n/a","id":"CVE-2020-7959"},"products":["n/a"],"published":"2020-03-20","related":[{"cvss_score":9.8,"headline":"File upload in n/a","id":"CVE-2021-33990","kev_date_added":null,"published":"2023-04-16"},{"cvss_score":9.8,"headline":"Liferay Portal Allows RCE via Deserialization of a JSON Payload","id":"CVE-2019-16891","kev_date_added":null,"published":"2019-10-04"},{"cvss_score":9.6,"headline":"Liferay Portal XSS with `p_l_back_url_title` on edit content page","id":"CVE-2023-47797","kev_date_added":null,"published":"2023-11-17"},{"cvss_score":8.8,"headline":"Liferay Portal and Liferay DXP Vulnerable to Arbitrary Code Execution","id":"CVE-2020-13445","kev_date_added":null,"published":"2020-06-10"},{"cvss_score":8.8,"headline":"File upload in n/a","id":"CVE-2018-10795","kev_date_added":null,"published":"2018-05-07"},{"cvss_score":8.8,"headline":"Shell command injection in Liferay Portal","id":"CVE-2010-5327","kev_date_added":null,"published":"2017-01-13"}],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CC BY 4.0","name":"GitHub Advisory Database","prefix":"GHSA"},{"class":"attribution","licence":"US public information, NVD API terms","name":"NVD"},{"class":"open","licence":"CC0 1.0","name":"CISA KEV"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"},{"class":"attribution","licence":"BSD-3-Clause","name":"Metasploit"},{"class":"attribution","licence":"GPL-2.0-or-later","name":"Exploit-DB"},{"class":"open","licence":"CC0","name":"PoC-in-GitHub"}],"ssvc":{"automatable":"yes","exploitation":"active","technical_impact":"total"},"state":"PUBLISHED","updated":"2025-10-21","vendors":["n/a"]},"summary":"Remote attackers can execute arbitrary code via JSON web services due to unsafe deserialization in Liferay Portal.","url":"https://insights.sbomify.com/CVE-2020-7961/"}