CVE-2020-24913: SQL Injection Vulnerability in qcubed/qcubed

qcubed/qcubed Updated 02 Oct 2025

Summary

24/05/2022
Yes i
Critical
9.8

CVE-2020-24913: qcubed SQL injection vulnerability in profile.php via the strQuery parameter. Affects qcubed/qcubed versions < 3.2. Fixed in 3.2. 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

qcubed is an open-source PHP framework that provides a rapid application development environment. It offers a range of features and components to simplify the development process. The vulnerability affects all versions of qcubed, including 3.1.1. The framework includes a profile.php file that is vulnerable to SQL injection attacks when the strQuery parameter is not properly sanitized. This allows an attacker to inject malicious SQL code through a crafted POST request.

Vulnerability Detail

The SQL injection vulnerability in qcubed's profile.php file allows an unauthenticated attacker to access the database by injecting SQL code through a specially crafted POST request. This can lead to unauthorized access, data manipulation, and potentially the compromise of sensitive information stored in the database. The vulnerability has a CVSS score of 9.8, indicating its critical severity.

How To Fix

Minimum fixed version

3.2

This is the first release that contains the fix.

composer require qcubed/qcubed:3.2

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

Workaround

If upgrading to the latest version is not immediately feasible, a temporary workaround can be implemented by manually sanitizing and validating the strQuery parameter in the profile.php file. This can be done by using prepared statements or parameterized queries to ensure that user input is properly escaped and treated as data rather than executable code. Here is an example of how to use prepared statements in PHP to mitigate the vulnerability:

// Assuming $strQuery contains the user input

$stmt = $pdo->prepare('SELECT * FROM profiles WHERE query = ?');
$stmt->execute([$strQuery]);
$results = $stmt->fetchAll();

Conclusion

The SQL injection vulnerability in qcubed's profile.php file poses a significant risk to the security and integrity of the application. It is crucial to upgrade to qcubed version 3.2 or later to mitigate the vulnerability. If immediate upgrading is not possible, implementing the provided workaround can help protect against potential attacks. For further assistance and support in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for qcubed/qcubed →

Share this vulnerability

FAQ

The vulnerability allows an attacker to execute arbitrary SQL queries, potentially leading to unauthorized access, data manipulation, and exposure of sensitive information.

All users of qcubed versions up to and including 3.1.1 are affected by this vulnerability.

No, the vulnerability can be exploited by an unauthenticated attacker.

Yes, the vulnerability has been fixed in qcubed version 3.2 and later.

There are no known instances of this vulnerability being exploited in the wild at the time of this report.

Related vulnerabilities

Recent vulnerabilities recorded for qcubed/qcubed.

How To Fix

Minimum fixed version

3.2

This is the first release that contains the fix.

composer require qcubed/qcubed:3.2

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