Home / Postgresql / Postgresql / CVE-2012-1618
CVE-2012-1618: is it exploited, and which versions of Postgresql are affected and fixed?
CVE-2012-1618 is a vulnerability in Postgresql. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 06:38 UTC). Affected: org.postgresql:postgresql before 8.2 (GitHub advisory GHSA-h86w-m5rm-xr33). Fixed in 8.2 (GitHub advisory GHSA-h86w-m5rm-xr33). Severity: High (7.5, CVSS 2.0, from NVD).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 06:38 UTC, CVE record November 19, 2026, 07:20 UTC and NVD November 19, 2026, 08:48 UTC.
What is CVE-2012-1618?
Interaction error in the PostgreSQL JDBC driver before 8.2, when used with a PostgreSQL server with the "standard_conforming_strings" option enabled, such as the default configuration of PostgreSQL 9.1, does not properly escape unspecified JDBC statement parameters, which allows remote attackers to perform SQL injection attacks. NOTE: as of 20120330, it was claimed that the upstream developer planned to dispute this issue, but an official dispute has not been posted as of 20121005.
From the CVE record by redhat, last updated August 6, 2024, 19:01 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| Maven | org.postgresql:postgresql | < 8.2 | 8.2 | GHSA-h86w-m5rm-xr33 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated February 14, 2023. Summary: Unescaped parameters in the PostgreSQL JDBC driver.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| postgresql | postgresql | 9.1 | application |
| postgresql | postgresql jdbc driver | 8.1 | application |
NVD analysis (status Modified), last modified June 16, 2026, 23:39 UTC.
How severe is CVE-2012-1618?
| Score | Version | Vector | Source |
|---|---|---|---|
| High 7.5 | CVSS 2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P | NVD |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2012-1618 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- EPSS
- 2.94% probability of exploitation activity in the next 30 days, percentile 87.5 (FIRST EPSS, scores of December 2, 2026)
Where are the vendor advisories and references?
- [oss-security] 20120330 postgresql-jdbc 8.1 SQL injection with postgresql server 9.1 mailing-list, x_refsource_MLIST
- [oss-security] 20120402 Re: [JDBC] CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters mailing-list, x_refsource_MLIST
- https://bugzilla.novell.com/show_bug.cgi?id=754273 x_refsource_MISC
- [oss-security] 20120404 Re: CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters mailing-list, x_refsource_MLIST
- 80641 vdb-entry, x_refsource_OSVDB
- [opensuse-security] 20120325 SQL injection attack possible when connecting to PostgreSQL 9.1 with version 8.1 JDBC driver mailing-list, x_refsource_MLIST
- [oss-security] 20120404 Re: Re: [JDBC] CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters mailing-list, x_refsource_MLIST
- [oss-security] 20120404 Re: Re: [pgsql-security] postgresql-jdbc 8.1 SQL injection with postgresql server 9.1 mailing-list, x_refsource_MLIST
- [oss-security] 20120330 CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters mailing-list, x_refsource_MLIST
- [oss-security] 20120404 Re: CVE DISPUTE notification: postgresql-jdbc: SQL injection due improper escaping of JDBC statement parameters mailing-list, x_refsource_MLIST
- [oss-security] 20120331 SQL injection attack possible when connecting to PostgreSQL 9.1 with version 8.1 JDBC driver mailing-list, x_refsource_MLIST
- 20120325 SQL injection attack possible when connecting to PostgreSQL 9.1 with version 8.1 JDBC driver mailing-list, x_refsource_BUGTRAQ
When was it published, and where is the official record?
- Reserved
- March 12, 2012
- Published
- October 6, 2012, 22:00 UTC
- CVE record updated
- August 6, 2024, 19:01 UTC by redhat
- NVD
- Modified, last modified June 16, 2026, 23:39 UTC
- Last checked
- CVE list November 19, 2026, 07:20 UTC; NVD November 19, 2026, 08:48 UTC; KEV December 3, 2026, 06:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
What other CVEs affect Postgresql?
- Nov 12, 2026CVE-2026-6460 PostgreSQL: type confusion
- Nov 12, 2026CVE-2026-6467 PostgreSQL: uncontrolled search path (DLL or library hijacking)
- Nov 12, 2026CVE-2026-16240 PostgreSQL: format string flaw
- Nov 12, 2026CVE-2026-18447 PostgreSQL: type confusion
- Nov 12, 2026CVE-2026-14661 PostgreSQL: external Control of File Name or Path
- Nov 12, 2026CVE-2026-16237 PostgreSQL: improper Protection of Alternate Path
- Nov 12, 2026CVE-2026-120154 PostgreSQL: improper Protection of Alternate Path
- Nov 12, 2026CVE-2026-120153 PostgreSQL: SQL injection
Questions about CVE-2012-1618
Is CVE-2012-1618 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 06:38 UTC. FIRST's EPSS gives it a 2.94% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of Postgresql are affected by CVE-2012-1618?
org.postgresql:postgresql before 8.2, per the GitHub advisory GHSA-h86w-m5rm-xr33. The tables above give every range the sources list.
Which version fixes CVE-2012-1618?
8.2, per the GitHub advisory GHSA-h86w-m5rm-xr33. Check the vendor's advisory before you rely on it.
How severe is CVE-2012-1618?
High (7.5, CVSS 2.0, from NVD). The severity table above shows each score with its source.
Where is the official record of CVE-2012-1618?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.