Debian dla-4000 : python-sqlparse-doc - security update

high Nessus Plugin ID 213318

Synopsis

The remote Debian host is missing one or more security-related updates.

Description

The remote Debian 11 host has packages installed that are affected by multiple vulnerabilities as referenced in the dla-4000 advisory.

------------------------------------------------------------------------- Debian LTS Advisory DLA-4000-1 [email protected] https://www.debian.org/lts/security/ Guilhem Moulin December 21, 2024 https://wiki.debian.org/LTS
-------------------------------------------------------------------------

Package : sqlparse Version : 0.4.1-1+deb11u1 CVE ID : CVE-2021-32839 CVE-2023-30608 CVE-2024-4340 Debian Bug : 994841 1034615 1070148

Multiple vulnerabilities were found in sqlparse, a non-validating SQL parser for Python, which can lead to Denial of Service.

CVE-2021-32839

Erik Krogh Kristensen discovered that the StripComments filter contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service). The regular expression may cause exponential backtracking on strings containing many repetitions of '\r\n' in SQL comments.

CVE-2023-30608

Erik Krogh Kristensen discovered that the Parser contains a regular expression that is vulnerable to ReDOS (Regular Expression Denial of Service).

CVE-2024-4340

Uriya Yavniely discovered that passing a heavily nested list to sqlparse.parse() may raise a RecursionError exception. A generic SQLParseError is now raised instead.

For Debian 11 bullseye, these problems have been fixed in version 0.4.1-1+deb11u1.

We recommend that you upgrade your sqlparse packages.

For the detailed security status of sqlparse please refer to its security tracker page at:
https://security-tracker.debian.org/tracker/sqlparse

Further information about Debian LTS security advisories, how to apply these updates to your system and frequently asked questions can be found at: https://wiki.debian.org/LTS Attachment:
signature.asc Description: PGP signature

Tenable has extracted the preceding description block directly from the Debian security advisory.

Note that Nessus has not tested for these issues but has instead relied only on the application's self-reported version number.

Solution

Upgrade the python-sqlparse-doc packages.

See Also

https://security-tracker.debian.org/tracker/source-package/sqlparse

https://security-tracker.debian.org/tracker/CVE-2023-30608

https://security-tracker.debian.org/tracker/CVE-2021-32839

https://security-tracker.debian.org/tracker/CVE-2024-4340

https://packages.debian.org/source/bullseye/sqlparse

Plugin Details

Severity: High

ID: 213318

File Name: debian_DLA-4000.nasl

Version: 1.1

Type: local

Agent: unix

Published: 12/21/2024

Updated: 12/21/2024

Supported Sensors: Frictionless Assessment Agent, Nessus Agent, Agentless Assessment, Continuous Assessment, Nessus

Risk Information

VPR

Risk Factor: Low

Score: 3.6

CVSS v2

Risk Factor: Medium

Base Score: 5

Temporal Score: 3.7

Vector: CVSS2#AV:N/AC:L/Au:N/C:N/I:N/A:P

CVSS Score Source: CVE-2021-32839

CVSS v3

Risk Factor: High

Base Score: 7.5

Temporal Score: 6.5

Vector: CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Temporal Vector: CVSS:3.0/E:U/RL:O/RC:C

CVSS Score Source: CVE-2023-30608

Vulnerability Information

CPE: cpe:/o:debian:debian_linux:11.0, p-cpe:/a:debian:debian_linux:python-sqlparse-doc, p-cpe:/a:debian:debian_linux:python3-sqlparse, p-cpe:/a:debian:debian_linux:sqlformat

Required KB Items: Host/local_checks_enabled, Host/Debian/release, Host/Debian/dpkg-l

Exploit Ease: No known exploits are available

Patch Publication Date: 12/21/2024

Vulnerability Publication Date: 9/10/2021

Reference Information

CVE: CVE-2021-32839, CVE-2023-30608, CVE-2024-4340