Heap-Based Buffer Overflow in MCPP Package: CVE-2019-14274

mcpp Updated 02 Oct 2025

Summary

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

ALPINE-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 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

MCPP (M C Preprocessor) is a widely used C preprocessor that facilitates the management of macros and file inclusions in C programming. It is designed to enhance the efficiency of C code compilation by allowing developers to define macros and include files dynamically. However, MCPP versions prior to 2.7.2-r2 are vulnerable to a critical security flaw that can lead to severe consequences if exploited.

Vulnerability Detail

The vulnerability identified as CVE-2019-14274 is a heap-based buffer overflow in the do_msg() function located in support.c of MCPP version 2.7.2. This flaw allows an attacker to manipulate memory allocation, potentially leading to arbitrary code execution or application crashes. The vulnerability arises from improper handling of input data, which can overflow the allocated memory buffer, compromising the integrity of the application and the system it runs on.

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

If immediate patching is not feasible, consider restricting access to the application or implementing input validation to prevent malicious data from being processed. However, these are temporary measures and should not replace the need for a proper update.

Conclusion

CVE-2019-14274 represents a significant security risk for applications using the MCPP package. It is crucial to update to the patched version 2.7.2-r2 to protect against potential exploits. Regular monitoring and vulnerability management practices, such as using tools like Vulert, can help maintain the security of your software.

See every vulnerability recorded for mcpp →

Share this vulnerability

FAQ

CVE-2019-14274 is a security vulnerability in the MCPP package that allows for a heap-based buffer overflow, potentially leading to arbitrary code execution.

MCPP versions prior to 2.7.2-r2 are affected by this vulnerability.

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

The CVSS score for CVE-2019-14274 is 5.5, indicating a moderate level of severity.

If you cannot update the package, consider implementing input validation and restricting access to the application as temporary workarounds.

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