CVE-2009-2943 SQL injection in n/a
Remote attackers can exploit improper string escaping in PostgreSQL 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-2943?
CVE-2009-2943 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 postgresql-ocaml bindings 1.5.4, 1.7.0, and 1.12.1 for PostgreSQL libpq do not properly support the PQescapeStringConn function, which might allow remote attackers to leverage escaping issues involving multibyte character encodings.
Which versions are affected by CVE-2009-2943?
It affects 1 product.
Products include Ocaml Postgresql-Ocaml.
How do I fix CVE-2009-2943?
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-2943 being exploited?
There is no known exploitation of CVE-2009-2943 in the wild and no public exploit code.
Sources
Also known as DEBIAN-CVE-2009-2943, DSA-1909-1, GHSA-vvfr-p62m-9frc.