DoS Vulnerability in URLEncodedFormDecoder in Vapor
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Impact type
- Denial of service
- Confidentiality · integrity · availability
- None · None · High
- Fix status
- Fixed
Attack profile from CVSS 3.1 · CNA. Fix status from CNA and GitHub. Impact type from CWE-120 and the CVSS impact.
Summary
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- Poc
- Automatable
- Yes
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
| Vendor | Product | Affected versions | Fixed in | Status | Source |
|---|---|---|---|---|---|
| vapor | vapor | before 4.61.1 | 4.61.1 | Patch available | CNA |
| — | github.com/vapor/vapor (SwiftURL) | before 4.61.1 | 4.61.1 | Patch available | GHSA-qvxg-wjxc-r4gg |
- vapor Vendorvapor Affected before 4.61.1 Fixed in 4.61.1 Patch available CNA
- github.com/vapor/vapor (SwiftURL) Vendor— Affected before 4.61.1 Fixed in 4.61.1 Patch available GHSA-qvxg-wjxc-r4gg
Remediation
- Fix · CNA vapor (vapor) Fixed in 4.61.1
- Fix · GHSA-qvxg-wjxc-r4gg github.com/vapor/vapor (SwiftURL) Fixed in 4.61.1 Advisory →
Timeline
- 2026-10-02 Threatist record created from CVE-2022-31019
- 2026-10-03 Alias added: GHSA-qvxg-wjxc-r4gg
References
More Vapor vulnerabilities
- TI-2022-13051 Integer Overflow in Vapor's HTTP Range Request CVSS 3.1HIGH 7.5
- TI-2024-14356 Integer overflow in URI leading to potential host spoofing CVSS 3.1MEDIUM 6.5
- TI-2023-23892 Incorrect request error handling triggers server crash in Vapor CVSS 3.1MEDIUM 5.3
Sources
- CVE-2022-31019 · CVE Program
- CVE-2022-31019 · NVD
- FIRST EPSS
- GHSA-qvxg-wjxc-r4gg · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences