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.
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-18 | Published |
| 2018-10-18 | Package advisory PYSEC-2018-154 |
| 2022-05-13 | Package advisory GHSA-vm3q-58wm-2r2x |
| 2026-06-17 | Record last changed |
| 2026-07-06 | Package advisory PYSEC-2026-895 |
| 2026-11-30 | EPSS when our history starts: 1.16% |
Affected packages
| Advisory | Package | Fixed in |
|---|---|---|
| GHSA-vm3q-58wm-2r2x | pg-query (PyPI) | 0.28 |
| GHSA-vm3q-58wm-2r2x | pglast (PyPI) | 0.28 |
| PYSEC-2018-154 | pg-query (PyPI) | 0.28 |
| PYSEC-2026-895 | pglast (PyPI) | 0.28 |
Also known as: GHSA-vm3q-58wm-2r2x, PYSEC-2018-154, PYSEC-2026-895
Related
| CVE | Published | CVSS | Summary |
|---|---|---|---|
| CVE-2026-36590 | 2026-07-15 | 7.5 | same weakness (CWE-772) from the same CNA (mitre) |
| CVE-2023-22996 | 2023-02-28 | 5.5 | same weakness (CWE-772) from the same CNA (mitre) |
| CVE-2022-45887 | 2022-11-25 | 4.7 | same weakness (CWE-772) from the same CNA (mitre) |
| CVE-2022-40280 | 2022-09-08 | 7.5 | same weakness (CWE-772) from the same CNA (mitre) |
| CVE-2021-42860 | 2022-05-26 | 7.5 | same weakness (CWE-772) from the same CNA (mitre) |
| CVE-2021-42859 | 2022-05-26 | 7.5 | same 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.