CVE-2025-25226: Joomla Framework Database Package Vulnerable to SQL Injection
9.8
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.0009%
CWE
Published
4/8/2025
Updated
4/9/2025
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
joomla/database | composer | >= 3.0.0, < 3.4.0 | 3.4.0 |
joomla/database | composer | >= 1.0.0, < 2.2.0 | 2.2.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability description and the provided commit patches clearly point to the quoteNameStr
method in src/DatabaseDriver.php
as the source of the SQL injection vulnerability. The patches for both version branches (2.x and 3.x) show the same change: the internal logic of quoteNameStr
for quoting string parts is removed and replaced with a call to quoteNameString
. This strongly suggests that the original implementation of quoteNameStr
was vulnerable. The advisory mentions that this is a protected method and might not be directly exploitable in the original package but could be in extending classes. The function signature includes the namespace Joomla\Database\DatabaseDriver
as it would appear in a profiler for PHP applications.