{"id":"GHSA-vm3q-58wm-2r2x","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","PYSEC-2018-154","PYSEC-2026-895"],"modified":"2026-07-07T11:56:24.472497241Z","published":"2022-05-13T01:50:42Z","database_specific":{"github_reviewed":true,"github_reviewed_at":"2024-11-22T20:22:50Z","nvd_published_at":"2018-10-18T18:29:00Z","cwe_ids":["CWE-772"],"severity":"HIGH"},"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"}],"affected":[{"package":{"name":"pg-query","ecosystem":"PyPI","purl":"pkg:pypi/pg-query"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}],"versions":["0.1","0.10","0.11","0.12","0.13","0.14","0.15","0.16","0.17","0.18","0.19","0.2","0.20","0.21","0.22","0.23","0.24","0.25","0.26","0.27","0.3","0.4","0.5","0.6","0.7","0.8","0.9"],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vm3q-58wm-2r2x/GHSA-vm3q-58wm-2r2x.json"}},{"package":{"name":"pglast","ecosystem":"PyPI","purl":"pkg:pypi/pglast"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}],"database_specific":{"source":"https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2022/05/GHSA-vm3q-58wm-2r2x/GHSA-vm3q-58wm-2r2x.json"}}],"schema_version":"1.9.0","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"}]}