CVE-2022-31019: DoS Vulnerability in URLEncodedFormDecoder in Vapor
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.
Affected Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2022-31019?
CVE-2022-31019 is a vulnerability in the Vapor server-side Swift HTTP web framework, which allows an attacker to crash the server by crafting a specific request body.
How can an attacker exploit CVE-2022-31019?
An attacker can exploit CVE-2022-31019 by sending a crafted request body that triggers a server crash.
What is the severity of CVE-2022-31019?
The severity of CVE-2022-31019 is high with a CVSS score of 7.5.
Which software versions are affected by CVE-2022-31019?
Vapor framework versions up to and excluding 4.61.1 are affected by CVE-2022-31019.
How can I fix CVE-2022-31019?
To fix CVE-2022-31019, it is recommended to upgrade your Vapor framework to a version that includes the fix.