{"cve":"CVE-2022-25852","nvd":{"published":"2022-06-17T20:15:10.547","modified":"2026-06-17T04:34:23.537","status":"Modified","description":"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.","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5},"cwes":["CWE-704"],"references":["https://snyk.io/vuln/SNYK-JS-LIBPQ-2392366","https://snyk.io/vuln/SNYK-JS-PGNATIVE-2392365","https://snyk.io/vuln/SNYK-JS-LIBPQ-2392366","https://snyk.io/vuln/SNYK-JS-PGNATIVE-2392365"],"products":["libpq_project:libpq","pg-native_project:pg-native"],"source":"nvd","synced_at":"2026-10-19T21:32:39.174919249+00:00"},"epss":{"cve":"CVE-2022-25852","score":0.01378,"percentile":0.72094,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-j32j-2hxv-rqf7","url":"https://osv.dev/vulnerability/GHSA-j32j-2hxv-rqf7","summary":"pg-native and libpq vulnerable to uncontrolled resource consumption","modified":"2023-11-08T04:08:49.257876Z","packages":[{"ecosystem":"npm","name":"libpq","purl":"pkg:npm/libpq","ranges":["<1.8.10"],"fixed":["1.8.10"]},{"ecosystem":"npm","name":"pg-native","purl":"pkg:npm/pg-native","ranges":["<3.0.1"],"fixed":["3.0.1"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}