Vulnerability in libevent - security update

libevent Updated 02 Oct 2025

Summary

06/01/2015
N/A
Yes i
Unrated
Not published

DSA-3119-1: libevent - security update. Affects libevent versions < 2.0.19-stable-3+deb7u1. Fixed in 2.0.19-stable-3+deb7u1. 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 Your last release was probably never penetration tested Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

Libevent is a software library that provides an event-driven programming interface for network applications. It allows developers to write networked applications that can scale with the number of connections. The library provides a set of functions for managing events and event callbacks, as well as support for various types of events, such as I/O events, timers, and signals. Libevent is widely used in various applications and frameworks, including web servers, proxies, and networked applications.

However, a defect has been discovered in certain applications using the Libevent evbuffer API. This defect can leave applications vulnerable to a possible heap overflow or infinite loop when processing insanely large inputs. Exploiting this flaw requires the attacker to find a way to provoke the program into attempting to make a buffer chunk larger than what can fit into a single size_t or off_t.

Vulnerability Detail

The vulnerability in Libevent affects applications that use the evbuffer API and process large inputs. If an attacker can trigger the program to attempt to create a buffer chunk larger than the maximum size, it can lead to a heap overflow or an infinite loop. This can potentially allow the attacker to execute arbitrary code or cause a denial-of-service condition. The impact of this vulnerability depends on the specific application using Libevent and the context in which it is deployed.

How To Fix

Minimum fixed version

2.0.19-stable-3+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libevent

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

Workaround

There is no specific workaround mentioned for this vulnerability. However, as a general best practice, it is recommended to ensure that applications using Libevent are not exposed to untrusted inputs or excessively large inputs that could trigger the vulnerability. Implementing input validation and limiting the size of inputs can help mitigate the risk.

Conclusion

The vulnerability in Libevent's evbuffer API can leave applications open to heap overflow or infinite loop attacks when processing large inputs. Upgrading to the patched version of libevent is the recommended solution to address this vulnerability. Implementing input validation and limiting input sizes can also help mitigate the risk. For more information and assistance, please contact DevNack.com.

See every vulnerability recorded for libevent →

Share this vulnerability

FAQ

The vulnerability affects applications that use the Libevent evbuffer API and process large inputs. The impact may vary depending on the specific application and its usage of Libevent.

If successfully exploited, this vulnerability can lead to a heap overflow or an infinite loop, potentially allowing an attacker to execute arbitrary code or cause a denial-of-service condition.

While the vulnerability has been identified, there is no specific information available about known exploits targeting this issue. However, it is always recommended to apply security patches promptly to mitigate the risk.

If upgrading to the patched version is not immediately feasible, it is recommended to implement input validation and limit the size of inputs to mitigate the risk of triggering the vulnerability. Additionally, ensuring that applications using Libevent are not exposed to untrusted inputs can help reduce the attack surface.

For more information about this vulnerability, you can refer to the Debian Security Advisory DSA-3119-1. Additionally, you can reach out to info@devnack.com for further support on vulnerability remediation.

Related vulnerabilities

Recent vulnerabilities recorded for libevent.

How To Fix

Minimum fixed version

2.0.19-stable-3+deb7u1

This is the first release that contains the fix.

sudo apt-get install --only-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