Critical SQL Injection Vulnerability in libphp-adodb Package

libphp-adodb Updated 03 Oct 2025

Summary

29/05/2025
N/A
Yes i
Unrated
Not published

USN-7530-1: libphp-adodb vulnerability. Affects libphp-adodb versions < 5.22.8-0.1ubuntu0.1. Fixed in 5.22.8-0.1ubuntu0.1. 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

libphp-adodb is a PHP library that provides a database abstraction layer, allowing developers to interact with various database systems using a unified API. It is widely used in PHP applications for its ease of use and flexibility. However, a recent vulnerability has been identified that compromises its security, specifically related to how it handles SQL input.

Vulnerability Detail

The vulnerability, identified as CVE-2025-46337, arises from improper handling of SQL input within the ADOdb library. This flaw allows remote attackers to execute arbitrary SQL commands, potentially leading to unauthorized data access, data manipulation, or complete system compromise. The issue is particularly concerning as it can be exploited without authentication, making it a critical risk for applications relying on this library.

How To Fix

Minimum fixed version

5.22.8-0.1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libphp-adodb

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

Workaround

As a temporary workaround, developers are advised to sanitize all SQL inputs manually and implement prepared statements to mitigate the risk of SQL injection until the package can be updated.

Conclusion

The libphp-adodb package has a critical vulnerability that allows SQL injection attacks, posing significant risks to applications using it. It is crucial to update to the latest patched version to safeguard against potential exploits. Additionally, implementing best practices for SQL input handling can further enhance security.

See every vulnerability recorded for libphp-adodb →

Share this vulnerability

FAQ

The vulnerability allows remote attackers to execute arbitrary SQL commands due to improper handling of SQL input.

You can use the Vulert playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.

Exploitation of this vulnerability can lead to unauthorized access to sensitive data, data manipulation, or complete system compromise.

Yes, a patched version of the libphp-adodb package is available. Updating to version 5.22.8-0.1ubuntu0.1 will resolve the issue.

If an immediate update is not possible, ensure to sanitize SQL inputs and use prepared statements as a temporary measure to mitigate risks.

Related vulnerabilities

Recent vulnerabilities recorded for libphp-adodb.

How To Fix

Minimum fixed version

5.22.8-0.1ubuntu0.1

This is the first release that contains the fix.

sudo apt-get install --only-upgrade libphp-adodb

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