Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. joomla/database
  4. ›
  5. CVE-2025-25226

CVE-2025-25226: Joomla Framework Database Package Vulnerable to SQL Injection

April 8, 2025 (updated April 9, 2025)

Improper handling of identifiers lead to a SQL injection vulnerability in the quoteNameStr method of the database package. Please note: the affected method is a protected method. It has no usages in the original packages in neither the 2.x nor 3.x branch and therefore the vulnerability in question can not be exploited when using the original database class. However, classes extending the affected class might be affected, if the vulnerable method is used.

References

  • developer.joomla.org/security-centre/963-20250401-framework-sql-injection-vulnerability-in-quotenamestr-method-of-database-package.html
  • github.com/advisories/GHSA-44v2-prcf-pc3m
  • github.com/joomla-framework/database
  • nvd.nist.gov/vuln/detail/CVE-2025-25226

Code Behaviors & Features

Detect and mitigate CVE-2025-25226 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 1.0.0 before 2.2.0, all versions starting from 3.0.0 before 3.4.0

Fixed versions

  • 3.4.0
  • 2.2.0

Solution

Upgrade to versions 2.2.0, 3.4.0 or above.

Weakness

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')

Source file

packagist/joomla/database/CVE-2025-25226.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 13 May 2025 00:16:12 +0000.