# CVE-2024-9774: Python-sql: python-sql unary operators does not escape non-expression

- Severity: Medium 6.5 (CVSS:3.0, scored by redhat) `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.68%, higher than 53% of CVEs (2026-12-02)
- Published: 2024-12-27T02:00:12.451Z
- Modified: 2026-07-07T17:57:06.428Z
- Also known as: GHSA-pq9p-pc3p-9hm4, PYSEC-2026-1855
- Weaknesses: CWE-150
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: redhat

## Description

A vulnerability was found in python-sql where unary operators do not escape non-Expression.

(As written by CVE List.)

## Affected

- python-sql: before 1.5.2
- python-sql (PyPI): before 1.5.2

## Every score

- redhat: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- GitHub: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`
- PyPA Advisory Database: CVSS:3.0 6.5 Medium `CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N`

## References

- <https://access.redhat.com/security/cve/CVE-2024-9774> (vdb-entry, web)
- <https://bugzilla.redhat.com/show_bug.cgi?id=2332734> (issue-tracking, web)
- <https://discuss.tryton.org/t/security-release-for-issue-93/7889/3> (web)
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00023.html> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-9774> (advisory)
- <https://bugs.tryton.org/python-sql/93> (web)
- <https://discuss.tryton.org/t/security-release-for-issue-93/7889> (web)
- <https://foss.heptapod.net/tryton/python-sql/-/commit/f20551bbb8b3b4c4dd0a2c3d36f377bff6f2f349> (web)
- <https://github.com/tryton/python-sql> (package)
- <https://pypi.org/project/python-sql> (package)
- <https://github.com/advisories/GHSA-pq9p-pc3p-9hm4> (advisory)

## Sources

- CVE List: [CVE-2024-9774](https://www.cve.org/CVERecord?id=CVE-2024-9774), CVE Terms of Use, modified 2025-08-30
- GitHub Advisory Database: [GHSA-pq9p-pc3p-9hm4](https://github.com/advisories/GHSA-pq9p-pc3p-9hm4), CC-BY-4.0, modified 2026-07-07
- NVD: [CVE-2024-9774](https://nvd.nist.gov/vuln/detail/CVE-2024-9774), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-1855](https://osv.dev/vulnerability/PYSEC-2026-1855), CC-BY-4.0, modified 2026-07-07

---

Page: https://cve.day/CVE-2024-9774 · Whole record: https://cve.day/CVE-2024-9774.json · Rebuilt by cve.day 2026-11-25T22:58:50.384Z
