{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "7.3-NA"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "7.4-NA"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "database_specific": {
            "versions": [
              {
                "introduced": "7.3.3"
              },
              {
                "last_affected": "7.4.3.16"
              }
            ]
          },
          "events": [
            {
              "introduced": "77b773677e0fa17b1a869414ad66220245ba96a8"
            },
            {
              "last_affected": "ad25d87862c8d2031396d2909c9add79c23f839e"
            }
          ],
          "repo": "https://github.com/liferay/liferay-portal",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "A SQL injection vulnerability in the Fragment module in Liferay Portal 7.3.3 through 7.4.3.16, and Liferay DXP 7.3 before update 4, and 7.4 before update 17 allows attackers to execute arbitrary SQL commands via a PortletPreferences' `namespace` attribute.",
  "id": "CVE-2022-42120",
  "modified": "2026-03-15T13:47:00.393120301Z",
  "published": "2022-11-15T01:15:12.733Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "http://liferay.com"
    },
    {
      "type": "ADVISORY",
      "url": "https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120"
    },
    {
      "type": "REPORT",
      "url": "https://issues.liferay.com/browse/LPE-17513"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ]
}