Advisory

GHSA-pq9p-pc3p-9hm4

Also known as: CVE-2024-9774, PYSEC-2026-1855

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: The source's own band: MODERATE

Dates

Published
2024-12-27 03:31 UTC
Modified
2026-07-07 17:57 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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences