← Back to CVE Explorer

CVE-2026-35194

Full vulnerability record from the local CVENow database.

Description

Code injection in SQL code generation in Apache Flink 1.15.0 through 1.20.x and 2.0.0 through 2.x allows authenticated users with query submission privileges to execute arbitrary code on TaskManagers via maliciously crafted SQL queries. The vulnerability affects JSON functions (1.15.0+) and LIKE expressions with ESCAPE clauses (1.17.0+). User-controlled strings are interpolated into generated Java code without proper escaping, allowing attackers to break out of string literals and inject arbitrary expressions. Users are recommended to upgrade to either version 1.20.4, 2.0.2, 2.1.2 or 2.2.1, which fixes this issue.

Severity
HIGH
CVSS score
8.1 (v3.1)
Vulnerability status
Analyzed
Source identifier
Published
2026-05-15 16:16:14.340000
Last modified
2026-10-26 14:10:00.130000
View original CVE JSON
{
  "id": "CVE-2026-35194",
  "sourceIdentifier": "[email protected]",
  "published": "2026-05-15T16:16:14.340",
  "lastModified": "2026-10-26T14:10:00.130",
  "vulnStatus": "Analyzed",
  "cveTags": [],
  "descriptions": [
    {
      "lang": "en",
      "value": "Code injection in SQL code generation in Apache Flink 1.15.0 through 1.20.x and 2.0.0 through 2.x allows authenticated users with query submission privileges to execute arbitrary code on TaskManagers via maliciously crafted SQL queries. The vulnerability affects JSON functions (1.15.0+) and LIKE expressions with ESCAPE clauses (1.17.0+). User-controlled strings are interpolated into generated Java code without proper escaping, allowing attackers to break out of string literals and inject arbitrary expressions.\n\nUsers are recommended to upgrade to either version 1.20.4, 2.0.2, 2.1.2 or 2.2.1, which fixes this issue."
    },
    {
      "lang": "es",
      "value": "Inyección de código en la generación de código SQL en Apache Flink 1.15.0 hasta 1.20.x y 2.0.0 hasta 2.x permite a usuarios autenticados con privilegios de envío de consultas ejecutar código arbitrario en los TaskManagers a través de consultas SQL maliciosamente elaboradas. La vulnerabilidad afecta a las funciones JSON (1.15.0+) y a las expresiones LIKE con cláusulas ESCAPE (1.17.0+). Las cadenas controladas por el usuario se interpolan en el código Java generado sin el escape adecuado, permitiendo a los atacantes salir de los literales de cadena e inyectar expresiones arbitrarias.\n\nSe recomienda a los usuarios actualizar a la versión 1.20.4, 2.0.2, 2.1.2 o 2.2.1, que corrige este problema."
    }
  ],
  "affected": [
    {
      "source": "[email protected]",
      "affectedData": [
        {
          "vendor": "Apache Software Foundation",
          "product": "Apache Flink",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "1.15.0",
              "lessThan": "1.20.4,2.0.2,2.1.2,2.2.1",
              "versionType": "semver",
              "status": "affected"
            }
          ]
        }
      ]
    }
  ],
  "metrics": {
    "cvssMetricV31": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "type": "Secondary",
        "cvssData": {
          "version": "3.1",
          "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
          "baseScore": 8.1,
          "baseSeverity": "HIGH",
          "attackVector": "NETWORK",
          "attackComplexity": "LOW",
          "privilegesRequired": "LOW",
          "userInteraction": "NONE",
          "scope": "UNCHANGED",
          "confidentialityImpact": "HIGH",
          "integrityImpact": "HIGH",
          "availabilityImpact": "NONE"
        },
        "exploitabilityScore": 2.8,
        "impactScore": 5.2
      }
    ],
    "ssvcV203": [
      {
        "source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
        "ssvcData": {
          "timestamp": "2026-05-15T18:27:22.779317Z",
          "id": "CVE-2026-35194",
          "options": [
            {
              "exploitation": "none"
            },
            {
              "automatable": "no"
            },
            {
              "technicalImpact": "total"
            }
          ],
          "role": "CISA Coordinator",
          "version": "2.0.3"
        }
      }
    ]
  },
  "weaknesses": [
    {
      "source": "[email protected]",
      "type": "Secondary",
      "description": [
        {
          "lang": "en",
          "value": "CWE-94"
        }
      ]
    }
  ],
  "configurations": [
    {
      "nodes": [
        {
          "operator": "OR",
          "negate": false,
          "cpeMatch": [
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "1.15.0",
              "versionEndExcluding": "1.20.4",
              "matchCriteriaId": "F1913CE8-6249-4A07-A8C4-6DC992CB43F3"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "2.0.0",
              "versionEndExcluding": "2.0.2",
              "matchCriteriaId": "FE1A86BF-0BCE-4731-8600-A460BFBE085F"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:apache:flink:*:*:*:*:*:*:*:*",
              "versionStartIncluding": "2.1.0",
              "versionEndExcluding": "2.1.2",
              "matchCriteriaId": "CD6E7A3C-71C6-4209-8EC3-E800F60BAA5D"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:apache:flink:2.2.0:-:*:*:*:*:*:*",
              "matchCriteriaId": "3B77D4A2-805C-4E37-9C9F-3B977F4C1857"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:apache:flink:2.2.0:rc1:*:*:*:*:*:*",
              "matchCriteriaId": "883F1C45-C050-4D9A-BA6D-1787CC67C4B2"
            },
            {
              "vulnerable": true,
              "criteria": "cpe:2.3:a:apache:flink:2.2.0:rc2:*:*:*:*:*:*",
              "matchCriteriaId": "D3C268E9-29B9-4FF9-8008-FF942C9C8DDA"
            }
          ]
        }
      ]
    }
  ],
  "references": [
    {
      "url": "https://lists.apache.org/thread/qh52bw4hhvy7n2owd8b3bt51mz0lvj9x",
      "source": "[email protected]",
      "tags": [
        "Mailing List",
        "Vendor Advisory"
      ]
    },
    {
      "url": "http://www.openwall.com/lists/oss-security/2026/05/15/20",
      "source": "af854a3a-2127-422b-91ae-364da2661108",
      "tags": [
        "Mailing List",
        "Third Party Advisory"
      ]
    }
  ]
}