{"id":"CVE-2018-18482","aliases":["EUVD-2018-0151","GHSA-vm3q-58wm-2r2x","PYSEC-2018-154","PYSEC-2026-895"],"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.","severity":{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary","from":"nvd"},"epss":{"day":"2026-11-08","score":0.0116,"percentile":0.67345,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-772"],"published":"2018-10-18T18:00:00Z","modified":"2026-10-20T10:48:50Z","fixes":[{"ecosystem":"PyPI","package":"pg-query","fixed_in":["0.28"],"sources":["ghsa","osv"]},{"ecosystem":"PyPI","package":"pglast","fixed_in":["0.28"],"sources":["ghsa","osv"]}],"affected":[{"source":"ghsa","ecosystem":"PyPI","package":"pg-query","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}]},{"source":"ghsa","ecosystem":"PyPI","package":"pglast","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"pglast","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}]},{"source":"osv","ecosystem":"PyPI","package":"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"]},{"source":"osv","ecosystem":"PyPI","package":"pglast","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"0.28"}]}]}],"products":[{"vendor":"libpg_query_project","product":"libpg_query"}],"references":[{"url":"https://github.com/lfittl/libpg_query/issues/49","tags":["x_refsource_MISC","x_transferred","Exploit","Third Party Advisory","evidence","web","report"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2018-18482","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/pg-query/PYSEC-2018-154.yaml","tags":["web"]},{"url":"https://github.com/advisories/GHSA-vm3q-58wm-2r2x","tags":["advisory"]},{"url":"https://github.com/lelit/pglast","tags":["package"]},{"url":"https://pypi.org/project/pglast","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2018-18482","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.","status":"published","published":"2018-10-18T18:00:00Z","modified":"2024-09-16T16:53:26.161Z","updated_at":"2026-11-02T14:35:11.799349Z"}],"euvd":[{"id":"EUVD-2018-0151","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.","status":"published","published":"2018-10-18T18:00:00Z","modified":"2024-09-16T16:53:26Z","updated_at":"2026-11-03T00:55:47.18954Z"}],"ghsa":[{"id":"GHSA-vm3q-58wm-2r2x","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.","status":"published","published":"2022-05-13T01:50:42Z","modified":"2024-11-26T18:14:49Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":7.1,"vector":"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","level":"high"}],"cwes":["CWE-772"],"updated_at":"2026-11-02T14:38:23.575854Z"}],"nvd":[{"id":"CVE-2018-18482","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.","status":"published","published":"2018-10-18T18:29:01.077Z","modified":"2026-06-17T01:47:22.347Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium","assessor":"primary"},{"version":"2.0","score":4.3,"vector":"AV:N/AC:M/Au:N/C:N/I:N/A:P","level":"medium","assessor":"primary"}],"cwes":["CWE-772"],"updated_at":"2026-11-02T14:04:46.409324Z"}],"osv":[{"id":"CVE-2018-18482","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.","status":"published","published":"2018-10-18T18:29:01.077Z","modified":"2026-10-20T10:48:50.726905994Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:44:08.834469Z"},{"id":"GHSA-vm3q-58wm-2r2x","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.","status":"published","published":"2022-05-13T01:50:42Z","modified":"2026-07-07T11:56:13.031518594Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":7.1,"vector":"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","level":"high"}],"cwes":["CWE-772"],"updated_at":"2026-11-02T15:46:57.348035Z"},{"id":"PYSEC-2018-154","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.","status":"published","published":"2018-10-18T18:29:00Z","modified":"2026-07-07T11:56:13.031518594Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"}],"updated_at":"2026-11-02T15:52:51.645172Z"},{"id":"PYSEC-2026-895","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.","status":"published","published":"2026-07-06T08:03:21.354975Z","modified":"2026-07-07T11:56:13.031518594Z","cvss":[{"version":"3.0","score":6.5,"vector":"CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H","level":"medium"},{"version":"4.0","score":7.1,"vector":"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","level":"high"}],"updated_at":"2026-11-02T15:52:58.117212Z"}]}}
