{"id":"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.","aliases":["CVE-2018-18482","GHSA-vm3q-58wm-2r2x","PYSEC-2018-154"],"modified":"2026-07-07T11:56:13.031518594Z","published":"2026-07-06T08:03:21.354975Z","references":[{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18482"},{"type":"WEB","url":"https://github.com/lfittl/libpg_query/issues/49"},{"type":"PACKAGE","url":"https://github.com/lelit/pglast"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/pg-query/PYSEC-2018-154.yaml"},{"type":"PACKAGE","url":"https://pypi.org/project/pglast"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-vm3q-58wm-2r2x"}],"affected":[{"package":{"name":"pglast","ecosystem":"PyPI","purl":"pkg:pypi/pglast"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}],"database_specific":{"source":"https://github.com/pypa/advisory-database/blob/main/vulns/pglast/PYSEC-2026-895.yaml"}}],"schema_version":"1.7.5","severity":[{"type":"CVSS_V3","score":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H"},{"type":"CVSS_V4","score":"CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N"}]}