Legacy Knowledge Base
Published Jul. 2, 2025

CVE-2021-27568 json-smart v2 through v2.4

Written By

Ankit Gupta

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

Legacy Article

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

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.
Did this article resolve your issue ?

Legacy Knowledge Base