UBUNTU-CVE-2023-30608

Source
https://ubuntu.com/security/CVE-2023-30608
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2023/UBUNTU-CVE-2023-30608.json
JSON Data
https://api.osv.dev/v1/vulns/UBUNTU-CVE-2023-30608
Related
Published
2023-04-18T22:15:00Z
Modified
2023-04-18T22:15:00Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

sqlparse is a non-validating SQL parser module for Python. In affected versions the SQL parser contains a regular expression that is vulnerable to ReDoS (Regular Expression Denial of Service). This issue was introduced by commit e75e358. The vulnerability may lead to Denial of Service (DoS). This issues has been fixed in sqlparse 0.4.4 by commit c457abd5f. Users are advised to upgrade. There are no known workarounds for this issue.

References

Affected packages

Ubuntu:18.04:LTS / sqlparse

Package

Name
sqlparse
Purl
pkg:deb/ubuntu/sqlparse?arch=src?distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.2.4-0.1ubuntu0.1

Affected versions

0.*

0.2.2-1
0.2.4-0.1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.2.4-0.1ubuntu0.1",
            "binary_name": "pypy-sqlparse"
        },
        {
            "binary_version": "0.2.4-0.1ubuntu0.1",
            "binary_name": "python-sqlparse"
        },
        {
            "binary_version": "0.2.4-0.1ubuntu0.1",
            "binary_name": "python-sqlparse-doc"
        },
        {
            "binary_version": "0.2.4-0.1ubuntu0.1",
            "binary_name": "python3-sqlparse"
        },
        {
            "binary_version": "0.2.4-0.1ubuntu0.1",
            "binary_name": "sqlformat"
        }
    ]
}

Ubuntu:20.04:LTS / sqlparse

Package

Name
sqlparse
Purl
pkg:deb/ubuntu/sqlparse?arch=src?distro=focal

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.2.4-3ubuntu0.1

Affected versions

0.*

0.2.4-1
0.2.4-1build1
0.2.4-2
0.2.4-3

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.2.4-3ubuntu0.1",
            "binary_name": "pypy-sqlparse"
        },
        {
            "binary_version": "0.2.4-3ubuntu0.1",
            "binary_name": "python-sqlparse-doc"
        },
        {
            "binary_version": "0.2.4-3ubuntu0.1",
            "binary_name": "python3-sqlparse"
        },
        {
            "binary_version": "0.2.4-3ubuntu0.1",
            "binary_name": "sqlformat"
        }
    ]
}

Ubuntu:22.04:LTS / sqlparse

Package

Name
sqlparse
Purl
pkg:deb/ubuntu/sqlparse?arch=src?distro=jammy

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
0.4.2-1ubuntu0.22.04.1

Affected versions

0.*

0.4.1-1ubuntu1
0.4.2-1

Ecosystem specific

{
    "availability": "No subscription required",
    "ubuntu_priority": "medium",
    "binaries": [
        {
            "binary_version": "0.4.2-1ubuntu0.22.04.1",
            "binary_name": "python-sqlparse-doc"
        },
        {
            "binary_version": "0.4.2-1ubuntu0.22.04.1",
            "binary_name": "python3-sqlparse"
        },
        {
            "binary_version": "0.4.2-1ubuntu0.22.04.1",
            "binary_name": "sqlformat"
        }
    ]
}