CVE-2022-25852Libpq Project Libpq
High 7.5 No auth needed
Follow: this CVE · Libpq Project · Libpq Project Libpq We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- 1.3% probability of exploitation in 30 days · percentile 70
- Auth required
- No
- Published
- Jun 17, 2022
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- Weakness (CWE)
- CWE-704
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
What happens
All versions of package pg-native; all versions of package libpq are vulnerable to Denial of Service (DoS) when the addons attempt to cast the second argument to an array and fail. This happens for every non-array argument passed. **Note:** pg-native is a mere binding to npm's libpq library, which in turn has the addons and bindings to the actual C libpq library. This means that problems found in pg-native may transitively impact npm's libpq.
What to do
- Apply the vendor's security update for Libpq.
- 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 |
|---|---|---|---|---|
| npm | libpq |
< 1.8.10 |
1.8.10 |
npm install libpq@1.8.10 |
| npm | pg-native |
< 3.0.1 |
3.0.1 |
npm install pg-native@3.0.1 |
Per OSV / GitHub Advisories (GHSA-j32j-2hxv-rqf7). Check the version in your lockfile before upgrading.
Affected products (CPE)
| Vendor | Product | Versions |
|---|---|---|
| libpq_project | libpq | all |
| pg-native_project | pg-native | all |
Official sources
References
Links published by the sources. Open them with care.