SQL Injection Vulnerability in ADOdb Library (libphp-adodb) - CVE-2025-54119

libphp-adodb Updated 02 Oct 2025

Summary

05/08/2025
N/A
No i
Unrated
Not published

CVE-2025-54119: ADOdb is a PHP database class library that provides abstractions for performing queries and managing databases. Affects libphp-adodb versions < 5b8bd52cdcffefb4ecded1b399c98cfa516afe03. No fix is published. 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 Penetration testing for web, API and mobile Manual testing by engineers who build software, not an auditor's checklist. Trusted by teams at Swift and Google Talk to Devnack

Background

ADOdb is a widely used PHP database class library that provides a set of abstractions for managing databases and executing queries. It supports multiple database types and is known for its ease of use and flexibility. However, versions 5.22.9 and below of the ADOdb library are vulnerable to a SQL injection attack due to improper escaping of query parameters, particularly when interacting with sqlite3 databases.

Vulnerability Detail

The vulnerability arises from the improper handling of user input in the ADOdb library, specifically when the metaColumns(), metaForeignKeys(), or metaIndexes() methods are called with a crafted table name. This flaw allows an attacker to execute arbitrary SQL statements, potentially leading to unauthorized data access or manipulation. The vulnerability is present in versions 5.22.9 and earlier, and it has been assigned the identifier CVE-2025-54119.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →

Workaround

As a temporary workaround, ensure that only controlled data is passed to the $table parameter of the

metaColumns(), metaForeignKeys(), and metaIndexes() methods. For example, you can sanitize the input as follows: $table = preg_replace('/[^a-zA-Z0-9_]/', '', $userInput);

Conclusion

The CVE-2025-54119 vulnerability in the ADOdb library poses significant risks due to SQL injection possibilities. It is crucial for developers using affected versions to update to the latest version or implement the recommended workarounds to mitigate potential threats.

See every vulnerability recorded for libphp-adodb →

Share this vulnerability

FAQ

CVE-2025-54119 is a vulnerability in the ADOdb library that allows for SQL injection attacks due to improper escaping of query parameters.

Versions 5.22.9 and below of the ADOdb library are affected by this vulnerability.

You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without any signup.

If you cannot update the library right away, implement the suggested workaround by sanitizing user inputs before passing them to the vulnerable methods.

Exploitation of this vulnerability could lead to unauthorized access to sensitive data, data manipulation, or even complete database compromise.

Related vulnerabilities

Recent vulnerabilities recorded for libphp-adodb.

How To Fix

No fixed version is published for this vulnerability.

Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. 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