Heap-based Buffer Overflow in MCPP

mcpp Updated 02 Oct 2025

Summary

26/07/2019
N/A
Yes i
Medium
5.5

CVE-2019-14274: MCPP 2.7.2 has a heap-based buffer overflow in the do_msg() function in support.c. Affects mcpp versions < 2.7.2-r2. Fixed in 2.7.2-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

MCPP is a package used for processing C/C++ source files. It provides a set of utilities for analyzing and manipulating C/C++ code. The package is commonly used in the Alpine Linux distribution, specifically versions 3.8, 3.9, 3.10, and 3.11. The vulnerability, identified as CVE-2019-14274, is a heap-based buffer overflow in the do_msg() function in support.c.

Vulnerability Detail

The heap-based buffer overflow vulnerability in MCPP allows an attacker to overwrite adjacent memory locations, potentially leading to arbitrary code execution or a denial of service (DoS) attack. This vulnerability can be exploited by sending a specially crafted input to the do_msg() function. The impact of this vulnerability is dependent on the context in which MCPP is used, but it has the potential to compromise the integrity and availability of the affected system.

How To Fix

Minimum fixed version

2.7.2-r2

This is the first release that contains the fix.

sudo apk add --upgrade mcpp

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 apply the recommended fix by updating the MCPP package to the patched version.

Conclusion

The heap-based buffer overflow vulnerability in MCPP can have severe consequences, including arbitrary code execution or a denial of service attack. It is crucial to update the MCPP package to the patched version to mitigate this vulnerability. For further support on vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for mcpp →

Share this vulnerability

FAQ

MCPP is a package used for processing C/C++ source files. It provides utilities for analyzing and manipulating C/C++ code.

The vulnerability allows an attacker to overwrite adjacent memory locations, potentially leading to arbitrary code execution or a denial of service (DoS) attack.

To fix this vulnerability, update the MCPP package to version 2.7.2-r2 or later using the package manager of your Linux distribution.

No, there is no known workaround for this vulnerability. It is crucial to apply the recommended fix by updating the MCPP package.

For more information about this vulnerability, you can refer to the CVE-2019-14274 JSON report available at the following source: https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-14274.json

Related vulnerabilities

Recent vulnerabilities recorded for mcpp.

How To Fix

Minimum fixed version

2.7.2-r2

This is the first release that contains the fix.

sudo apk add --upgrade mcpp

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