Buffer Overflow in centra

centra Updated 02 Oct 2025

Summary

30/09/2019
HIGH
Yes i
High
7.3

GHSA-v6cj-r88p-92rm: Buffer Overflow in centra. Affects centra versions < 2.4.0. Fixed in 2.4.0. 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

Centra is an npm package that provides a simple and convenient way to make HTTP requests. It is widely used for fetching content from various sources. However, certain versions of Centra are vulnerable to a buffer overflow issue. This vulnerability allows an attacker to send a specially crafted request that can cause a denial of service (DoS) condition. The affected versions of Centra do not limit the size of buffered response bodies, which can lead to excessive memory consumption when processing large or malicious responses.

Vulnerability Detail

The buffer overflow vulnerability in Centra arises from the lack of size limitation on buffered response bodies. When not in stream mode, Centra buffers the entire response into memory, which can be exploited by an attacker to exhaust system resources. This vulnerability poses a significant risk to anyone requesting content from untrusted sources, as an attacker can send a large or malicious response to consume excessive memory and cause a DoS condition. The Common Weakness Enumeration (CWE) ID associated with this vulnerability is CWE-119.

How To Fix

Minimum fixed version

2.4.0

This is the first release that contains the fix.

npm install centra@2.4.0

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

Workaround

There are no recommended workarounds for this vulnerability. It is strongly advised to update Centra to the latest version instead of attempting any workarounds.

Conclusion

The buffer overflow vulnerability in Centra can have severe consequences, leading to a denial of service condition. It is crucial to update Centra to version 2.4.0 or later to mitigate this vulnerability. By limiting the size of buffered response bodies, the latest version prevents excessive memory consumption and ensures the secure usage of Centra. For further support and assistance in vulnerability remediation, you can reach out to DevNack.com.

See every vulnerability recorded for centra →

Share this vulnerability

FAQ

The buffer overflow vulnerability in Centra can lead to a denial of service (DoS) condition. An attacker can send a specially crafted request with a large or malicious response, causing excessive memory consumption and potentially crashing the system.

Anyone using an affected version of Centra and requesting content from untrusted sources is vulnerable to this issue.

There are no known exploits for this vulnerability at the time of this advisory. However, it is important to update Centra to the latest version to mitigate the risk.

No, it is strongly recommended to update Centra to the latest version as there are no reliable workarounds for this vulnerability.

For more information, you can refer to the advisory in the GitHub repository of ethanent/centra. If you have any specific questions or comments, you can open an issue in the repository.

How To Fix

Minimum fixed version

2.4.0

This is the first release that contains the fix.

npm install centra@2.4.0

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