Advisory

GHSA-887w-45rq-vxgf

Also known as: CVE-2019-7164, PYSEC-2019-123

Summary

SQLAlchemy vulnerable to SQL Injection via order_by parameter

Details

SQLAlchemy before 1.3.0b3 allows SQL Injection via the order_by parameter. The fix (commit 30307c4) was applied only to the main branch and was never backported to the 1.2.x release line; all 1.2.x versions remain vulnerable.

Severity

Critical Basis: The source's own band: CRITICAL

Dates

Published
2019-04-16 15:50 UTC
Modified
2026-06-09 18:41 UTC

Affected packages and fixes

sqlalchemy

PyPI · All systems

Affected

  • introduced 0, fixed 1.3.0b3 (ecosystem)

Fixed versions

1.3.0b3

Fix

  • Fixed version 1.3.0b3
    pip install --upgrade sqlalchemy==1.3.0b3

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