GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

OPENSUSE-SU-2026:21690-1

Vulnerability from csaf_opensuse - Published: 2026-08-30 14:33 - Updated: 2026-09-17 17:42
Summary
Security update for python-sqlparse
Severity
Important
Notes
Title of the patch: Security update for python-sqlparse
Description of the patch: This update for python-sqlparse fixes the following issues: - CVE-2026-54284: high algorithm complexity when parsing SQL payloads with hundreds of nesting levels can lead to denial of service via excessive resource consumption (bsc#1275459). - CVE-2026-59893: quadratic complexity when processing unmatched dollar-quoted literal and multiline-comment delimiters can lead to denial of service (bsc#1275461). - CVE-2026-59894: improper backlash escaping allows for injection of Python or PHP code via a crafted SQL input (bsc#1275460). - CVE-2026-71491: quadratic complexity in `group_comments` when processing comment-only statements can lead to denial of services (bsc#1275466). - Incomplete GHSA-27jp-wm6q-gp25 patch (bsc#1268597).
Patchnames: openSUSE-Leap-16.0-1546
Terms of use: CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).
Affected products
Product Identifier Version Remediation
Unresolved product id: openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch
Vendor Fix
Threats
Impact important
Affected products
Recommended 1 product, the same list as for CVE-2026-54284
Threats
Impact important
Affected products
Recommended 1 product, the same list as for CVE-2026-54284
Threats
Impact moderate
Affected products
Recommended 1 product, the same list as for CVE-2026-54284
Threats
Impact important

{
  "document": {
    "aggregate_severity": {
      "namespace": "https://www.suse.com/support/security/rating/",
      "text": "important"
    },
    "category": "csaf_security_advisory",
    "csaf_version": "2.0",
    "distribution": {
      "text": "Copyright 2024 SUSE LLC. All rights reserved.",
      "tlp": {
        "label": "WHITE",
        "url": "https://www.first.org/tlp/"
      }
    },
    "lang": "en",
    "notes": [
      {
        "category": "summary",
        "text": "Security update for python-sqlparse",
        "title": "Title of the patch"
      },
      {
        "category": "description",
        "text": "This update for python-sqlparse fixes the following issues:\n\n- CVE-2026-54284: high algorithm complexity when parsing SQL payloads with hundreds of nesting levels can lead to denial\n  of service via excessive resource consumption (bsc#1275459).\n- CVE-2026-59893: quadratic complexity when processing unmatched dollar-quoted literal and multiline-comment delimiters\n  can lead to denial of service (bsc#1275461).\n- CVE-2026-59894: improper backlash escaping allows for injection of Python or PHP code via a crafted SQL input\n  (bsc#1275460).\n- CVE-2026-71491: quadratic complexity in `group_comments` when processing comment-only statements can lead to denial\n  of services (bsc#1275466).\n- Incomplete GHSA-27jp-wm6q-gp25 patch (bsc#1268597).\n",
        "title": "Description of the patch"
      },
      {
        "category": "details",
        "text": "openSUSE-Leap-16.0-1546",
        "title": "Patchnames"
      },
      {
        "category": "legal_disclaimer",
        "text": "CSAF 2.0 data is provided by SUSE under the Creative Commons License 4.0 with Attribution (CC-BY-4.0).",
        "title": "Terms of use"
      }
    ],
    "publisher": {
      "category": "vendor",
      "contact_details": "https://www.suse.com/support/security/contact/",
      "name": "SUSE Product Security Team",
      "namespace": "https://www.suse.com/"
    },
    "references": [
      {
        "category": "external",
        "summary": "SUSE ratings",
        "url": "https://www.suse.com/support/security/rating/"
      },
      {
        "category": "self",
        "summary": "URL of this CSAF notice",
        "url": "https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_21690-1.json"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1268597",
        "url": "https://bugzilla.suse.com/1268597"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1275459",
        "url": "https://bugzilla.suse.com/1275459"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1275460",
        "url": "https://bugzilla.suse.com/1275460"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1275461",
        "url": "https://bugzilla.suse.com/1275461"
      },
      {
        "category": "self",
        "summary": "SUSE Bug 1275466",
        "url": "https://bugzilla.suse.com/1275466"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2026-54284 page",
        "url": "https://www.suse.com/security/cve/CVE-2026-54284/"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2026-59893 page",
        "url": "https://www.suse.com/security/cve/CVE-2026-59893/"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2026-59894 page",
        "url": "https://www.suse.com/security/cve/CVE-2026-59894/"
      },
      {
        "category": "self",
        "summary": "SUSE CVE CVE-2026-71491 page",
        "url": "https://www.suse.com/security/cve/CVE-2026-71491/"
      }
    ],
    "title": "Security update for python-sqlparse",
    "tracking": {
      "current_release_date": "2026-09-17T17:42:52Z",
      "generator": {
        "date": "2026-08-30T14:33:33Z",
        "engine": {
          "name": "cve-database.git:bin/generate-csaf.pl",
          "version": "1"
        }
      },
      "id": "openSUSE-SU-2026:21690-1",
      "initial_release_date": "2026-08-30T14:33:33Z",
      "revision_history": [
        {
          "date": "2026-08-30T14:33:33Z",
          "number": "1",
          "summary": "Current version"
        },
        {
          "date": "2026-09-16T20:46:24Z",
          "number": "2",
          "summary": "unknown changes"
        },
        {
          "date": "2026-09-16T21:47:21Z",
          "number": "3",
          "summary": "unknown changes"
        },
        {
          "date": "2026-09-17T17:42:52Z",
          "number": "4",
          "summary": "unknown changes"
        }
      ],
      "status": "final",
      "version": "4"
    }
  },
  "product_tree": {
    "branches": [
      {
        "branches": [
          {
            "branches": [
              {
                "category": "product_version",
                "name": "python313-sqlparse-0:0.5.3-160000.4.1.noarch",
                "product": {
                  "name": "python313-sqlparse-0:0.5.3-160000.4.1.noarch",
                  "product_id": "python313-sqlparse-0:0.5.3-160000.4.1.noarch",
                  "product_identification_helper": {
                    "cpe": "cpe:2.3:a:sqlparse_project:sqlparse:0.5.3:*:*:*:*:*:*:*",
                    "purl": "pkg:rpm/suse/python313-sqlparse@0.5.3-160000.4.1?arch=noarch\u0026upstream=python-sqlparse-0:0.5.3-160000.4.1.src.rpm"
                  }
                }
              }
            ],
            "category": "architecture",
            "name": "noarch"
          },
          {
            "branches": [
              {
                "category": "product_name",
                "name": "openSUSE Leap 16.0",
                "product": {
                  "name": "openSUSE Leap 16.0",
                  "product_id": "openSUSE Leap 16.0"
                }
              }
            ],
            "category": "product_family",
            "name": "SUSE Linux Enterprise"
          }
        ],
        "category": "vendor",
        "name": "SUSE"
      }
    ],
    "relationships": [
      {
        "category": "default_component_of",
        "full_product_name": {
          "name": "python313-sqlparse-0:0.5.3-160000.4.1.noarch as component of openSUSE Leap 16.0",
          "product_id": "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
        },
        "product_reference": "python313-sqlparse-0:0.5.3-160000.4.1.noarch",
        "relates_to_product_reference": "openSUSE Leap 16.0"
      }
    ]
  },
  "vulnerabilities": [
    {
      "cve": "CVE-2026-54284",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2026-54284"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, TokenList construction and string conversion in sqlparse/sql.py repeatedly flatten nested token subtrees constructed by group_parenthesis and group_case, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split() before depth and token limits terminate processing. This issue is fixed in version 0.6.0.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2026-54284",
          "url": "https://www.suse.com/security/cve/CVE-2026-54284"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1275459 for CVE-2026-54284",
          "url": "https://bugzilla.suse.com/1275459"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2026-08-30T14:33:33Z",
          "details": "important"
        }
      ],
      "title": "CVE-2026-54284"
    },
    {
      "cve": "CVE-2026-59893",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2026-59893"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, SQL_REGEX in sqlparse/keywords.py and the per-position loop in sqlparse/lexer.py repeatedly scan unmatched dollar-quoted literal and multiline-comment delimiters, causing quadratic CPU consumption through sqlparse.parse(), sqlparse.format(), and sqlparse.split(). This issue is fixed in version 0.6.0.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2026-59893",
          "url": "https://www.suse.com/security/cve/CVE-2026-59893"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1275461 for CVE-2026-59893",
          "url": "https://bugzilla.suse.com/1275461"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2026-08-30T14:33:33Z",
          "details": "important"
        }
      ],
      "title": "CVE-2026-59893"
    },
    {
      "cve": "CVE-2026-59894",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2026-59894"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, sqlparse/filters/output.py fails to escape existing backslashes before quotes in sqlparse.format output_format=\u0027python\u0027 and output_format=\u0027php\u0027 and the corresponding sqlformat -l modes, allowing crafted SQL to terminate the generated string and inject Python or PHP code when a downstream consumer executes or imports the generated source. This issue is fixed in version 0.6.0.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2026-59894",
          "url": "https://www.suse.com/security/cve/CVE-2026-59894"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1275460 for CVE-2026-59894",
          "url": "https://bugzilla.suse.com/1275460"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 5.5,
            "baseSeverity": "MEDIUM",
            "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2026-08-30T14:33:33Z",
          "details": "moderate"
        }
      ],
      "title": "CVE-2026-59894"
    },
    {
      "cve": "CVE-2026-71491",
      "ids": [
        {
          "system_name": "SUSE CVE Page",
          "text": "https://www.suse.com/security/cve/CVE-2026-71491"
        }
      ],
      "notes": [
        {
          "category": "general",
          "text": "sqlparse is a non-validating SQL parser module for Python. Prior to 0.6.0, group_comments in sqlparse/engine/grouping.py repeatedly rescans comment-only statements before the MAX_GROUPING_TOKENS guard, causing quadratic CPU consumption through sqlparse.parse() and sqlparse.format(sql, strip_comments=True). This issue is fixed in version 0.6.0.",
          "title": "CVE description"
        }
      ],
      "product_status": {
        "recommended": [
          "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
        ]
      },
      "references": [
        {
          "category": "external",
          "summary": "CVE-2026-71491",
          "url": "https://www.suse.com/security/cve/CVE-2026-71491"
        },
        {
          "category": "external",
          "summary": "SUSE Bug 1275466 for CVE-2026-71491",
          "url": "https://bugzilla.suse.com/1275466"
        }
      ],
      "remediations": [
        {
          "category": "vendor_fix",
          "details": "To install this SUSE Security Update use the SUSE recommended installation methods like YaST online_update or \"zypper patch\".\n",
          "product_ids": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "scores": [
        {
          "cvss_v3": {
            "baseScore": 7.5,
            "baseSeverity": "HIGH",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
            "version": "3.1"
          },
          "products": [
            "openSUSE Leap 16.0:python313-sqlparse-0:0.5.3-160000.4.1.noarch"
          ]
        }
      ],
      "threats": [
        {
          "category": "impact",
          "date": "2026-08-30T14:33:33Z",
          "details": "important"
        }
      ],
      "title": "CVE-2026-71491"
    }
  ]
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…