Track vulnerabilities like this one. Sign up free to get alerted when software you use is affected.
6.5

CVE-2024-9774: Python SQL Library Allows Unescaped Input

CVE-2024-9774 · published 1 year ago
Summary

A vulnerability in the Python SQL library allows attackers to inject malicious code into databases. This can happen when certain types of data are inserted directly into database queries. To protect your system, update to the latest version of the library.

What to do
  • Update b2ck srl python-sql to version 1.5.2.
  • Update canonical python-sql to version 0.8-1ubuntu0.1~esm1.
  • Update canonical python-sql to version 0.9-1ubuntu0.1~esm1.
  • Update canonical python-sql to version 1.1.0-1ubuntu0.1~esm1.
  • Update canonical python-sql to version 1.3.0-1ubuntu0.1~esm1.
  • Update canonical python-sql to version 1.4.0-1+deb12u1build0.24.04.1.
Affected software
Ecosystem VendorProductAffected versions
pip b2ck srl python-sql < 1.5.2
Fix: upgrade to 1.5.2
Ubuntu:Pro:16.04:LTS canonical python-sql < 0.8-1ubuntu0.1~esm1
Fix: upgrade to 0.8-1ubuntu0.1~esm1
Ubuntu:Pro:18.04:LTS canonical python-sql < 0.9-1ubuntu0.1~esm1
Fix: upgrade to 0.9-1ubuntu0.1~esm1
Ubuntu:Pro:20.04:LTS canonical python-sql < 1.1.0-1ubuntu0.1~esm1
Fix: upgrade to 1.1.0-1ubuntu0.1~esm1
Ubuntu:Pro:22.04:LTS canonical python-sql < 1.3.0-1ubuntu0.1~esm1
Fix: upgrade to 1.3.0-1ubuntu0.1~esm1
Ubuntu:24.04:LTS canonical python-sql < 1.4.0-1+deb12u1build0.24.04.1
Fix: upgrade to 1.4.0-1+deb12u1build0.24.04.1
Original advisory text
A vulnerability was found in python-sql where unary operators do not escape non-Expression.
A vulnerability was found in python-sql where unary operators do not escape non-Expression.
Fix within
Internet-facing 14 days
Internal At next upgrade
  • Not known to be exploited
  • Needs hands-on effort to exploit
  • Gives an attacker full control
Severity
6.5 Medium
Exploitation
<1% chance of attack within 30 days
Type
CWE-150Improper Neutralization of Escape, Meta, or Control Sequences
Timeline
Published27 Dec 2024
Updated4 Nov 2026
First seen6 Mar 2026
Track software like this
Free during beta