Advisory

GHSA-vm3q-58wm-2r2x

Also known as: CVE-2018-18482, PYSEC-2018-154, PYSEC-2026-895

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

High Basis: The source's own band: HIGH

Dates

Published
2022-05-13 01:50 UTC
Modified
2026-07-07 11:56 UTC

Affected packages and fixes

pg-query

PyPI · All systems

Affected

  • introduced 0, fixed 0.28 (ecosystem)

Fixed versions

0.28

Fix

  • Fixed version 0.28
    pip install --upgrade pg-query==0.28

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: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences