Advisory

PYSEC-2026-895

Also known as: CVE-2018-18482, GHSA-vm3q-58wm-2r2x, PYSEC-2018-154

Summary

libpg_query memory leak

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.

Severity

Medium Basis: CVSS v3 score 6.5, vector CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H

Dates

Published
2026-07-06 08:03 UTC
Modified
2026-07-07 11:56 UTC

Affected packages and fixes

pglast

PyPI · All systems

Affected

  • introduced 0, fixed 0.28 (ecosystem)

Fixed versions

0.28

Fix

  • Fixed version 0.28
    pip install --upgrade pglast==0.28

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: PyPA Advisory Database · CC BY 4.0

Sources & licences