{"id":"CVE-2024-9774","aliases":["CVE-2024-9774","GHSA-pq9p-pc3p-9hm4","PYSEC-2026-1855"],"related":[],"kind":"vulnerability","state":"published","title":"Python-sql: python-sql unary operators does not escape non-expression","summary":"A vulnerability was found in python-sql where unary operators do not escape non-Expression.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A vulnerability was found in python-sql where unary operators do not escape non-Expression.","source":"cvelist"},{"lang":"en","text":"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.","format":"markdown","source":"ghsa"},{"lang":"es","text":"Se encontró una vulnerabilidad en python-sql donde los operadores unarios no escapan a expresiones no expresadas.","source":"nvd"}],"published":"2024-12-27T02:00:12.451Z","modified":"2026-07-07T17:57:06.428Z","severity":{"scorer":"redhat","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},"severities":[{"scorer":"redhat","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N","score":6.5,"rating":"MEDIUM"}],"cwes":["CWE-150"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"1.5.2","status":"affected"}],"package":"python-sql","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.5.2"}],"ecosystem":"PyPI","package":"python-sql","purl":"pkg:pypi/python-sql","source":"ghsa"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"1.5.2"}],"ecosystem":"PyPI","package":"python-sql","purl":"pkg:pypi/python-sql","source":"pysec"}],"references":[{"url":"https://access.redhat.com/security/cve/CVE-2024-9774","tags":["vdb-entry","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2332734","tags":["issue-tracking","web","x-refsource-redhat"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://discuss.tryton.org/t/security-release-for-issue-93/7889/3","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://lists.debian.org/debian-lts-announce/2024/10/msg00023.html","tags":["web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9774","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://bugs.tryton.org/python-sql/93","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://discuss.tryton.org/t/security-release-for-issue-93/7889","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://foss.heptapod.net/tryton/python-sql/-/commit/f20551bbb8b3b4c4dd0a2c3d36f377bff6f2f349","tags":["web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/tryton/python-sql","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://pypi.org/project/python-sql","tags":["package"],"sources":["pysec"]},{"url":"https://github.com/advisories/GHSA-pq9p-pc3p-9hm4","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"redhat","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2024-12-27T15:09:53.093Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-9774","url":"https://www.cve.org/CVERecord?id=CVE-2024-9774","licence":"CVE Terms of Use","modified":"2025-08-30T21:04:45.504Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-pq9p-pc3p-9hm4","url":"https://github.com/advisories/GHSA-pq9p-pc3p-9hm4","licence":"CC-BY-4.0","modified":"2026-07-07T17:57:06.428Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-9774","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-9774","licence":"Public domain","modified":"2026-06-17T08:25:14.097Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-1855","url":"https://osv.dev/vulnerability/PYSEC-2026-1855","licence":"CC-BY-4.0","modified":"2026-07-07T17:48:08.050Z"}],"updatedAt":"2026-11-25T22:58:50.384Z","epss":{"score":0.00681,"percentile":0.53747,"date":"2026-12-02T12:00:21.000Z"}}