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

Published Jun 6, 2022
·
Updated

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

1 affected component
Vapor Vapor<4.61.1

Event History

Jun 6, 2022
CVE Published
via MITRE·09:05 PM
Data Sourced
via MITRE·09:05 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

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.

2

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.

3

What is the severity of CVE-2022-31019?

The severity of CVE-2022-31019 is high with a CVSS score of 7.5.

4

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.

5

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.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203