CVE-2022-31019
HIGH 7.5CVSS 3.1Vapor vulnerable to denial of service in URLEncodedFormDecoder
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.
- Published
- 9 Jun 2022
- Last modified
- 17 Jun 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Modified
- Weakness
- CWE-120CWE-121CWE-674
- Also known as
- GHSA-qvxg-wjxc-r4gg
- Sources
- NVDJSONOSV GHSA-qvxg-wjxc-r4ggJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| OSV | GitHub | CVSS 3.1 | HIGH 7.5 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| NVD | nvd@nist.gov (Primary) | CVSS 2.0 | MEDIUM 5.0 | AV:N/AC:L/Au:N/C:N/I:N/A:P |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| NVD | vapor | vaporcpe:2.3:a:vapor:vapor:*:*:*:*:*:*:*:* |
< 4.61.1 | 4.61.1 |
| OSV | SwiftURL | github.com/vapor/vapor | < 4.61.1 | 4.61.1 |
References
- https://github.com/vapor/vapor/commit/6c63226a4ab82ce53730eb1afb9ca63866fcf033 · Exploit, Patch, Third Party Advisory, WEB
- https://github.com/vapor/vapor/security/advisories/GHSA-qvxg-wjxc-r4gg · Mitigation, Third Party Advisory, WEB
- https://nvd.nist.gov/vuln/detail/CVE-2022-31019 · ADVISORY
- https://github.com/vapor/vapor · PACKAGE
History
- 25 Nov 2026 20:34 UTC · NVD: first stored (published 9 Jun 2022)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 7 Jun 2023)