LiveActive security incident?Get immediate response
CVE Record

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.

HighCVSS 7.5Not KEV-listedUpdated
Glexia's TakeAutomated analysishigh

Security readout for executives and security teams

Plain-English summary

Older Vapor web applications can be crashed by a specially crafted URL-encoded form request when automatic content decoding is used. The impact is availability only: a remote unauthenticated attacker can cause process failure, but the provided sources do not indicate data theft or code execution. Vapor fixed the issue in 4.61.1.

Executive priority

Prioritize remediation for public Vapor services because the issue can remotely crash applications without authentication. It is not a confidentiality breach based on the provided sources, but outages can affect customer-facing availability and operational reliability.

Technical view

CVE-2022-31019 is unbounded attacker-controlled stack growth in Vapor's URLEncodedFormDecoder. Deeply nested form data can trigger stack overflow and crash the server process during automatic content decoding. The CVSS 3.1 score is 7.5, reflecting network reachability, low complexity, no privileges, no user interaction, and high availability impact.

Likely exposure

Exposure is most likely in Swift services using Vapor versions before 4.61.1 that accept URL-encoded form bodies and rely on automatic content decoding. Internet-facing endpoints increase business risk because exploitation requires no authentication according to the CVSS vector.

Exploitation context

The public advisory describes a crafted request body that can crash affected servers. The source bundle does not show CISA KEV listing or other evidence of active exploitation in the wild. Treat this as publicly documented and remotely reachable, but not confirmed exploited from the provided evidence.

Researcher notes

The root issue is recursive or unbounded parsing behavior in URLEncodedFormDecoder that permits stack exhaustion from attacker-controlled nesting depth. The fix reference should be reviewed for exact guard behavior. Avoid assuming broader Vapor components or non-form parsers are affected without source evidence.

Mitigation direction

  • Upgrade Vapor to version 4.61.1 or later.
  • Prioritize internet-facing Vapor applications that parse URL-encoded form bodies.
  • Review vendor advisory and commit before applying compensating controls.
  • Monitor affected services for unexplained process crashes or availability degradation.

Validation and detection

  • Inventory Swift services and confirm their Vapor dependency versions.
  • Identify routes using automatic content decoding for form submissions.
  • Confirm deployed builds use Vapor 4.61.1 or later.
  • Review service logs for repeated crashes tied to form POST handling.
Prepared
Confidence
high
Sources
4

Generated from the cited source records. This long-tail analysis has not been individually reviewed by a named human.

Potential ATT&CK relevance

Conservative CVE-to-ATT&CK context

These mappings and lookup hints may be relevant to the vulnerability behavior, CWE, affected product, or exposure path. Glexia-inferred context is not an official MITRE, ATT&CK, CWE, or CVE Program mapping.

ATT&CK lookup starting points

Use these exact CWE pages and searches to review the Glexia ATT&CK library from this CVE's weakness and description context.

cwe · low confidence lookup

CWE-120: Exact CWE lookup

Use the exact CWE identifier as the starting point before reviewing related ATT&CK behavior. Open the exact CWE lookup page first, then review the ATT&CK searches from that MITRE weakness context. This is a Glexia lookup hint, not an official ATT&CK mapping.

Open ATT&CK lookup
cve · low confidence lookup

CVE-2022-31019 mapping review

Open the CVE-to-ATT&CK bridge for reviewed, inferred, or future official mappings tied to this CVE.

Open ATT&CK lookup
Vulnerability profileCVE Program record
Severity
High
CVSS
7.5 (3.1)
Known Exploited
No
Published

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Official CVE source material

CNA and ADP enrichment extracted from CVE v5

These fields come from the CVE record and ADP containers, not from Glexia's Take. They preserve time-varying source decisions such as CISA SSVC, KEV status, CVSS metrics, and provider references.

1CVSS vectors
0Timeline events
0ADP providers
3Source links

CVSS vector scores

1 official score

We collect every scored CVSS vector available in the official CNA and ADP containers. When more than one version is present, the table keeps the source vectors side by side instead of collapsing them into the highest score.

ScoreVersionSeverityVectorExploitImpactSource
7.5CVSS 3.1HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H3.93.6Primary CVE score

Vulnerability scoring details

Base CVSS 3.1 score

7.5High
CVSS 3.1 vector shape for CVE-2022-31019Attack VectorAttack ComplexityPrivileges RequiredUser InteractionScopeConfidentiality ImpactIntegrity ImpactAvailability Impact

Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Attack Vector
NetworkAdjacentLocalPhysical
Attack Complexity
LowHigh
Privileges Required
NoneLowHigh
User Interaction
NoneRequired
Scope
ChangedUnchanged
Confidentiality Impact
HighLowNone
Integrity Impact
HighLowNone
Availability Impact
HighLowNone
Affected products

Products and packages named in the record

VendorProductVersion / packageStatus
vaporvapor< 4.61.1Listed
Weakness

CWE details

CWE links open Glexia weakness intelligence pages with official CWE context, developer remediation guidance, and related CVE mappings.

CWE-120 · source CWE mapping

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow')

Buffer Copy without Checking Size of Input ('Classic Buffer Overflow') represents a recurring weakness pattern that can create exploitable paths when design, validation, or implementation controls are missing.