Critical Vulnerability in Hostapd and Wpa_supplicant: Key Reinstallation Attack

hostapd Updated 02 Oct 2025

Summary

17/10/2017
N/A
Yes i
Medium
6.8

ALPINE-CVE-2017-13077: Wi-Fi Protected Access (WPA and WPA2) allows reinstallation of the Pairwise Transient Key (PTK) Temporal Key (TK) during the four-way handshake, allowing an attacker within radio range to replay, decrypt, or spoof frames... Affects hostapd versions < 2.6-r2. Fixed in 2.6-r2. 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 MarkAI Find prospects already talking about the problem you solve AI watches the communities your customers use to find qualified prospects, then alerts you when a conversation is worth joining. See MarkAI

Background

Hostapd and Wpa_supplicant are essential components in managing wireless network connections, providing functionalities such as authentication and encryption for Wi-Fi networks. They are widely used in various Linux distributions, including Alpine Linux. The vulnerability in question affects the security of the WPA and WPA2 protocols, potentially allowing unauthorized access to sensitive data transmitted over the network.

Vulnerability Detail

The vulnerability, identified as CVE-2017-13077, arises from a flaw in the Wi-Fi Protected Access (WPA and WPA2) protocols, which allows an attacker within radio range to exploit the four-way handshake process. By reinstalling the Pairwise Transient Key (PTK) Temporal Key (TK), an attacker can replay, decrypt, or spoof frames, leading to unauthorized access and data breaches. This vulnerability poses a significant risk to the confidentiality and integrity of wireless communications.

How To Fix

Minimum fixed version

2.6-r2

This is the first release that contains the fix.

sudo apk add --upgrade hostapd

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

Workaround

As a temporary workaround, consider disabling the WPA/WPA2 protocols on your wireless network and switching to a more secure alternative, such as WPA3, if supported by your devices. This can help mitigate the risk until the affected packages are updated.

Conclusion

The CVE-2017-13077 vulnerability in Hostapd and Wpa_supplicant poses a significant risk to wireless network security. It is essential to update to the patched versions of these packages to protect against potential attacks. Utilizing tools like Vulert can help monitor and alert for such vulnerabilities in real-time.

See every vulnerability recorded for hostapd →

Share this vulnerability

FAQ

CVE-2017-13077 is a vulnerability in the WPA and WPA2 protocols that allows attackers to exploit the four-way handshake process, potentially leading to unauthorized access to sensitive data.

You can use Vulert, which monitors open-source vulnerabilities in your software by analyzing the manifest file like package-lock.json. Visit Vulert Scanner to check if your application is affected.

The consequences include unauthorized access to network communications, potential data breaches, and the ability for attackers to spoof or replay network frames.

Yes, patches are available. Ensure that Hostapd is updated to version 2.6-r2 and Wpa_supplicant to version 2.6-r7 or later.

If immediate updates are not possible, consider disabling WPA/WPA2 protocols and switching to WPA3 if your devices support it to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for hostapd.

How To Fix

Minimum fixed version

2.6-r2

This is the first release that contains the fix.

sudo apk add --upgrade hostapd

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