Issue
-
Steps to Reproduce:
The json-smart.jar's can be found here:
osgi/marketplace/Liferay%20Forms%20and%20Workflow%20-%20Liferay%20Dynamic%20Data%20Mapping%20-%20Impl.lpkg/com.liferay.dynamic.data.mapping.data.provider.impl-3.0.17.jar/lib/json-smart-2.2.1.jar
osgi/marketplace/Liferay%20Foundation%20-%20Liferay%20Security%20SSO%20-%20Impl.lpkg/com.liferay.portal.security.sso.openid.connect.impl-4.0.42.jar/lib/json-smart-2.3.jar
Notes:
Based on https://nvd.nist.gov/vuln/detail/CVE-2021-27568, the solution is to catch more exceptions in JSONParserBase.java. This class exists in our json-smart libraries.Expected behavior:
Liferay 7.2 is not vulnerable to CVE-2021-27568
Actual Behavior:
Liferay 7.2 appears to be vulnerable to CVE-2021-27568.
Environment
- Liferay DXP 7.2
- Liferay DXP 7.3
Resolution
- The observed behavior is a known issue and is fixed in liferay-fix-pack-dxp-14 for 7.2.
- The observed behavior is a known issue and is fixed in liferay-fix-pack-dxp-2 for 7.3.
- Installing Fix Packs and Hotfixes on Liferay DXP will guide to install these Fixpack in your environment.
- Issue is resolved in version 2.4.2 for both accessors-smart and json-smart jars.