python-sql SQL injection vulnerability
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.
Affected software
Click a technology to see all vulnerabilities affecting it.
| Platform | Package | Vulnerable versions | Fixed in |
|---|---|---|---|
| Python (PyPI) | python-sql | < 1.5.2 | 1.5.2 |
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-9774
- https://access.redhat.com/security/cve/CVE-2024-9774
- https://bugs.tryton.org/python-sql/93
- https://bugzilla.redhat.com/show_bug.cgi?id=2332734
- https://discuss.tryton.org/t/security-release-for-issue-93/7889
- https://discuss.tryton.org/t/security-release-for-issue-93/7889/3
- https://foss.heptapod.net/tryton/python-sql/-/commit/f20551bbb8b3b4c4dd0a2c3d36f377bff6f2f349
- https://github.com/tryton/python-sql
- https://lists.debian.org/debian-lts-announce/2024/10/msg00023.html
- https://pypi.org/project/python-sql
- https://github.com/advisories/GHSA-pq9p-pc3p-9hm4
- CVSS vector
CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N- Weakness (CWE)
CWE-150- Platform
- Python (PyPI)
- Package
python-sql- Disclosed
- 27.12.2024
- Updated
- 11.10.2026 13:19
Sources and licenses
OSV / GitHub Advisory Database - PYSEC-2026-1855 - PyPA Advisory Database; CC BY 4.0
OSV / GitHub Advisory Database - GHSA-pq9p-pc3p-9hm4 - CC BY 4.0
Vulnerability history: python-sql
All published vulnerabilities of this package (Python (PyPI)), newest first. Shows whether this is a one-off slip or a package that needs watching.
This is the only known vulnerability of this package.
Know which vulnerabilities affect your application
With the DockRay integration and software inventory enabled, DockRay checks reported component versions against known vulnerabilities and notifies you about confirmed matches. Coverage depends on the supported technology and available advisory data.