Critical Vulnerability in libevent: Out-of-Bounds Stack Read Risk

libevent Updated 02 Oct 2025

Summary

15/03/2017
N/A
Yes i
Critical
9.8

ALPINE-CVE-2016-10195: The name_parse function in evdns.c in libevent before 2.1.6-beta allows remote attackers to have unspecified impact via vectors involving the label_len variable, which triggers an out-of-bounds stack read. Affects libevent versions < 2.1.8-r0. Fixed in 2.1.8-r0. 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

libevent is a widely-used library that provides asynchronous I/O and event notification for network applications. It is designed to facilitate the development of high-performance network servers and clients by abstracting the underlying event notification mechanisms. The library supports multiple backends, making it versatile for various operating systems. However, it has been found to be vulnerable to a critical issue that could allow remote attackers to exploit the system.

Vulnerability Detail

The vulnerability, identified as CVE-2016-10195, originates from the name_parse function in evdns.c within libevent versions prior to 2.1.6-beta. It allows remote attackers to trigger an out-of-bounds stack read via vectors involving the label_len variable. This can lead to unauthorized access to sensitive information, potentially compromising the integrity and confidentiality of the affected system. The CVSS score for this vulnerability is 9.8, indicating a critical severity level.

How To Fix

Minimum fixed version

2.1.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade libevent

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

Workaround

If immediate patching is not feasible, consider implementing network-level restrictions to limit access to the affected services until the update can be applied. Additionally, monitor your application for any unusual activity that may indicate an attempted exploit.

Conclusion

The vulnerability in libevent poses a significant risk to systems utilizing the library. It is crucial to update to the patched version to mitigate potential exploitation. Regular monitoring and adherence to security best practices can further enhance system security.

See every vulnerability recorded for libevent →

Share this vulnerability

FAQ

CVE-2016-10195 is a vulnerability in the libevent library that allows remote attackers to exploit an out-of-bounds stack read.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without requiring any signup.

Exploitation of this vulnerability could lead to unauthorized access to sensitive information, potentially compromising the integrity and confidentiality of the system.

The CVSS score for this vulnerability is 9.8, indicating a critical severity level.

Implement network-level restrictions to limit access to the affected services and monitor for unusual activity until the update can be applied.

Related vulnerabilities

Recent vulnerabilities recorded for libevent.

How To Fix

Minimum fixed version

2.1.8-r0

This is the first release that contains the fix.

sudo apk add --upgrade libevent

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