{"id":"CVE-2022-25852","published":"2022-06-17T20:05:29Z","modified":"2024-09-17T01:51:47Z","title":"Denial of Service (DoS)","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H/E:P","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01399,"percentile":0.73148,"provenance":"source"},"cwes":[],"references":[{"url":"https://snyk.io/vuln/SNYK-JS-PGNATIVE-2392365","tags":["x_refsource_MISC"]},{"url":"https://snyk.io/vuln/SNYK-JS-LIBPQ-2392366","tags":["x_refsource_MISC"]}],"priority":{"score":19.9,"factors":[{"name":"EPSS percentile","points":14.63},{"name":"CVSS severity","points":5.25}]},"affectedVersions":[{"vendor":"n/a","product":"pg-native","versions":["< unspecified"]},{"vendor":"n/a","product":"libpq","versions":["< unspecified"]}],"affected":[{"ecosystem":"npm","package":"libpq","vulnerableRanges":["<1.8.10"],"patched":["1.8.10"],"from":["GHSA-j32j-2hxv-rqf7"],"provenance":"source"},{"ecosystem":"npm","package":"pg-native","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-j32j-2hxv-rqf7"],"provenance":"source"}],"summary":{"text":"The flaw is a denial-of-service bug in the pg-native npm package, and in the npm libpq package that depends on it, where the addons fail when they try to cast a non-array second argument to an array. An attacker who can supply such an argument can crash the process, and no authentication or user interaction is needed, since the attack is reachable over the network with low complexity.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:15:57Z"},"euvd":{"id":"EUVD-2022-6074","exploited":false,"provenance":"source"}}