CVE-2022-25852
pg-native and libpq vulnerable to uncontrolled resource consumption
7.5
HIGH
CVSS 3.1
EPSS 0.43%
Description
pg-native before 3.0.1 and libpq before 1.8.10 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.
How to fix CVE-2022-25852
To remediate CVE-2022-25852, upgrade the affected package to a fixed version below.
- —upgrade to 1.8.10 or later
- —upgrade to 3.0.1 or later
Is CVE-2022-25852 being exploited?
Low — EPSS is 0.4%, meaning exploitation activity has not been observed at scale.
Affected packages (2)
- from 0, < 1.8.10
- from 0, < 3.0.1
CVSS scores
| Source | Version | Severity | Vector |
|---|---|---|---|
| osv | CVSS 3.1 | HIGH7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |