KeygraphLabs · CVE MCP

CVE-2018-18482 · mitre

CVE-2018-18482

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.

Published 2018-10-18, last changed 2026-06-17. Weakness: CWE-772.

CVSS
6.5
medium, from NVD
EPSS
1.16%
percentile 68.2%, chance of exploitation in 30 days
Exploitation
None known
no KEV listing or public exploit in our indexes

How to fix

Upgrade to a fixed version: pg-query 0.28 (PyPI); pglast 0.28 (PyPI). For the version that clears every advisory for your installed version, ask an agent for get_remediation.

Timeline

2018-10-18Published
2018-10-18Package advisory PYSEC-2018-154
2022-05-13Package advisory GHSA-vm3q-58wm-2r2x
2026-06-17Record last changed
2026-07-06Package advisory PYSEC-2026-895
2026-11-30EPSS when our history starts: 1.16%

Affected packages

AdvisoryPackageFixed in
GHSA-vm3q-58wm-2r2xpg-query (PyPI)0.28
GHSA-vm3q-58wm-2r2xpglast (PyPI)0.28
PYSEC-2018-154pg-query (PyPI)0.28
PYSEC-2026-895pglast (PyPI)0.28

Also known as: GHSA-vm3q-58wm-2r2x, PYSEC-2018-154, PYSEC-2026-895

Related

CVEPublishedCVSSSummary
CVE-2026-365902026-07-157.5same weakness (CWE-772) from the same CNA (mitre)
CVE-2023-229962023-02-285.5same weakness (CWE-772) from the same CNA (mitre)
CVE-2022-458872022-11-254.7same weakness (CWE-772) from the same CNA (mitre)
CVE-2022-402802022-09-087.5same weakness (CWE-772) from the same CNA (mitre)
CVE-2021-428602022-05-267.5same weakness (CWE-772) from the same CNA (mitre)
CVE-2021-428592022-05-267.5same weakness (CWE-772) from the same CNA (mitre)

Add it to your agent

One command for Claude Code; setup for Claude Desktop, Cursor and others. No signup or key.

claude mcp add --transport http keygraph-cve https://cve-mcp.keygraph.io/mcp

Then ask for triage_cve CVE-2018-18482, or call /api/v1/vulnerabilities/CVE-2018-18482. To prove whether it is exploitable in your running app, run Shannon, Keygraph's open-source AI pentester.

NVD · CVE.org