Skip to content
Heist/ feed
Back to feed
Critical

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-42120

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-42120
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 01:38 UTC · Revision 1

Source evidence

CVE-2022-42120

core-osv · Original source

Published 15 Nov 2022, 00:00 UTC

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.

osv:CVE-2022-42120
Complete source record
{
  "id": "b7c0ca957eef5381adfaab6dceb547859316127e4360f9186dad17589367f2e9",
  "url": "https://osv.dev/vulnerability/CVE-2022-42120",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-42120",
    "summary": "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.",
    "evidence": "osv:CVE-2022-42120",
    "products": [],
    "severity": "critical",
    "structured": {
      "id": "CVE-2022-42120",
      "aliases": [
        "CVE-2022-42120",
        "GHSA-r5fj-j449-vqw2"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/liferay/liferay-portal",
              "type": "GIT",
              "events": [
                {
                  "introduced": "77b773677e0fa17b1a869414ad66220245ba96a8"
                },
                {
                  "last_affected": "ad25d87862c8d2031396d2909c9add79c23f839e"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "cpe": "cpe:2.3:a:liferay:liferay_portal:*:*:*:*:*:*:*:*",
                    "range": [
                      {
                        "introduced": "7.3.3"
                      },
                      {
                        "last_affected": "7.4.3.16"
                      }
                    ],
                    "source": "CPE_RANGE"
                  }
                ]
              }
            }
          ],
          "versions": [
            "7.4.3.16-ga16",
            "7.4.3.7-ga7",
            "7.4.3.6-ga6",
            "7.4.3.5-ga5",
            "7.4.3.4-ga4",
            "7.4.2-ga3",
            "7.4.1-ga2",
            "7.4.0-ga1",
            "7.3.5-ga6",
            "7.3.4-ga5",
            "test-fix-pack-base-7310",
            "7.3.3-ga4"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42120.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:52.535999016Z",
      "provider": "osv",
      "references": [
        "https://issues.liferay.com/browse/LPE-17513",
        "https://portal.liferay.dev/learn/security/known-vulnerabilities/-/asset_publisher/HbL5mxmVrnXW/content/cve-2022-42120",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42120.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-42120"
      ],
      "provider_metadata": {
        "cna_assigner": "mitre",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42120.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-42120",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 521423,
  "published_at": "2022-11-15T00:00:00+00:00"
}