Live threats

All CVEs / Libpg Query Project

CVE-2018-18482Libpg Query Project Libpg Query

Medium 6.5 No auth needed

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Libpg Query.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow 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)

VendorProductVersions
libpg_query_projectlibpg_query10-1.0.2

Official sources

References

Links published by the sources. Open them with care.