PYSEC-2026-1766

Vulnerability from pysec - Published: 2026-07-07 16:03 - Updated: 2026-07-07 17:25
VLAI
Details

SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.

Impacted products
Name purl
pg8000 pkg:pypi/pg8000

{
  "affected": [
    {
      "package": {
        "ecosystem": "PyPI",
        "name": "pg8000",
        "purl": "pkg:pypi/pg8000"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "1.31.5"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ],
      "versions": [
        "1.00",
        "1.01",
        "1.02",
        "1.03",
        "1.04",
        "1.05",
        "1.06",
        "1.07",
        "1.08",
        "1.10.0",
        "1.10.1",
        "1.10.2",
        "1.10.3",
        "1.10.4",
        "1.10.5",
        "1.10.6",
        "1.11.0",
        "1.12.0",
        "1.12.1",
        "1.12.2",
        "1.12.3",
        "1.12.4",
        "1.12.5",
        "1.13.1",
        "1.13.2",
        "1.14.0",
        "1.14.1",
        "1.15.0",
        "1.15.1",
        "1.15.2",
        "1.15.3",
        "1.16.0",
        "1.16.1",
        "1.16.2",
        "1.16.3",
        "1.16.4",
        "1.16.5",
        "1.16.6",
        "1.17.0",
        "1.18.0",
        "1.19.0",
        "1.19.1",
        "1.19.2",
        "1.19.3",
        "1.19.4",
        "1.19.5",
        "1.20.0",
        "1.21.0",
        "1.21.1",
        "1.21.2",
        "1.21.3",
        "1.22.0",
        "1.22.1",
        "1.23.0",
        "1.24.0",
        "1.24.1",
        "1.24.2",
        "1.25.0",
        "1.26.0",
        "1.26.1",
        "1.27.0",
        "1.27.1",
        "1.28.0",
        "1.28.1",
        "1.28.2",
        "1.28.3",
        "1.29.0",
        "1.29.1",
        "1.29.2",
        "1.29.3",
        "1.29.4",
        "1.29.5",
        "1.29.6",
        "1.29.7",
        "1.29.8",
        "1.30.1",
        "1.30.2",
        "1.30.3",
        "1.30.4",
        "1.30.5",
        "1.31.0",
        "1.31.1",
        "1.31.2",
        "1.31.3",
        "1.31.4",
        "1.9.0",
        "1.9.1",
        "1.9.10",
        "1.9.11",
        "1.9.12",
        "1.9.13",
        "1.9.14",
        "1.9.2",
        "1.9.3",
        "1.9.4",
        "1.9.5",
        "1.9.6",
        "1.9.7",
        "1.9.8",
        "1.9.9"
      ]
    }
  ],
  "aliases": [
    "CVE-2025-61385",
    "GHSA-wq2g-r956-j8cc"
  ],
  "details": "SQL injection vulnerability in tlocke pg8000 1.31.4 allows remote attackers to execute arbitrary SQL commands via a specially crafted Python list input to function pg8000.native.literal.",
  "id": "PYSEC-2026-1766",
  "modified": "2026-07-07T17:25:00.487213Z",
  "published": "2026-07-07T16:03:08.272566Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-61385"
    },
    {
      "type": "PACKAGE",
      "url": "https://codeberg.org/tlocke/pg8000"
    },
    {
      "type": "WEB",
      "url": "https://codeberg.org/tlocke/pg8000/commit/8663c746b02286c32f19c385f0e2e5da9e4fa140"
    },
    {
      "type": "WEB",
      "url": "https://github.com/bmcyver/vulnerability-research/tree/main/CVE-2025-61385"
    },
    {
      "type": "PACKAGE",
      "url": "https://pypi.org/project/pg8000"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-wq2g-r956-j8cc"
    }
  ],
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U",
      "type": "CVSS_V4"
    }
  ],
  "summary": "pg8000 SQL injection vulnerability via a specially crafted Python list input"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…