Advisory

PYSEC-2026-1855

Also known as: CVE-2024-9774, GHSA-pq9p-pc3p-9hm4

Summary

python-sql SQL injection vulnerability

Details

A vulnerability was found in python-sql where unary operators do not escape non-Expression (like And and Or) which makes any system exposing those vulnerable to an SQL injection attack.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Dates

Published
2026-07-07 14:34 UTC
Modified
2026-07-07 17:48 UTC

Affected packages and fixes

python-sql

PyPI · All systems

Affected

  • introduced 0, fixed 1.5.2 (ecosystem)

Fixed versions

1.5.2

Fix

  • Fixed version 1.5.2
    pip install --upgrade python-sql==1.5.2

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences