# CVE-2022-31019: DoS Vulnerability in URLEncodedFormDecoder in Vapor

- Severity: High 7.5 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.66%, higher than 77% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2022-06-06T21:05:20.000Z
- Modified: 2026-06-17T04:44:37.097Z
- Also known as: GHSA-qvxg-wjxc-r4gg
- Weaknesses: CWE-120, CWE-121, CWE-674
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- vapor vapor: < 4.61.1; before 4.61.1
- github.com/vapor/vapor (SwiftURL): before 4.61.1

## Every score

- GitHub_M: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- GitHub: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:2.0 5.0 Medium `AV:N/AC:L/Au:N/C:N/I:N/A:P`

## 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)

## Sources

- CVE List: [CVE-2022-31019](https://www.cve.org/CVERecord?id=CVE-2022-31019), CVE Terms of Use, modified 2025-04-22
- GitHub Advisory Database: [GHSA-qvxg-wjxc-r4gg](https://github.com/advisories/GHSA-qvxg-wjxc-r4gg), CC-BY-4.0, modified 2023-11-08
- NVD: [CVE-2022-31019](https://nvd.nist.gov/vuln/detail/CVE-2022-31019), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-31019 · Whole record: https://cve.day/CVE-2022-31019.json · Rebuilt by cve.day 2026-11-25T22:58:12.184Z
