Denial of Service Risk in Undertow Package Due to HTTP/2 Flow Control Handling

undertow Updated 02 Oct 2025

Summary

24/05/2022
N/A
Yes i
Medium
5.9

CVE-2021-3629: A flaw was found in Undertow. Affects undertow across 3 version ranges.

< 2.2.12-1 < 38f40e77f5284243a5f469faf7e7165b857aa68e < 225d62735b189e460a56460207b8c6073fcc3737

Fixed in 2.2.12-1. How to fix ↓

Free scan

Check if this vulnerability affects your application

Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.

Check my app free

No signup required · Results in about 60 seconds

Upload your dependency manifest or SBOM

Drag & drop your file here or

Java Javascript PHP Python Go Rust Ruby Dart C/C++ Elixir CycloneDX SPDX

Upload a supported dependency manifest or SBOM. No installation or source-code access required.

See supported files and SBOM formats
SBOM sbom.json · bom.json · bom.xml · *.spdx.json · *.cdx.json · *.cdx.xml
Java pom.xml · gradle.lockfile · buildscript-gradle.lockfile
Javascript package-lock.json · yarn.lock · pnpm-lock.yaml
PHP composer.lock
Python poetry.lock · requirements.txt · Pipfile.lock
Go go.mod
Rust Cargo.lock
Ruby Gemfile.lock
Dart pubspec.lock
C/C++ conan.lock
Elixir mix.lock
Enter your work email to receive your report link.

Verify your email to view the full report and start 30 days of continuous monitoring. No credit card required.

Sponsored Devnack Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Undertow is a flexible and performant web server designed for handling HTTP requests and responses. It is widely used in Java applications for its lightweight architecture and ability to support both blocking and non-blocking APIs. However, a flaw in its flow control handling over HTTP/2 can lead to potential denial of service, affecting the availability of applications relying on this package.

Vulnerability Detail

A flaw was found in Undertow related to the handling of flow control in HTTP/2. This vulnerability can be exploited by an attacker to cause excessive overhead on the server, potentially leading to a denial of service. The issue arises from improper management of flow control, which can overwhelm server resources, making it unavailable to legitimate users. The vulnerability affects Undertow versions prior to 2.0.40.Final and prior to 2.2.11.Final.

How To Fix

Minimum fixed version

2.2.12-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade undertow

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Workaround

As a temporary measure, consider limiting the number of concurrent HTTP/2 connections or implementing rate limiting on your server to mitigate the impact of this vulnerability until a patch can be applied.

Conclusion

The CVE-2021-3629 vulnerability in the Undertow package poses a significant risk of denial of service due to improper handling of HTTP/2 flow control. It is crucial for users to update to the patched versions to ensure the security and availability of their applications. Temporary workarounds can help mitigate risks until updates are applied.

See every vulnerability recorded for undertow →

Share this vulnerability

FAQ

CVE-2021-3629 is a vulnerability in the Undertow package that can lead to denial of service due to improper flow control handling in HTTP/2.

Undertow versions prior to 2.0.40.Final and prior to 2.2.11.Final are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

The CVSS score of this vulnerability is 5.9, indicating a moderate level of risk.

If immediate updates are not possible, consider implementing rate limiting or restricting concurrent connections to reduce the risk of denial of service.

Related vulnerabilities

Recent vulnerabilities recorded for undertow.

How To Fix

Minimum fixed version

2.2.12-1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade undertow

Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →

Subscribe to Vulert on Telegram
Daily digest of new CVEs, critical and high severity, affected packages and fixes — plus a weekly roundup.
Join the channel →
Help improve this record
Report an issue or send feedback