CVE-2009-2942 SQL injection in n/a
Remote attackers can exploit improper string escaping in MySQL OCaml bindings to perform SQL injection attacks.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2009-2942?
CVE-2009-2942 is a high-severity SQL injection vulnerability in n/a, published on 22 Oct 2009. Any signed-in user can exploit it over the network, with no action from the victim.
Official description
The mysql-ocaml bindings 1.0.4 for MySQL do not properly support the mysql_real_escape_string function, which might allow remote attackers to leverage escaping issues involving multibyte character encodings.
Which versions are affected by CVE-2009-2942?
It affects 1 product.
Products include Mysql-Ocaml Mysql-Ocaml.
How do I fix CVE-2009-2942?
Upgrade to a fixed version.
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-2009-2942 being exploited?
There is no known exploitation of CVE-2009-2942 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2009-2942, DSA-1910-1, GHSA-57vp-79gr-9j72.