Advisory Database
  • Advisories
  • Dependency Scanning
  1. pypi
  2. ›
  3. python-sql
  4. ›
  5. CVE-2024-9774

CVE-2024-9774: python-sql SQL injection vulnerability

December 27, 2024 (updated February 7, 2025)

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.

References

  • access.redhat.com/security/cve/CVE-2024-9774
  • bugs.tryton.org/python-sql/93
  • bugzilla.redhat.com/show_bug.cgi?id=2332734
  • discuss.tryton.org/t/security-release-for-issue-93/7889
  • discuss.tryton.org/t/security-release-for-issue-93/7889/3
  • foss.heptapod.net/tryton/python-sql/-/commit/f20551bbb8b3b4c4dd0a2c3d36f377bff6f2f349
  • github.com/advisories/GHSA-pq9p-pc3p-9hm4
  • github.com/tryton/python-sql
  • lists.debian.org/debian-lts-announce/2024/10/msg00023.html
  • nvd.nist.gov/vuln/detail/CVE-2024-9774

Code Behaviors & Features

Detect and mitigate CVE-2024-9774 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 1.5.2

Fixed versions

  • 1.5.2

Solution

Upgrade to version 1.5.2 or above.

Impact 6.5 MEDIUM

CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:H/A:N

Learn more about CVSS

Weakness

  • CWE-150: Improper Neutralization of Escape, Meta, or Control Sequences

Source file

pypi/python-sql/CVE-2024-9774.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:49 +0000.