CVE-2021-3850
PHP vulnerability analysis and mitigation

Overview

Authentication Bypass vulnerability (CVE-2021-3850) was discovered in ADOdb library for PHP versions prior to 5.20.21. The vulnerability allows attackers to inject values into the PostgreSQL connection string by bypassing the adodb_addslashes() function. This security flaw was initially reported by Emmet Leahy of Sorcery Ltd (Debian Security, GitHub Commit).

Technical details

The vulnerability exists in the PostgreSQL connection handling where the adodb_addslashes() function could be bypassed. An attacker could exploit this by surrounding the username in quotes and submitting with other parameters injected in between. The vulnerability has been assigned a CVSS 3.1 base score of 9.1 (Critical) with the vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:N, indicating network accessibility, low attack complexity, and no required privileges or user interaction (Ubuntu CVE).

Impact

The vulnerability could lead to authentication bypass, potential exposure of server IP addresses, and other unspecified impacts depending on how the library is implemented. The high severity rating indicates significant potential for unauthorized access and data manipulation (Debian LTS).

Mitigation and workarounds

The vulnerability has been fixed in ADOdb version 5.20.21 and later. Various Linux distributions have released security updates: Ubuntu has fixed versions available for multiple releases (5.20.19-1ubuntu0.1 for 22.04 LTS), Debian has released updates (5.20.14-1+deb10u1 for buster, 5.20.19-1+deb11u1 for bullseye), and fixes are available through Ubuntu Pro for ESM Apps (Ubuntu CVE, Debian Security).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-23492HIGH8.8
  • PHPPHP
  • pimcore/pimcore
NoYesJan 14, 2026
CVE-2026-23498HIGH7.2
  • PHPPHP
  • shopware/core
NoYesJan 14, 2026
GHSA-595p-g7xc-c333MEDIUM6.9
  • PHPPHP
  • algolia/algoliasearch-magento-2
NoYesJan 14, 2026
CVE-2022-50807MEDIUM6.9
  • PHPPHP
  • concrete5/concrete5
NoNoJan 13, 2026
CVE-2026-0859MEDIUM5.2
  • PHPPHP
  • typo3/cms-core
NoYesJan 13, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management