{"id":"CVE-2018-18482","aliases":["GHSA-vm3q-58wm-2r2x","PYSEC-2018-154","PYSEC-2026-895"],"kind":"cve","tier":"cold","status":"published","title":"libpg_query memory leak","description":"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.","ai_summary":null,"severity":"medium","cvss":{"score":6.5,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"NVD"},"scores":[{"score":6.5,"version":"3.0","vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","source":"nvd"},{"score":4.3,"version":"2.0","vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","source":"nvd"}],"cwe":["CWE-772"],"remote":true,"remote_unauth":true,"epss":{"score":0.0116,"percentile":0.68076,"date":"2026-12-02"},"kev":{"listed":false,"added":null,"due":null,"ransomware":null},"exploit":{"public":true,"exploitdb_ids":[]},"affected":[{"ecosystem":"PyPI","name":"pg-query","affected":"< 0.28","fixed":["0.28"],"source":"osv"},{"ecosystem":"PyPI","name":"pglast","affected":"< 0.28","fixed":["0.28"],"source":"osv"}],"affected_products":[{"vendor":"n/a","product":"n/a","versions":"","source":"nvd"}],"ai_versions":null,"mitigation":"Upgrade pg-query to 0.28 or later.\nUpgrade pglast to 0.28 or later.","technologies":[],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18482","kind":"vendor"},{"url":"https://github.com/advisories/GHSA-vm3q-58wm-2r2x","kind":"vendor"},{"url":"https://github.com/lfittl/libpg_query/issues/49","kind":"exploit"},{"url":"https://github.com/lelit/pglast","kind":"other"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pg-query/PYSEC-2018-154.yaml","kind":"other"},{"url":"https://pypi.org/project/pglast","kind":"other"}],"workarounds":null,"vendors":["libpg_query_project"],"products":["libpg_query"],"cpes":["cpe:2.3:a:libpg_query_project:libpg_query:10-1.0.2:*:*:*:*:*:*:*"],"published_at":"2018-10-18T18:00:00.000Z","modified_at":"2026-07-07T11:56:13.031Z","promoted_at":null,"attribution":[{"source":"CVE Program","text":"CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation.","url":"https://www.cve.org/Legal/TermsOfUse"},{"source":"NVD","text":"This product uses data from the NVD API but is not endorsed or certified by the NVD.","url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18482"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/GHSA-vm3q-58wm-2r2x","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2018-154","license_url":"https://creativecommons.org/licenses/by/4.0/"},{"source":"OSV","text":"CC-BY 4.0","url":"https://osv.dev/vulnerability/PYSEC-2026-895","license_url":"https://creativecommons.org/licenses/by/4.0/"}],"links":{"html":"https://flawdb.com/CVE-2018-18482","markdown":"https://flawdb.com/CVE-2018-18482.md","json":"https://flawdb.com/api/v1/entries/CVE-2018-18482"}}