Advisory

GHSA-j32j-2hxv-rqf7

Also known as: CVE-2022-25852

Summary

pg-native and libpq vulnerable to uncontrolled resource consumption

Details

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.

Severity

High Basis: The source's own band: HIGH

Dates

Published
2022-06-18 00:00 UTC
Modified
2023-11-08 04:08 UTC

Affected packages and fixes

libpq

npm · All systems

Affected

  • introduced 0, fixed 1.8.10 (semver)

Fixed versions

1.8.10

Fix

pg-native

npm · All systems

Affected

  • introduced 0, fixed 3.0.1 (semver)

Fixed versions

3.0.1

Fix

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences