All CVEs / Libpg Query Project
CVE-2018-18482Libpg Query Project Libpg Query
Medium 6.5 No auth needed
Follow: this CVE · Libpg Query Project · Libpg Query Project Libpg Query We alert you by email or Slack (account required).
- Priority
- 54
- CVSS 3.0
- 6.5
- EPSS
- 1.2% probability of exploitation in 30 days · percentile 67
- Auth required
- No
- Published
- Oct 18, 2018
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-772
- Vector
CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H
What happens
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
- Apply the vendor's security update for Libpg Query.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| PyPI | pg-query |
< 0.28 |
0.28 |
pip install "pg-query>=0.28" |
| PyPI | pg-query |
< 0.28 |
0.28 |
pip install "pg-query>=0.28" |
| PyPI | pglast |
< 0.28 |
0.28 |
pip install "pglast>=0.28" |
| PyPI | pglast |
< 0.28 |
0.28 |
pip install "pglast>=0.28" |
Per OSV / GitHub Advisories (GHSA-vm3q-58wm-2r2x, PYSEC-2018-154, PYSEC-2026-895). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libpg_query_project | libpg_query | 10-1.0.2 |
Official sources
References
Links published by the sources. Open them with care.
- github.com Exploit Third Party Advisory