{"id":"CVE-2022-31019","published":"2022-06-06T21:05:20Z","modified":"2025-04-22T17:54:38Z","title":"DoS Vulnerability in URLEncodedFormDecoder in Vapor","vendor":"vapor","product":"vapor","tier":"tail","description":{"text":"Vapor is a server-side Swift HTTP web framework. When using automatic content decoding an attacker can craft a request body that can make the server crash with the following request: `curl -d \"array[_0][0][array][_0][0][array]$(for f in $(seq 1100); do echo -n '[_0][0][array]'; done)[string][_0]=hello%20world\" http://localhost:8080/foo`. The issue is unbounded, attacker controlled stack growth which will at some point lead to a stack overflow and a process crash. This issue has been fixed in version 4.61.1.","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.01663,"percentile":0.77288,"provenance":"source"},"cwes":[{"id":"CWE-120","name":"Buffer Copy without Checking Size of Input"}],"references":[{"url":"https://github.com/vapor/vapor/security/advisories/GHSA-qvxg-wjxc-r4gg","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/vapor/vapor/commit/6c63226a4ab82ce53730eb1afb9ca63866fcf033","tags":["x_refsource_MISC"]}],"priority":{"score":20.7,"factors":[{"name":"EPSS percentile","points":15.46},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"vapor","affectedVersions":[{"vendor":"vapor","product":"vapor","versions":["< 4.61.1"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"partial","timestamp":"2025-04-22T15:40:52.632289Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"SwiftURL","package":"github.com/vapor/vapor","vulnerableRanges":["<4.61.1"],"patched":["4.61.1"],"from":["GHSA-qvxg-wjxc-r4gg"],"provenance":"source"}],"summary":{"text":"A denial-of-service flaw exists in the URLEncodedFormDecoder component of Vapor, a server-side Swift HTTP web framework, when automatic content decoding is used. The decoder performs unbounded, attacker-controlled stack growth while parsing nested form data, so a crafted request body can exhaust the stack and crash the server process over the network with no authentication or user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T07:14:10Z"},"euvd":{"id":"EUVD-2023-1872","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2021-21328","published":"2021-02-26","fixed":"4.40.1","kev":false},{"cve":"CVE-2021-32742","published":"2021-07-09","fixed":"4.47.2","kev":false},{"cve":"CVE-2022-31005","published":"2022-05-31","fixed":"4.60.3","kev":false,"link":{"from":"CVE-2022-31005","to":"CVE-2022-31019","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"SwiftURL:github.com/vapor/vapor","fromFixed":"4.60.3","toFixed":"4.61.1","daysApart":6}]}},{"cve":"CVE-2022-31019","published":"2022-06-06","fixed":"4.61.1","kev":false},{"cve":"CVE-2023-44386","published":"2023-10-05","fixed":"4.84.2","kev":false},{"cve":"CVE-2024-21631","published":"2024-01-03","fixed":"4.90.0","kev":false}],"package":"SwiftURL:github.com/vapor/vapor"}}