MITM Vulnerability in Undertow Package: Digest Authentication URI Mismatch

undertow Updated 02 Oct 2025

Summary

18/04/2018
N/A
Yes i
Medium
5.9

CVE-2017-12196: undertow before versions 1.4.18.SP1, 2.0.2.Final, 1.4.24.Final was found vulnerable when using Digest authentication, the server does not ensure that the value of URI in the Authorization header matches the URI in HTTP r... Affects undertow across 3 version ranges.

< 1.4.25-1 < 6d47ee68635ab88d6cef1cb0c5ca06c8992b8323 < 8a4bfd58914ce498ea615127b2d739f92e107fc0

Fixed in 1.4.25-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 Mobile apps built by Devnack Design, build and launch iOS and Android apps with a senior product team. From idea to store release Start a project

Background

Undertow is a flexible and performant web server designed for handling HTTP and WebSocket requests. It is often used in Java applications for its lightweight nature and ability to serve both static and dynamic content. However, certain versions of Undertow are vulnerable to a security flaw related to Digest authentication, which can lead to serious security risks if not addressed.

Vulnerability Detail

The vulnerability arises from Undertow's failure to ensure that the URI in the Authorization header matches the URI in the HTTP request line when using Digest authentication. This oversight allows attackers to perform Man-in-the-Middle (MITM) attacks, potentially gaining unauthorized access to sensitive content on the server. The affected versions include Undertow before 1.4.18.SP1, 2.0.2.Final, and 1.4.24.Final, which can expose systems to significant security threats.

How To Fix

Minimum fixed version

1.4.25-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

If immediate upgrading is not feasible, consider implementing network-level security measures such as using HTTPS to encrypt traffic, which can help mitigate the risk of MITM attacks. Additionally, ensure that all authentication mechanisms are reviewed and strengthened.

Conclusion

The vulnerability in Undertow related to Digest authentication poses a significant risk, allowing for potential MITM attacks. It is crucial for users to update to the latest patched version to safeguard their applications. Employing additional security measures can also help mitigate risks until an update can be applied.

See every vulnerability recorded for undertow →

Share this vulnerability

FAQ

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

The affected versions of Undertow are those before 1.4.18.SP1, 2.0.2.Final, and 1.4.24.Final.

You can use Vulert, which allows you to monitor and alert for open-source vulnerabilities in your software using just a manifest file. Visit Vulert Scanner to check if your application is affected without requiring any signup.

If exploited, this vulnerability can allow attackers to intercept and manipulate communications between clients and the server, leading to unauthorized access to sensitive data.

While updating is the best solution, you can mitigate the risk by using HTTPS to encrypt communications and reviewing your authentication processes.

Related vulnerabilities

Recent vulnerabilities recorded for undertow.

How To Fix

Minimum fixed version

1.4.25-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