CVE-2017-1000067: MODX Revolution blind SQL injection

modx/revolution Updated 02 Oct 2025

Summary

17/05/2022
Yes i
High
8.8

CVE-2017-1000067: MODX Revolution blind SQL injection. Affects modx/revolution versions >= 2.0.0, < 2.6.0. Fixed in 2.6.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 Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

Background

MODX Revolution is an open-source content management system (CMS) that allows users to create and manage websites. It provides a flexible and extensible platform for developers to build and customize websites according to their requirements. However, versions 2.x - 2.5.6 of MODX Revolution are vulnerable to blind SQL injection. This vulnerability arises due to improper sanitization by the escape method, which can be exploited by an authenticated user to gain unauthorized access to the database and potentially escalate privileges.

Vulnerability Detail

The blind SQL injection vulnerability in MODX Revolution allows an attacker with authenticated access to the system to execute arbitrary SQL queries. By exploiting this vulnerability, an attacker can extract sensitive information from the database, modify or delete data, and potentially gain administrative privileges. The vulnerability is caused by the escape method failing to properly sanitize user-supplied input, allowing malicious SQL statements to be executed.

How To Fix

Minimum fixed version

2.6.0

This is the first release that contains the fix.

composer require modx/revolution:2.6.0

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

Workaround

If upgrading to a fixed version is not immediately possible, a temporary workaround is to implement input validation and parameterized queries to prevent SQL injection attacks. This involves validating user input to ensure it conforms to expected formats and using prepared statements or parameterized queries to separate SQL code from user-supplied data. Here is an example of using parameterized queries in PHP:

$pdo = new PDO('mysql:host=localhost;dbname=mydatabase', 'username', 'password');
$stmt = $pdo->prepare('SELECT * FROM users WHERE username = :username');
$stmt->bindParam(':username', $username);
$stmt->execute();
$result = $stmt->fetchAll();

Conclusion

MODX Revolution versions 2.x - 2.5.6 are vulnerable to blind SQL injection, which can be exploited by an authenticated user to gain unauthorized access to the database and potentially escalate privileges. It is crucial to upgrade to a fixed version (2.6.0 or later) or implement workarounds such as input validation and parameterized queries to mitigate the risk. For further assistance in vulnerability remediation, please contact DevNack.com.

See every vulnerability recorded for modx/revolution →

Share this vulnerability

FAQ

MODX Revolution is an open-source content management system (CMS) that allows users to create and manage websites. It provides a flexible and extensible platform for developers to build and customize websites according to their requirements.

Blind SQL injection is a type of SQL injection attack where the attacker can exploit a vulnerability to execute arbitrary SQL queries without directly viewing the results. Instead, the attacker can infer the results based on the application's response or behavior.

The blind SQL injection vulnerability in MODX Revolution allows an authenticated user to execute arbitrary SQL queries, potentially leading to unauthorized access to the database, data manipulation, and privilege escalation.

Yes, the blind SQL injection vulnerability has been fixed in MODX Revolution version 2.6.0 and later. It is recommended to upgrade to the latest version to mitigate the vulnerability.

If upgrading to a fixed version is not immediately possible, implementing input validation and parameterized queries can help mitigate the risk of SQL injection attacks. This involves validating user input and using prepared statements or parameterized queries to separate SQL code from user-supplied data.

Related vulnerabilities

Recent vulnerabilities recorded for modx/revolution.

Sponsored Lume, the Habilume companion Habilume Habit tracker with a companion that grows with you Complete habits, earn Lume Points, and watch your Lume grow as you stay consistent. App Store Google Play

How To Fix

Minimum fixed version

2.6.0

This is the first release that contains the fix.

composer require modx/revolution:2.6.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