Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 289222 (CVE-2009-2943) - =dev-ml/postgresql-ocaml-1.12.1: Missing escape function (CVE-2009-2943)
Summary: =dev-ml/postgresql-ocaml-1.12.1: Missing escape function (CVE-2009-2943)
Status: RESOLVED FIXED
Alias: CVE-2009-2943
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Security
URL: http://www.auscert.org.au/render.html...
Whiteboard: ~3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2009-10-15 17:37 UTC by Martin Alexander Neumann
Modified: 2012-01-12 00:43 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Martin Alexander Neumann 2009-10-15 17:37:21 UTC
It was discovered that postgresql-ocaml, OCaml bindings to PostgreSQL's
libpq, was missing a function to call PQescapeStringConn(). This is
needed, because PQescapeStringConn() honours the charset of the
connection and prevents insufficient escaping, when certain multibyte
character encodings are used. The added function is called
escape_string_conn() and takes the established database connection as a
first argument. The old escape_string() was kept for backwards
compatibility.

Developers using these bindings are encouraged to adjust their code to
use the new function.

Reproducible: Didn't try
Comment 1 Alex Legler (RETIRED) archtester gentoo-dev Security 2009-10-23 09:48:26 UTC
CVE-2009-2943 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2009-2943):
  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.

Comment 2 Alexis Ballier gentoo-dev 2009-10-23 10:18:12 UTC
2009-09-18:  Fixed serious bug in new escape_string method.

             PLEASE UPGRADE!!!

2009-09-08:  API-change: deleted "escape_string" function.

             There is now a method "escape_string" in the connection
             class, which is not deprecated and hence safer.



???

I see no mention of latest version in those cve & bug reports.
Comment 3 Aaron W. Swenson gentoo-dev 2011-04-22 00:58:46 UTC
Time to revisit this. None of the versions available in the tree are listed in the CVE.

1.7.0 was removed three years ago. (A year and half before this bug was reported.)
1.12.1 was removed a year ago.

1.5.4 never was in the tree. According to the ChangeLog anyway.
Comment 4 Sean Amoss (RETIRED) gentoo-dev Security 2012-01-12 00:43:22 UTC
Vulnerable version removed 09 Apr 2010. Closing noglsa.