VDB
Sign up
MEDIUM6.5

PYSEC-2026-895

libpg_query memory leak

Quick fix

PYSEC-2026-895 — pglast: upgrade to the fixed version with the command below.

pip install --upgrade 'pglast>=0.28'

Details

An issue was discovered in libpg_query 10-1.0.2. There is a memory leak in pg_query_raw_parse in pg_query_parse.c, which might lead to a denial of service.

Are you affected?

Enter the version of the package you're using.

Affected packages

PyPI/pglast
Introduced in: 0Fixed in: 0.28
Fixpip install --upgrade 'pglast>=0.28'

References