Heap-Based Buffer Overflow in Nagios NRPE 3.2.1

nrpe Updated 02 Oct 2025

Summary

16/03/2020
N/A
Yes i
High
7.5

CVE-2020-6582: Nagios NRPE 3.2.1 has a Heap-Based Buffer Overflow, as demonstrated by interpretation of a small negative number as a large positive number during a bzero call. Affects nrpe across 2 version ranges.

< 4.0.0-r0 < 86a77fe3a9cbfae990adc578834fd537f4fa8557

Fixed in 4.0.0-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

Nagios NRPE (Nagios Remote Plugin Executor) is a tool that allows remote execution of Nagios plugins on other Linux/Unix machines. It is commonly used to monitor and manage remote hosts. The NRPE package is available in various versions of the Alpine Linux distribution, including v3.13, v3.14, v3.15, v3.16, and v3.18. However, versions up to and including 3.2.1 are vulnerable to a Heap-Based Buffer Overflow.

Vulnerability Detail

The vulnerability in Nagios NRPE 3.2.1 is a Heap-Based Buffer Overflow. It occurs when a small negative number is interpreted as a large positive number during a bzero call. This can lead to memory corruption and potentially allow an attacker to execute arbitrary code or crash the application. The vulnerability has a CVSS score of 7.5, indicating a high severity.

How To Fix

Minimum fixed version

4.0.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade nrpe

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

Workaround

There is no known workaround for this vulnerability. It is essential to update the NRPE package to the fixed version.

Conclusion

The Heap-Based Buffer Overflow vulnerability in Nagios NRPE 3.2.1 can have severe consequences, including arbitrary code execution and application crashes. It is crucial to update the NRPE package to version 4.0.0-r0 or later to mitigate this vulnerability. For further support on vulnerability remediation, you can contact DevNack.com.

See every vulnerability recorded for nrpe →

Share this vulnerability

FAQ

Nagios NRPE (Nagios Remote Plugin Executor) is a tool that allows remote execution of Nagios plugins on other Linux/Unix machines. It is commonly used for monitoring and managing remote hosts.

A Heap-Based Buffer Overflow is a type of vulnerability where a buffer in the heap memory is overflowed, leading to memory corruption and potential code execution or application crashes.

This vulnerability in Nagios NRPE can allow an attacker to execute arbitrary code or crash the application, potentially leading to a complete compromise of the affected system.

The CVSS score of this vulnerability is 7.5, indicating a high severity.

You can update the NRPE package by using the package manager of your Alpine Linux distribution and installing version 4.0.0-r0 or later.

Related vulnerabilities

Recent vulnerabilities recorded for nrpe.

How To Fix

Minimum fixed version

4.0.0-r0

This is the first release that contains the fix.

sudo apk add --upgrade nrpe

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