CVE-2022-40825 SQL injection in n/a
SQL injection in CodeIgniter's where_in function allows attackers to read or modify database contents, though validity is disputed.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-40825?
CVE-2022-40825 is a critical SQL injection vulnerability in n/a, published on 7 Oct 2022. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official description
B.C. Institute of Technology CodeIgniter <=3.1.13 is vulnerable to SQL Injection via system\database\DB_query_builder.php where_in() function. Note: Multiple third parties have disputed this as not a valid vulnerability.
Weakness: CWE-89
Which versions are affected by CVE-2022-40825?
1 open source package ship an affected version, including codeigniter. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
codeigniter Bitnami | From 3.0.0 to 3.0.0 | 3.1.13 |
Products include Codeigniter Codeigniter.
How do I fix CVE-2022-40825?
Upgrade codeigniter to 3.1.13 or later.
Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.
Is CVE-2022-40825 being exploited?
There is no known exploitation of CVE-2022-40825 in the wild and no public exploit code.
Other vulnerabilities in n/a
Sources
Also known as BIT-codeigniter-2022-40825, GHSA-vx2g-v3f9-m6mw.