Search

Find a vulnerability

Search criteria

    769 vulnerabilities by PostgreSQL

    CVE-2026-136515 (GCVE-0-2026-136515)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Memory corruption and crashes when the driver rewrites statements for cursors and escapes
    Summary
    psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement: - After SQLExecDirect() failed on a statement handle, the FROM and WHERE positions of the failed statement were applied to the next, shorter statement on that handle. - The parser could record a FROM position with no text after it, and the rewrite then copied a negative length. - An {fn …} escape whose arguments contain FOR UPDATE, ; or INTO … FROM made the driver remove a cursor prefix from the wrong buffer. - {fn CONVERT(?, …)} with an output parameter produced a negative argument length. - An unclosed {fn …} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack. - Translating @@identity in long statement text read an uninitialised pointer, and {? = call …} with nothing bound for the return value dereferenced NULL. Whoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application's heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement:\n\n- After SQLExecDirect() failed on a statement handle, the FROM and WHERE positions of the failed statement were applied to the next, shorter statement on that handle.\n- The parser could record a FROM position with no text after it, and the rewrite then copied a negative length.\n- An {fn \u2026} escape whose arguments contain FOR UPDATE, ; or INTO \u2026 FROM made the driver remove a cursor prefix from the wrong buffer.\n- {fn CONVERT(?, \u2026)} with an output parameter produced a negative argument length.\n- An unclosed {fn \u2026} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack.\n- Translating @@identity in long statement text read an uninitialised pointer, and {? = call \u2026} with nothing bound for the return value dereferenced NULL.\n\nWhoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application\u0027s heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:54.130Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-pw7w-x92p-r3q2",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-pw7w-x92p-r3q2"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Memory corruption and crashes when the driver rewrites statements for cursors and escapes"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136515",
        "datePublished": "2026-11-25T22:25:54.130Z",
        "dateReserved": "2026-11-24T20:17:10.905Z",
        "dateUpdated": "2026-11-25T22:25:54.130Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136514 (GCVE-0-2026-136514)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Another database user can crash applications by changing a table they own
    Summary
    psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user's application reads can crash that application, with an honest server and default options, in these cases: - Columns dropped or added in another session while the application updates rows through an updatable cursor, or describes the columns with Parse=1. - A view whose ctid is NULL, read through an updatable cursor, which writes past the row cache, and a view with a volatile filter scrolled backward with UseDeclareFetch=1. - Rows added through an updatable cursor to a table with child tables or partitions. - A column whose type is named lo, written with data-at-execution parameters. - A DROP TABLE or ALTER TABLE on the connection while another statement still uses the table's column information. - NULL key columns in rows the driver re-reads for an updatable cursor. - A function called with more output parameters than its result has columns. - SQLTables() and SQLTablesW() dereferenced NULL when called with empty strings for the catalog, schema and table names together with a NULL TableType, which kills the process that loaded the driver and every session it serves. The demonstrated results are crashes; one case writes past a heap buffer, but code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user\u0027s application reads can crash that application, with an honest server and default options, in these cases:\n\n- Columns dropped or added in another session while the application updates rows through an updatable cursor, or describes the columns with Parse=1.\n- A view whose ctid is NULL, read through an updatable cursor, which writes past the row cache, and a view with a volatile filter scrolled backward with UseDeclareFetch=1.\n- Rows added through an updatable cursor to a table with child tables or partitions.\n- A column whose type is named lo, written with data-at-execution parameters.\n- A DROP TABLE or ALTER TABLE on the connection while another statement still uses the table\u0027s column information.\n- NULL key columns in rows the driver re-reads for an updatable cursor.\n- A function called with more output parameters than its result has columns.\n- SQLTables() and SQLTablesW() dereferenced NULL when called with empty strings for the catalog, schema and table names together with a NULL TableType, which kills the process that loaded the driver and every session it serves.\n\nThe demonstrated results are crashes; one case writes past a heap buffer, but code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-476",
                  "description": "CWE-476 NULL Pointer Dereference",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:53.531Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-hcmw-j9px-6v23",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hcmw-j9px-6v23"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Another database user can crash applications by changing a table they own"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136514",
        "datePublished": "2026-11-25T22:25:53.531Z",
        "dateReserved": "2026-11-24T20:17:10.905Z",
        "dateUpdated": "2026-11-25T22:25:53.531Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136513 (GCVE-0-2026-136513)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Another local user can redirect log files (incomplete fix for CVE-2026-120066)
    Summary
    When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user's home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process's current directory. Another local user who controls a directory on that path can make the driver create the victim's mylog_*.log and psqlodbc_*.log files in any directory the victim can write to, or leave the victim's process blocked in open(). This completes the fix for CVE-2026-120066 in 18.00.0006. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-59 - Improper Link Resolution Before File Access ('Link Following')
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user\u0027s home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process\u0027s current directory. Another local user who controls a directory on that path can make the driver create the victim\u0027s mylog_*.log and psqlodbc_*.log files in any directory the victim can write to, or leave the victim\u0027s process blocked in open().\n\nThis completes the fix for CVE-2026-120066 in 18.00.0006.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 3.6,
                "baseSeverity": "LOW",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-59",
                  "description": "CWE-59 Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-22",
                  "description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:52.869Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-g5jq-mpgp-mq7q",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g5jq-mpgp-mq7q"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Another local user can redirect log files (incomplete fix for CVE-2026-120066)"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136513",
        "datePublished": "2026-11-25T22:25:52.869Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:52.869Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136512 (GCVE-0-2026-136512)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Buffer overflows when a converted value does not fit the application's buffer
    Summary
    With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another type, the table was altered, or an output parameter's result column had another type, psqlODBC wrote the larger type into the smaller buffer: 12 bytes past a 4-byte buffer for a uuid, and more in multi-row fetches, where the driver also steps through the array by the larger size. Other conversions wrote past the application's buffer as well: - With Int8As set to a smaller type, an int8 column fetched as SQL_C_DEFAULT was still written as 8 bytes. - An int2vector column fetched as SQL_C_DEFAULT returned unterminated binary data instead of text. - An output parameter that the application discards by binding a NULL buffer overflowed a stack buffer in the driver. - SQLGetData() with BufferLength 0 on a column the driver reads as a large object wrote a NUL byte past the buffer. - Adding a row with SQLBulkOperations(SQL_ADD) on a static updatable cursor before the first fetch, then changing that row, rolling back and fetching it, made the keyset index arithmetic free a pointer that was never allocated and corrupt the heap. This can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable), and by the owner of a table the application reads. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another type, the table was altered, or an output parameter\u0027s result column had another type, psqlODBC wrote the larger type into the smaller buffer: 12 bytes past a 4-byte buffer for a uuid, and more in multi-row fetches, where the driver also steps through the array by the larger size.\n\nOther conversions wrote past the application\u0027s buffer as well:\n\n- With Int8As set to a smaller type, an int8 column fetched as SQL_C_DEFAULT was still written as 8 bytes.\n- An int2vector column fetched as SQL_C_DEFAULT returned unterminated binary data instead of text.\n- An output parameter that the application discards by binding a NULL buffer overflowed a stack buffer in the driver.\n- SQLGetData() with BufferLength 0 on a column the driver reads as a large object wrote a NUL byte past the buffer.\n- Adding a row with SQLBulkOperations(SQL_ADD) on a static updatable cursor before the first fetch, then changing that row, rolling back and fetching it, made the keyset index arithmetic free a pointer that was never allocated and corrupt the heap.\n\nThis can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable), and by the owner of a table the application reads.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:52.208Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-c66p-8p63-p7mr",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-c66p-8p63-p7mr"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Buffer overflows when a converted value does not fit the application\u0027s buffer"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136512",
        "datePublished": "2026-11-25T22:25:52.208Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:52.208Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136511 (GCVE-0-2026-136511)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    An SSLmode value written with capitals or braces connects without TLS
    Summary
    psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the connection was not encrypted. An attacker on the network path of such a connection can read and change its traffic. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-636 - Not Failing Securely ('Failing Open')
    • CWE-178 - Improper Handling of Case Sensitivity
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the connection was not encrypted.\n\nAn attacker on the network path of such a connection can read and change its traffic.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-636",
                  "description": "CWE-636 Not Failing Securely (\u0027Failing Open\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-178",
                  "description": "CWE-178 Improper Handling of Case Sensitivity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:51.601Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-9vpf-qm3q-xh5x",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9vpf-qm3q-xh5x"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "An SSLmode value written with capitals or braces connects without TLS"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136511",
        "datePublished": "2026-11-25T22:25:51.601Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:51.601Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136510 (GCVE-0-2026-136510)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own
    Summary
    A parameter-array execution that fails part-way leaves the rows it has already queued on the statement handle, and the next execution on that handle sends them. After a data-at-execution batch is abandoned, by SQLCancel or a rejected SQLPutData, the next SQLExecDirect sends the failed batch's rows and returns SQL_SUCCESS without sending its own statement. So an application that logs the failure on the same handle has its log entry turned into a silent no-op, while rows it was told had failed are stored. An end user who controls one value in an application's array insert can arrange both halves of that. A second route needs no data-at-execution parameter: when building a later row fails in parameter conversion, the queued rows go to the server ahead of the next parameter array on the handle, inside whatever transaction and session settings are current by then. One variant also writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement. The statements that run are the application's own, correctly quoted; no SQL text comes from outside. Versions from psqlODBC 12.02.0000, which introduced batched parameter-array execution, up to and including 18.00.0006 are affected.
    CWE
    • CWE-665 - Improper Initialization
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 12.02.0000 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "12.02.0000",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "A parameter-array execution that fails part-way leaves the rows it has already\nqueued on the statement handle, and the next execution on that handle sends\nthem. After a data-at-execution batch is abandoned, by SQLCancel or a\nrejected SQLPutData, the next SQLExecDirect sends the failed batch\u0027s rows\nand returns SQL_SUCCESS without sending its own statement.\n\nSo an application that logs the failure on the same handle has its log entry\nturned into a silent no-op, while rows it was told had failed are stored. An\nend user who controls one value in an application\u0027s array insert can arrange\nboth halves of that.\n\nA second route needs no data-at-execution parameter: when building a later row\nfails in parameter conversion, the queued rows go to the server ahead of the\nnext parameter array on the handle, inside whatever transaction and session\nsettings are current by then. One variant also writes past the end of a shorter\nSQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement.\n\nThe statements that run are the application\u0027s own, correctly quoted; no SQL\ntext comes from outside.\n\nVersions from psqlODBC 12.02.0000, which introduced batched parameter-array\nexecution, up to and including 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 4.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-665",
                  "description": "CWE-665 Improper Initialization",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:51.005Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-9j2v-p4pj-f4wj",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9j2v-p4pj-f4wj"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Statement after an abandoned parameter array sends the abandoned batch\u0027s rows instead of its own"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136510",
        "datePublished": "2026-11-25T22:25:51.005Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:51.005Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136509 (GCVE-0-2026-136509)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Driver does not check that server replies match the queries it sent
    Summary
    psqlODBC did not check that a server reply matches the query it sent: that a FETCH returns no more rows than it asked for, that each row has the described number of columns, that one query produces one result, and that a COPY, a transaction or the connection ends where the protocol says. By sending replies that do not match, a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable) can corrupt memory in the application: - A FETCH reply with more rows than requested overflows the row cache. - Extra results in reply to a FETCH, or to the queries of a keyset-driven cursor, are freed while still in use. - A key query of a keyset-driven cursor answered with extra columns, or a re-read row with fewer columns, overflows the row cache. - Replies without columns or rows, or with NULL values, to the driver's internal queries at connect time and in catalog functions are dereferenced. - A malformed relacl value in SQLTablePrivileges() makes the driver write past a buffer. - On Windows with MSDTC, a long transaction name returned by the server overflows a buffer during recovery. - Values in replies to the driver's internal queries are used without checking their range: an empty column name, a parameter count, a large-object size, a function's or trigger's argument count, and a result of exactly 32767 columns. They are dereferenced, read past, returned to the application or sent back to the server as stack memory, or make the driver loop forever. - A reply that ends a COPY, the connection or the transaction at an unexpected point leaves freed results, keysets or table information in use: a CopyOutResponse followed by a lost connection, a ROLLBACK command tag under UseDeclareFetch=1, or a lost connection while a cursor with positioned updates is closed. Eight extra bytes in a reply also make the driver wait forever for a COPY to end. - On Windows, a start-up reply without client_encoding crashes the driver, and with MSDTC a failed connection makes the XA library use a connection it has already freed. - An error message ending in the first byte of a multibyte character leaves the SQLSTATE returned by SQLGetDiagRecW() unterminated. - When a string value did not fit the application's buffer, eight Unicode entry points filled the buffer and wrote no null terminator, so a caller that reads to the terminator, as ODBC allows, read past the end of its own buffer. This continues the fixes for CVE-2026-120058 and CVE-2026-120060, which covered other replies. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC did not check that a server reply matches the query it sent: that a FETCH returns no more rows than it asked for, that each row has the described number of columns, that one query produces one result, and that a COPY, a transaction or the connection ends where the protocol says. By sending replies that do not match, a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable) can corrupt memory in the application:\n\n- A FETCH reply with more rows than requested overflows the row cache.\n- Extra results in reply to a FETCH, or to the queries of a keyset-driven cursor, are freed while still in use.\n- A key query of a keyset-driven cursor answered with extra columns, or a re-read row with fewer columns, overflows the row cache.\n- Replies without columns or rows, or with NULL values, to the driver\u0027s internal queries at connect time and in catalog functions are dereferenced.\n- A malformed relacl value in SQLTablePrivileges() makes the driver write past a buffer.\n- On Windows with MSDTC, a long transaction name returned by the server overflows a buffer during recovery.\n- Values in replies to the driver\u0027s internal queries are used without checking their range: an empty column name, a parameter count, a large-object size, a function\u0027s or trigger\u0027s argument count, and a result of exactly 32767 columns. They are dereferenced, read past, returned to the application or sent back to the server as stack memory, or make the driver loop forever.\n- A reply that ends a COPY, the connection or the transaction at an unexpected point leaves freed results, keysets or table information in use: a CopyOutResponse followed by a lost connection, a ROLLBACK command tag under UseDeclareFetch=1, or a lost connection while a cursor with positioned updates is closed. Eight extra bytes in a reply also make the driver wait forever for a COPY to end.\n- On Windows, a start-up reply without client_encoding crashes the driver, and with MSDTC a failed connection makes the XA library use a connection it has already freed.\n- An error message ending in the first byte of a multibyte character leaves the SQLSTATE returned by SQLGetDiagRecW() unterminated.\n- When a string value did not fit the application\u0027s buffer, eight Unicode entry points filled the buffer and wrote no null terminator, so a caller that reads to the terminator, as ODBC allows, read past the end of its own buffer.\n\nThis continues the fixes for CVE-2026-120058 and CVE-2026-120060, which covered other replies. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-476",
                  "description": "CWE-476 NULL Pointer Dereference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:50.395Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-98mx-57hv-xjpr",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-98mx-57hv-xjpr"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Driver does not check that server replies match the queries it sent"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136509",
        "datePublished": "2026-11-25T22:25:50.395Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:50.395Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136508 (GCVE-0-2026-136508)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    MSDTC connections drop the connection's TLS and channel binding settings
    Summary
    On Windows, when a connection takes part in a distributed transaction, psqlODBC and its XA library open further connections of their own to finish the transaction. These connections did not keep the security settings of the application's connection: - When the XA library's first connection attempt failed, it tried again with sslmode=allow, even for a data source configured with sslmode=verify-full or verify-ca. - The connections the driver opens itself ignored every libpq option given through pqopt, such as channel_binding=require, and the open string it registers with MSDTC carried no pqopt, so the XA library's connections dropped those options too. An attacker on the network path between the MSDTC host and the PostgreSQL server, without a certificate or credentials, can make those connections go to a server of their choosing without TLS, read and change what they send, and decide the outcome MSDTC records for the transaction. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-757 - Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade')
    • CWE-319 - Cleartext Transmission of Sensitive Information
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "On Windows, when a connection takes part in a distributed transaction, psqlODBC and its XA library open further connections of their own to finish the transaction. These connections did not keep the security settings of the application\u0027s connection:\n\n- When the XA library\u0027s first connection attempt failed, it tried again with sslmode=allow, even for a data source configured with sslmode=verify-full or verify-ca.\n- The connections the driver opens itself ignored every libpq option given through pqopt, such as channel_binding=require, and the open string it registers with MSDTC carried no pqopt, so the XA library\u0027s connections dropped those options too.\n\nAn attacker on the network path between the MSDTC host and the PostgreSQL server, without a certificate or credentials, can make those connections go to a server of their choosing without TLS, read and change what they send, and decide the outcome MSDTC records for the transaction.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-757",
                  "description": "CWE-757 Selection of Less-Secure Algorithm During Negotiation (\u0027Algorithm Downgrade\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-319",
                  "description": "CWE-319 Cleartext Transmission of Sensitive Information",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:49.725Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-8q3q-86gx-g68g",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-8q3q-86gx-g68g"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "MSDTC connections drop the connection\u0027s TLS and channel binding settings"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136508",
        "datePublished": "2026-11-25T22:25:49.725Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:49.725Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136507 (GCVE-0-2026-136507)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Connection string injection in SQLDriverConnect and the MSDTC XA open string
    Summary
    psqlODBC parsed and built connection strings in ways that let a value end early: - In a braced value, such as PWD={…}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace. - A braced value that ended right after an escaped }} was not reported as unterminated, and its contents were parsed as further keywords. - SQLConnectW(), SQLDriverConnectW() and SQLBrowseConnectW() cut a connection string whose UTF-8 form is longer than 32767 bytes, which changes how the rest of it is parsed. - On Windows with MSDTC, the password and user name were put into the XA open string without escaping, and the XA library copied each item of that string into a 64-byte stack buffer. - Percent-encoding a long password wrote one byte past a 4096-byte stack buffer. An end user who supplies a password, or another value the application puts into the connection string, can set other connection keywords, for example to connect the application to a server of their choosing. The MSDTC case can also overflow a stack buffer in the process that loads the XA library. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-74 - Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
    • CWE-197 - Numeric Truncation Error
    • CWE-121 - Stack-based Buffer Overflow
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC parsed and built connection strings in ways that let a value end early:\n\n- In a braced value, such as PWD={\u2026}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace.\n- A braced value that ended right after an escaped }} was not reported as unterminated, and its contents were parsed as further keywords.\n- SQLConnectW(), SQLDriverConnectW() and SQLBrowseConnectW() cut a connection string whose UTF-8 form is longer than 32767 bytes, which changes how the rest of it is parsed.\n- On Windows with MSDTC, the password and user name were put into the XA open string without escaping, and the XA library copied each item of that string into a 64-byte stack buffer.\n- Percent-encoding a long password wrote one byte past a 4096-byte stack buffer.\n\nAn end user who supplies a password, or another value the application puts into the connection string, can set other connection keywords, for example to connect the application to a server of their choosing. The MSDTC case can also overflow a stack buffer in the process that loads the XA library.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 8.1,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-74",
                  "description": "CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (\u0027Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-197",
                  "description": "CWE-197 Numeric Truncation Error",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-121",
                  "description": "CWE-121 Stack-based Buffer Overflow",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:49.140Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-7638-f7xp-wv22",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Connection string injection in SQLDriverConnect and the MSDTC XA open string"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136507",
        "datePublished": "2026-11-25T22:25:49.140Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:49.140Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136506 (GCVE-0-2026-136506)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    SQL injection through names the driver puts into its own queries
    Summary
    psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification: - the database name in SQLForeignKeys(); - the current schema name in catalog functions; - the table name in the currtid2() call that re-reads rows of updatable cursors; - column names in the inserts and updates of SQLSetPos() and SQLBulkOperations(); - cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1); - parameter names (SQL_DESC_NAME) in procedure calls; - the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path. The column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles " in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one. A database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application's database role. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    • CWE-706 - Use of Incorrectly-Resolved Name or Reference
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification:\n\n- the database name in SQLForeignKeys();\n- the current schema name in catalog functions;\n- the table name in the currtid2() call that re-reads rows of updatable cursors;\n- column names in the inserts and updates of SQLSetPos() and SQLBulkOperations();\n- cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1);\n- parameter names (SQL_DESC_NAME) in procedure calls;\n- the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path.\n\nThe column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles \" in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one.\n\nA database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application\u0027s database role.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-706",
                  "description": "CWE-706 Use of Incorrectly-Resolved Name or Reference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:48.472Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-63r4-gjcj-f69v",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "SQL injection through names the driver puts into its own queries"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136506",
        "datePublished": "2026-11-25T22:25:48.472Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:48.472Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136505 (GCVE-0-2026-136505)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Unchecked sizes and counters overflow driver buffers
    Summary
    psqlODBC uses sizes and counts without checking their range, or keeps them in types too small for them: - A row array size of 0, set with SQLSetStmtAttr() or on the ARD, makes SQLSetPos() with SQL_REFRESH write past the bound arrays. - SQL_DESC_COUNT above 32767 on an APD or IPD writes before the start of a heap buffer. - A numeric parameter with a negative scale overflows a stack buffer. - SQLGetData() of a text value of 2 GiB or more into a wide-character buffer computes a wrapped size and overflows the heap. - The 16-bit reference count and size of the statement parser's column-information cache wrap, which frees a cache entry still in use or overflows the cache, and a statement with more than 32768 columns overflows the parser's field array. - An updatable cursor that records more than 65535 changes in one transaction wraps the 16-bit capacity of its rollback log, which overflows it and frees it twice. - A statement with 32769 or more parameter markers overflows a 16-bit parameter count. - A wide-character string of more than 2 GiB wraps the size of its UTF-8 conversion, which is then written below the start of a heap buffer. - SQLGetDiagField() and SQLGetDiagFieldW() always stored the five-character SQLSTATE plus its terminator and checked BufferLength only afterwards, overrunning a buffer shorter than six bytes. - The ANSI SQLSetDescField(SQL_DESC_NAME) on an IPD ignored BufferLength and copied the name with strdup(), reading a name passed as pointer plus length past its end. - SQLFetchScroll(SQL_FETCH_BOOKMARK) did not check the bookmark it was given, so whoever chooses the bookmark value read out of bounds and crashed the process. - Four places in the parameter conversion read one byte past the end of a bound character parameter, and one of them rewrote it. - Binding a date, time or timestamp C value to an SQL_INTEGER or SQL_SMALLINT parameter dereferenced NULL instead of returning the conversion error. Depending on the case, the values come from the application, from the data or statement text an end user supplies, or from a database user who controls the size of a table or value. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-190 - Integer Overflow or Wraparound
    • CWE-787 - Out-of-bounds Write
    • CWE-121 - Stack-based Buffer Overflow
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC uses sizes and counts without checking their range, or keeps them in types too small for them:\n\n- A row array size of 0, set with SQLSetStmtAttr() or on the ARD, makes SQLSetPos() with SQL_REFRESH write past the bound arrays.\n- SQL_DESC_COUNT above 32767 on an APD or IPD writes before the start of a heap buffer.\n- A numeric parameter with a negative scale overflows a stack buffer.\n- SQLGetData() of a text value of 2 GiB or more into a wide-character buffer computes a wrapped size and overflows the heap.\n- The 16-bit reference count and size of the statement parser\u0027s column-information cache wrap, which frees a cache entry still in use or overflows the cache, and a statement with more than 32768 columns overflows the parser\u0027s field array.\n- An updatable cursor that records more than 65535 changes in one transaction wraps the 16-bit capacity of its rollback log, which overflows it and frees it twice.\n- A statement with 32769 or more parameter markers overflows a 16-bit parameter count.\n- A wide-character string of more than 2 GiB wraps the size of its UTF-8 conversion, which is then written below the start of a heap buffer.\n- SQLGetDiagField() and SQLGetDiagFieldW() always stored the five-character SQLSTATE plus its terminator and checked BufferLength only afterwards, overrunning a buffer shorter than six bytes.\n- The ANSI SQLSetDescField(SQL_DESC_NAME) on an IPD ignored BufferLength and copied the name with strdup(), reading a name passed as pointer plus length past its end.\n- SQLFetchScroll(SQL_FETCH_BOOKMARK) did not check the bookmark it was given, so whoever chooses the bookmark value read out of bounds and crashed the process.\n- Four places in the parameter conversion read one byte past the end of a bound character parameter, and one of them rewrote it.\n- Binding a date, time or timestamp C value to an SQL_INTEGER or SQL_SMALLINT parameter dereferenced NULL instead of returning the conversion error.\n\nDepending on the case, the values come from the application, from the data or statement text an end user supplies, or from a database user who controls the size of a table or value. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-190",
                  "description": "CWE-190 Integer Overflow or Wraparound",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-121",
                  "description": "CWE-121 Stack-based Buffer Overflow",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:47.870Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-4g4f-phc4-3qh7",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4g4f-phc4-3qh7"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Unchecked sizes and counters overflow driver buffers"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136505",
        "datePublished": "2026-11-25T22:25:47.870Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:47.870Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136504 (GCVE-0-2026-136504)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Debug log records the database password in clear text
    Summary
    With the driver's debug log (MyLog) turned on, two paths write the database password to the log in clear text, both beside a line where the driver's own redaction masks it as PWD=xxxxx: - Pressing "Test" in the Windows data source setup dialog (psqlsetup.dll) logs the whole connection string, which carries PWD= percent-encoded, which is reversible, and any password= or sslpassword= inside pqopt. - The Unicode connect functions SQLDriverConnectW, SQLConnectW and SQLBrowseConnectW log their arguments as they convert them between UTF-16 and UTF-8, before the masking happens. The ANSI entry points are unaffected. Turning the log on takes an administrator, and MyLog is off by default. The exposure is the person who later reads the log, which in practice means a log attached to a bug report or handed to support. Making that safe is the purpose of the driver's redaction, and these two sites bypassed it. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-532 - Insertion of Sensitive Information into Log File
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "With the driver\u0027s debug log (MyLog) turned on, two paths write the database\npassword to the log in clear text, both beside a line where the driver\u0027s own\nredaction masks it as PWD=xxxxx:\n\n- Pressing \"Test\" in the Windows data source setup dialog (psqlsetup.dll)\n  logs the whole connection string, which carries PWD= percent-encoded,\n  which is reversible, and any password= or sslpassword= inside pqopt.\n- The Unicode connect functions SQLDriverConnectW, SQLConnectW and\n  SQLBrowseConnectW log their arguments as they convert them between UTF-16\n  and UTF-8, before the masking happens. The ANSI entry points are unaffected.\n\nTurning the log on takes an administrator, and MyLog is off by default. The\nexposure is the person who later reads the log, which in practice means a log\nattached to a bug report or handed to support. Making that safe is the purpose\nof the driver\u0027s redaction, and these two sites bypassed it.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 5,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-532",
                  "description": "CWE-532 Insertion of Sensitive Information into Log File",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:47.271Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-4cgj-r3wg-3rj2",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4cgj-r3wg-3rj2"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Debug log records the database password in clear text"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136504",
        "datePublished": "2026-11-25T22:25:47.271Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:47.271Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136503 (GCVE-0-2026-136503)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Use after free, double free and out-of-bounds writes in result and transaction clean-up
    Summary
    psqlODBC frees memory that is still in use, frees it twice, or writes outside an application buffer in these cases: - The clean-up the driver runs at commit and rollback sends queries of its own, and the reply to one of them can start the clean-up again while it is running. The nested run frees the rollback log, or the list of cursors and prepared statements to close, and the outer run uses and frees it again. - The callback through which libpq delivers notices could run that clean-up, and close the connection, while libpq was still using the connection. - Freeing a statement whose result holds several cursors (FetchRefcursors=1, or UseDeclareFetch=1) used the freed first result while the later cursors were closed. - With UseDeclareFetch=1, after a rollback closed an updatable cursor, rows added or deleted through it were counted but not stored, so freeing the statement freed uninitialised pointers, and adding a row wrote past the keyset. - After a multi-row fetch failed on a row other than the first of its rowset, SQLGetData() wrote at an offset past the buffer the application passed. - SQLProcedureColumns() freed the result of its catalog query twice when the query failed. - In a process named sqlservr (SQL Server linked servers), a server version below 8.4 made the statement parser free a buffer twice. - A failed SQLPutData in the middle of a SQLSetPos() or SQLBulkOperations() data-at-execution sequence left the whole operation pending, with the internal statement still allocated and autocommit silently off, so later statements were rolled back at disconnect. The next positioned update ran the stale callback against a statement that was never executed and dereferenced NULL. Most of these can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable). A database user who can make a statement fail, or who controls the contents of a row the application reads, can trigger the UseDeclareFetch=1 and SQLGetData() cases against an honest server. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC frees memory that is still in use, frees it twice, or writes outside an application buffer in these cases:\n\n- The clean-up the driver runs at commit and rollback sends queries of its own, and the reply to one of them can start the clean-up again while it is running. The nested run frees the rollback log, or the list of cursors and prepared statements to close, and the outer run uses and frees it again.\n- The callback through which libpq delivers notices could run that clean-up, and close the connection, while libpq was still using the connection.\n- Freeing a statement whose result holds several cursors (FetchRefcursors=1, or UseDeclareFetch=1) used the freed first result while the later cursors were closed.\n- With UseDeclareFetch=1, after a rollback closed an updatable cursor, rows added or deleted through it were counted but not stored, so freeing the statement freed uninitialised pointers, and adding a row wrote past the keyset.\n- After a multi-row fetch failed on a row other than the first of its rowset, SQLGetData() wrote at an offset past the buffer the application passed.\n- SQLProcedureColumns() freed the result of its catalog query twice when the query failed.\n- In a process named sqlservr (SQL Server linked servers), a server version below 8.4 made the statement parser free a buffer twice.\n- A failed SQLPutData in the middle of a SQLSetPos() or SQLBulkOperations() data-at-execution sequence left the whole operation pending, with the internal statement still allocated and autocommit silently off, so later statements were rolled back at disconnect. The next positioned update ran the stale callback against a statement that was never executed and dereferenced NULL.\n\nMost of these can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable). A database user who can make a statement fail, or who controls the contents of a row the application reads, can trigger the UseDeclareFetch=1 and SQLGetData() cases against an honest server. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-415",
                  "description": "CWE-415 Double Free",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:46.679Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-48v4-hjc5-hx8w",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-48v4-hjc5-hx8w"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Use after free, double free and out-of-bounds writes in result and transaction clean-up"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136503",
        "datePublished": "2026-11-25T22:25:46.679Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:46.679Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136502 (GCVE-0-2026-136502)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    SQL injection and redirected writes because the driver reads SQL text differently from the server
    Summary
    psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positioned write went to another table: - An escape string constant written e'…' in lower case was not recognised as one, and '…' after a keyword ending in E, as in LIKE'…', was taken for one. - A } inside a quoted literal ended an ODBC {d …}, {t …}, {ts …} or {escape …} sequence. - Dollar-quote tags containing _ were not recognised, and an identifier starting with _ followed by $, such as _$$, was taken for the start of a dollar quote, so a parameter marker inside a literal was substituted. - A trailing -- comment in one statement of a batched parameter array swallowed the next statement. - Comments, literals longer than 255 bytes and escape strings were misread when the driver located the FROM and WHERE clauses of a query for an updatable cursor, and the text copied into the cursor's own queries could include SQL from inside a literal. - A table name containing $ was cut at the $, and a quoted table name starting with , or ; ended the table list, so positioned updates, inserts and deletes went to another table. - An integer parameter with an embedded NUL byte cut the query short. - /*/ was taken for a comment that opens and closes, while the server reads it as one that only opens. - ConnSettings was split at every semicolon, including one inside a quoted literal, so an application that puts an end user's value into a SET command there ran the rest of the value as SQL at connect time. An end user who controls text the application puts into a statement, or a parameter value, can run SQL with the rights of the application's database role. A database user who can create a table with a crafted name can redirect another user's positioned writes to a table of their choosing. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    • CWE-706 - Use of Incorrectly-Resolved Name or Reference
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC scans statement text itself to substitute parameters, translate ODBC escapes, join batched statements and rewrite queries for updatable cursors. Where it read the text differently from the server, text the driver took for data ran as SQL, or a positioned write went to another table:\n\n- An escape string constant written e\u0027\u2026\u0027 in lower case was not recognised as one, and \u0027\u2026\u0027 after a keyword ending in E, as in LIKE\u0027\u2026\u0027, was taken for one.\n- A } inside a quoted literal ended an ODBC {d \u2026}, {t \u2026}, {ts \u2026} or {escape \u2026} sequence.\n- Dollar-quote tags containing _ were not recognised, and an identifier starting with _ followed by $, such as _$$, was taken for the start of a dollar quote, so a parameter marker inside a literal was substituted.\n- A trailing -- comment in one statement of a batched parameter array swallowed the next statement.\n- Comments, literals longer than 255 bytes and escape strings were misread when the driver located the FROM and WHERE clauses of a query for an updatable cursor, and the text copied into the cursor\u0027s own queries could include SQL from inside a literal.\n- A table name containing $ was cut at the $, and a quoted table name starting with , or ; ended the table list, so positioned updates, inserts and deletes went to another table.\n- An integer parameter with an embedded NUL byte cut the query short.\n- /*/ was taken for a comment that opens and closes, while the server reads it as one that only opens.\n- ConnSettings was split at every semicolon, including one inside a quoted literal, so an application that puts an end user\u0027s value into a SET command there ran the rest of the value as SQL at connect time.\n\nAn end user who controls text the application puts into a statement, or a parameter value, can run SQL with the rights of the application\u0027s database role. A database user who can create a table with a crafted name can redirect another user\u0027s positioned writes to a table of their choosing.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 8.1,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-706",
                  "description": "CWE-706 Use of Incorrectly-Resolved Name or Reference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:46.083Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-4392-6j85-5q2q",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4392-6j85-5q2q"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "SQL injection and redirected writes because the driver reads SQL text differently from the server"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136502",
        "datePublished": "2026-11-25T22:25:46.083Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:46.083Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136501 (GCVE-0-2026-136501)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Positioned writes go to another user's table through name and case matching
    Summary
    To build positioned updates and to describe columns, psqlODBC matches the names in a statement against the catalog. Where it matched differently from the server, it used another table or column: - Table and schema names were compared case-insensitively in its column-information cache, so users could be taken for another user's "Users", and the driver then evaluated that table's column default to answer @@IDENTITY. - In FROM ONLY t, ONLY was taken for the table name. - Column names were compared case-insensitively, so with Parse=1 the type of another column could decide the size of the application's buffer, which a fetch then overflowed. - In a database whose encoding is single-byte, such as LATIN1 or SQL_ASCII, the server folds the accented letters of an unquoted name by its own locale, while the driver folded only A-Z, so ÉTAT could be taken for another user's "État" instead of état. - On systems other than Windows, in a Turkish or Azeri locale, an unquoted I was not folded to i, and keywords and ODBC function names did not match. - Without a schema name, SQLSpecialColumns() could report the key columns of another user's same-named temporary table, and SQLPrimaryKeys() could take another user's index named <table>_pkey for the primary key of a table without one. - After search_path changed other than through a plain SET statement, positioned writes went to the same-named table in the previously current schema. - SQLBulkOperations() trusted the ctid stored inside a variable-length bookmark handed back by the application, and ignored the WHERE clause that restricted the cursor, so a forged bookmark read, updated or deleted any row of the cursor's table. A database user who can create a table in a schema on another user's search_path can redirect that user's positioned updates, inserts and deletes to a table of their choosing, where they run with the victim's rights, or run an expression of their choosing under the victim's role. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-178 - Improper Handling of Case Sensitivity
    • CWE-706 - Use of Incorrectly-Resolved Name or Reference
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "To build positioned updates and to describe columns, psqlODBC matches the names in a statement against the catalog. Where it matched differently from the server, it used another table or column:\n\n- Table and schema names were compared case-insensitively in its column-information cache, so users could be taken for another user\u0027s \"Users\", and the driver then evaluated that table\u0027s column default to answer @@IDENTITY.\n- In FROM ONLY t, ONLY was taken for the table name.\n- Column names were compared case-insensitively, so with Parse=1 the type of another column could decide the size of the application\u0027s buffer, which a fetch then overflowed.\n- In a database whose encoding is single-byte, such as LATIN1 or SQL_ASCII, the server folds the accented letters of an unquoted name by its own locale, while the driver folded only A-Z, so \u00c9TAT could be taken for another user\u0027s \"\u00c9tat\" instead of \u00e9tat.\n- On systems other than Windows, in a Turkish or Azeri locale, an unquoted I was not folded to i, and keywords and ODBC function names did not match.\n- Without a schema name, SQLSpecialColumns() could report the key columns of another user\u0027s same-named temporary table, and SQLPrimaryKeys() could take another user\u0027s index named \u003ctable\u003e_pkey for the primary key of a table without one.\n- After search_path changed other than through a plain SET statement, positioned writes went to the same-named table in the previously current schema.\n- SQLBulkOperations() trusted the ctid stored inside a variable-length bookmark handed back by the application, and ignored the WHERE clause that restricted the cursor, so a forged bookmark read, updated or deleted any row of the cursor\u0027s table.\n\nA database user who can create a table in a schema on another user\u0027s search_path can redirect that user\u0027s positioned updates, inserts and deletes to a table of their choosing, where they run with the victim\u0027s rights, or run an expression of their choosing under the victim\u0027s role.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.1,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-178",
                  "description": "CWE-178 Improper Handling of Case Sensitivity",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-706",
                  "description": "CWE-706 Use of Incorrectly-Resolved Name or Reference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:45.415Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-38cc-jj5v-wrg6",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-38cc-jj5v-wrg6"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Positioned writes go to another user\u0027s table through name and case matching"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136501",
        "datePublished": "2026-11-25T22:25:45.415Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:45.415Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136500 (GCVE-0-2026-136500)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings
    Summary
    To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BIG5, as single-byte, and it accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of such a character was then not doubled, or a quote the server reads on its own was taken for part of a character, and the literal ended early. An end user who controls one bound character parameter, or a name the application passes to a catalog function such as SQLTables(), can run SQL with the rights of the application's database role. This requires a connection that is not in UTF-8: the ANSI driver, or the ANSI entry points, with one of these client encodings. For bound parameters the driver must also be substituting parameters itself, as it does with UseServerSidePrepare=0 or a cursor type other than forward-only. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    • CWE-173 - Improper Handling of Alternate Encoding
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "To escape a bound parameter, or a name passed to a catalog function, psqlODBC has to know where each multibyte character of the client encoding ends. It treated a client encoding named by an alias the server accepts, such as WIN950, Windows950 or big-5 for BIG5, as single-byte, and it accepted too narrow a range of lead bytes for JOHAB, EUC_TW, EUC_CN and EUC_KR. A quote byte that the server reads as part of such a character was then not doubled, or a quote the server reads on its own was taken for part of a character, and the literal ended early.\n\nAn end user who controls one bound character parameter, or a name the application passes to a catalog function such as SQLTables(), can run SQL with the rights of the application\u0027s database role. This requires a connection that is not in UTF-8: the ANSI driver, or the ANSI entry points, with one of these client encodings. For bound parameters the driver must also be substituting parameters itself, as it does with UseServerSidePrepare=0 or a cursor type other than forward-only.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 8.1,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-173",
                  "description": "CWE-173 Improper Handling of Alternate Encoding",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:44.748Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-2rjm-67gc-54r4",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2rjm-67gc-54r4"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "SQL injection with BIG5 aliases and the JOHAB, EUC_TW, EUC_CN and EUC_KR client encodings"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136500",
        "datePublished": "2026-11-25T22:25:44.748Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:44.748Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136499 (GCVE-0-2026-136499)

    Vulnerability from nvd – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Driver sends application memory to the server or returns it to the caller
    Summary
    psqlODBC read memory it had not written, or memory past the end of an application buffer, and sent it to the server or returned it to the application: - Text bound as SQL_C_CHAR to a large-object parameter was read past the end of the application's buffer, and the extra bytes were stored in the large object. - After a fetch truncated a long bytea or large-object value, positioned updates and inserts read past the bound buffer and wrote that memory into the row. - Hex text with a NUL byte, bound to a binary parameter with an explicit length, sent uninitialised heap memory as the parameter value. - With RowVersioning=1, SQLColumns() on a table that does not exist returned uninitialised stack memory as the schema and table names. - With UseDeclareFetch=1, bookmarks of updatable block cursors contained uninitialised heap memory, and a malformed ctid from the server sent stale heap bytes in positioned updates and deletes. - With UseServerSidePrepare=0, calling SQLNumResultCols(), SQLDescribeCol() or SQLColAttribute() on a prepared statement before SQLExecute() read the application's bound parameter buffers and sent their current contents to the server as literals, although ODBC lets the application fill those buffers after the describe. - The driver named the prepared statements, savepoints, cursors and keyset plans it creates on the server after the heap addresses of its own objects, so the server, or anyone reading an unencrypted connection, learned exact heap addresses inside the client. Depending on the case, an end user who supplies a parameter value, a database user who stores a long value in a row, or a hostile server can obtain memory of the application process, which may hold data of other users or credentials. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-908 - Use of Uninitialized Resource
    • CWE-125 - Out-of-bounds Read
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC read memory it had not written, or memory past the end of an application buffer, and sent it to the server or returned it to the application:\n\n- Text bound as SQL_C_CHAR to a large-object parameter was read past the end of the application\u0027s buffer, and the extra bytes were stored in the large object.\n- After a fetch truncated a long bytea or large-object value, positioned updates and inserts read past the bound buffer and wrote that memory into the row.\n- Hex text with a NUL byte, bound to a binary parameter with an explicit length, sent uninitialised heap memory as the parameter value.\n- With RowVersioning=1, SQLColumns() on a table that does not exist returned uninitialised stack memory as the schema and table names.\n- With UseDeclareFetch=1, bookmarks of updatable block cursors contained uninitialised heap memory, and a malformed ctid from the server sent stale heap bytes in positioned updates and deletes.\n- With UseServerSidePrepare=0, calling SQLNumResultCols(), SQLDescribeCol() or SQLColAttribute() on a prepared statement before SQLExecute() read the application\u0027s bound parameter buffers and sent their current contents to the server as literals, although ODBC lets the application fill those buffers after the describe.\n- The driver named the prepared statements, savepoints, cursors and keyset plans it creates on the server after the heap addresses of its own objects, so the server, or anyone reading an unencrypted connection, learned exact heap addresses inside the client.\n\nDepending on the case, an end user who supplies a parameter value, a database user who stores a long value in a row, or a hostile server can obtain memory of the application process, which may hold data of other users or credentials.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 5.9,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-908",
                  "description": "CWE-908 Use of Uninitialized Resource",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:44.088Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-2mrr-c82q-wc22",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-2mrr-c82q-wc22"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Driver sends application memory to the server or returns it to the caller"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136499",
        "datePublished": "2026-11-25T22:25:44.088Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:44.088Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136515 (GCVE-0-2026-136515)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Memory corruption and crashes when the driver rewrites statements for cursors and escapes
    Summary
    psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement: - After SQLExecDirect() failed on a statement handle, the FROM and WHERE positions of the failed statement were applied to the next, shorter statement on that handle. - The parser could record a FROM position with no text after it, and the rewrite then copied a negative length. - An {fn …} escape whose arguments contain FOR UPDATE, ; or INTO … FROM made the driver remove a cursor prefix from the wrong buffer. - {fn CONVERT(?, …)} with an output parameter produced a negative argument length. - An unclosed {fn …} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack. - Translating @@identity in long statement text read an uninitialised pointer, and {? = call …} with nothing bound for the return value dereferenced NULL. Whoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application's heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC rewrites statement text for keyset-driven cursors and ODBC escapes using positions it found in the text. These positions could lie outside the text or describe another statement:\n\n- After SQLExecDirect() failed on a statement handle, the FROM and WHERE positions of the failed statement were applied to the next, shorter statement on that handle.\n- The parser could record a FROM position with no text after it, and the rewrite then copied a negative length.\n- An {fn \u2026} escape whose arguments contain FOR UPDATE, ; or INTO \u2026 FROM made the driver remove a cursor prefix from the wrong buffer.\n- {fn CONVERT(?, \u2026)} with an output parameter produced a negative argument length.\n- An unclosed {fn \u2026} escape made the driver read past the statement, and a few thousand nested ones exhausted the stack.\n- Translating @@identity in long statement text read an uninitialised pointer, and {? = call \u2026} with nothing bound for the return value dereferenced NULL.\n\nWhoever supplies the text of a statement that an application opens on a keyset-driven or dynamic cursor with a concurrency other than read-only, or calls with an output parameter, can corrupt the application\u0027s heap and end it. That includes the users of query tools, report builders and other applications that run SQL their users type. Code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-674",
                  "description": "CWE-674 Uncontrolled Recursion",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:54.130Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-pw7w-x92p-r3q2",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-pw7w-x92p-r3q2"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Memory corruption and crashes when the driver rewrites statements for cursors and escapes"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136515",
        "datePublished": "2026-11-25T22:25:54.130Z",
        "dateReserved": "2026-11-24T20:17:10.905Z",
        "dateUpdated": "2026-11-25T22:25:54.130Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136514 (GCVE-0-2026-136514)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Another database user can crash applications by changing a table they own
    Summary
    psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user's application reads can crash that application, with an honest server and default options, in these cases: - Columns dropped or added in another session while the application updates rows through an updatable cursor, or describes the columns with Parse=1. - A view whose ctid is NULL, read through an updatable cursor, which writes past the row cache, and a view with a volatile filter scrolled backward with UseDeclareFetch=1. - Rows added through an updatable cursor to a table with child tables or partitions. - A column whose type is named lo, written with data-at-execution parameters. - A DROP TABLE or ALTER TABLE on the connection while another statement still uses the table's column information. - NULL key columns in rows the driver re-reads for an updatable cursor. - A function called with more output parameters than its result has columns. - SQLTables() and SQLTablesW() dereferenced NULL when called with empty strings for the catalog, schema and table names together with a NULL TableType, which kills the process that loaded the driver and every session it serves. The demonstrated results are crashes; one case writes past a heap buffer, but code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC assumed that a table it reads keeps the definition it had when the statement was described or parsed. A database user who owns a table or view another user\u0027s application reads can crash that application, with an honest server and default options, in these cases:\n\n- Columns dropped or added in another session while the application updates rows through an updatable cursor, or describes the columns with Parse=1.\n- A view whose ctid is NULL, read through an updatable cursor, which writes past the row cache, and a view with a volatile filter scrolled backward with UseDeclareFetch=1.\n- Rows added through an updatable cursor to a table with child tables or partitions.\n- A column whose type is named lo, written with data-at-execution parameters.\n- A DROP TABLE or ALTER TABLE on the connection while another statement still uses the table\u0027s column information.\n- NULL key columns in rows the driver re-reads for an updatable cursor.\n- A function called with more output parameters than its result has columns.\n- SQLTables() and SQLTablesW() dereferenced NULL when called with empty strings for the catalog, schema and table names together with a NULL TableType, which kills the process that loaded the driver and every session it serves.\n\nThe demonstrated results are crashes; one case writes past a heap buffer, but code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 6.5,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-476",
                  "description": "CWE-476 NULL Pointer Dereference",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-125",
                  "description": "CWE-125 Out-of-bounds Read",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:53.531Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-hcmw-j9px-6v23",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-hcmw-j9px-6v23"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Another database user can crash applications by changing a table they own"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136514",
        "datePublished": "2026-11-25T22:25:53.531Z",
        "dateReserved": "2026-11-24T20:17:10.905Z",
        "dateUpdated": "2026-11-25T22:25:53.531Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136513 (GCVE-0-2026-136513)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Another local user can redirect log files (incomplete fix for CVE-2026-120066)
    Summary
    When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user's home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process's current directory. Another local user who controls a directory on that path can make the driver create the victim's mylog_*.log and psqlodbc_*.log files in any directory the victim can write to, or leave the victim's process blocked in open(). This completes the fix for CVE-2026-120066 in 18.00.0006. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-59 - Improper Link Resolution Before File Access ('Link Following')
    • CWE-22 - Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal')
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "When Debug or CommLog is enabled and the log directory cannot be used, psqlODBC falls back to a directory under the user\u0027s home directory. It wrote that path with an unexpanded ~, which is resolved relative to the process\u0027s current directory. Another local user who controls a directory on that path can make the driver create the victim\u0027s mylog_*.log and psqlodbc_*.log files in any directory the victim can write to, or leave the victim\u0027s process blocked in open().\n\nThis completes the fix for CVE-2026-120066 in 18.00.0006.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 3.6,
                "baseSeverity": "LOW",
                "vectorString": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-59",
                  "description": "CWE-59 Improper Link Resolution Before File Access (\u0027Link Following\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-22",
                  "description": "CWE-22 Improper Limitation of a Pathname to a Restricted Directory (\u0027Path Traversal\u0027)",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:52.869Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-g5jq-mpgp-mq7q",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g5jq-mpgp-mq7q"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Another local user can redirect log files (incomplete fix for CVE-2026-120066)"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136513",
        "datePublished": "2026-11-25T22:25:52.869Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:52.869Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136512 (GCVE-0-2026-136512)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Buffer overflows when a converted value does not fit the application's buffer
    Summary
    With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another type, the table was altered, or an output parameter's result column had another type, psqlODBC wrote the larger type into the smaller buffer: 12 bytes past a 4-byte buffer for a uuid, and more in multi-row fetches, where the driver also steps through the array by the larger size. Other conversions wrote past the application's buffer as well: - With Int8As set to a smaller type, an int8 column fetched as SQL_C_DEFAULT was still written as 8 bytes. - An int2vector column fetched as SQL_C_DEFAULT returned unterminated binary data instead of text. - An output parameter that the application discards by binding a NULL buffer overflowed a stack buffer in the driver. - SQLGetData() with BufferLength 0 on a column the driver reads as a large object wrote a NUL byte past the buffer. - Adding a row with SQLBulkOperations(SQL_ADD) on a static updatable cursor before the first fetch, then changing that row, rolling back and fetching it, made the keyset index arithmetic free a pointer that was never allocated and corrupt the heap. This can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable), and by the owner of a table the application reads. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "With SQL_C_DEFAULT, the C type of a bound column or parameter follows its SQL type. An application sizes its buffer from the type it was told when it described the statement. When the column had another type at fetch time, because the server reported another type, the table was altered, or an output parameter\u0027s result column had another type, psqlODBC wrote the larger type into the smaller buffer: 12 bytes past a 4-byte buffer for a uuid, and more in multi-row fetches, where the driver also steps through the array by the larger size.\n\nOther conversions wrote past the application\u0027s buffer as well:\n\n- With Int8As set to a smaller type, an int8 column fetched as SQL_C_DEFAULT was still written as 8 bytes.\n- An int2vector column fetched as SQL_C_DEFAULT returned unterminated binary data instead of text.\n- An output parameter that the application discards by binding a NULL buffer overflowed a stack buffer in the driver.\n- SQLGetData() with BufferLength 0 on a column the driver reads as a large object wrote a NUL byte past the buffer.\n- Adding a row with SQLBulkOperations(SQL_ADD) on a static updatable cursor before the first fetch, then changing that row, rolling back and fetching it, made the keyset index arithmetic free a pointer that was never allocated and corrupt the heap.\n\nThis can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable), and by the owner of a table the application reads.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:52.208Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-c66p-8p63-p7mr",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-c66p-8p63-p7mr"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Buffer overflows when a converted value does not fit the application\u0027s buffer"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136512",
        "datePublished": "2026-11-25T22:25:52.208Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:52.208Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136511 (GCVE-0-2026-136511)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    An SSLmode value written with capitals or braces connects without TLS
    Summary
    psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the connection was not encrypted. An attacker on the network path of such a connection can read and change its traffic. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-636 - Not Failing Securely ('Failing Open')
    • CWE-178 - Improper Handling of Case Sensitivity
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC mapped an SSLmode value in a connection string that it did not recognise, such as SSLmode=Require, SSLmode=Verify-Full, SSLmode={require} or SSLmode={verify-full}, to disable. SQLDriverConnect() then returned SQL_SUCCESS with no diagnostic, and the connection was not encrypted.\n\nAn attacker on the network path of such a connection can read and change its traffic.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-636",
                  "description": "CWE-636 Not Failing Securely (\u0027Failing Open\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-178",
                  "description": "CWE-178 Improper Handling of Case Sensitivity",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:51.601Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-9vpf-qm3q-xh5x",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9vpf-qm3q-xh5x"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "An SSLmode value written with capitals or braces connects without TLS"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136511",
        "datePublished": "2026-11-25T22:25:51.601Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:51.601Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136510 (GCVE-0-2026-136510)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Statement after an abandoned parameter array sends the abandoned batch's rows instead of its own
    Summary
    A parameter-array execution that fails part-way leaves the rows it has already queued on the statement handle, and the next execution on that handle sends them. After a data-at-execution batch is abandoned, by SQLCancel or a rejected SQLPutData, the next SQLExecDirect sends the failed batch's rows and returns SQL_SUCCESS without sending its own statement. So an application that logs the failure on the same handle has its log entry turned into a silent no-op, while rows it was told had failed are stored. An end user who controls one value in an application's array insert can arrange both halves of that. A second route needs no data-at-execution parameter: when building a later row fails in parameter conversion, the queued rows go to the server ahead of the next parameter array on the handle, inside whatever transaction and session settings are current by then. One variant also writes past the end of a shorter SQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement. The statements that run are the application's own, correctly quoted; no SQL text comes from outside. Versions from psqlODBC 12.02.0000, which introduced batched parameter-array execution, up to and including 18.00.0006 are affected.
    CWE
    • CWE-665 - Improper Initialization
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 12.02.0000 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "12.02.0000",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "A parameter-array execution that fails part-way leaves the rows it has already\nqueued on the statement handle, and the next execution on that handle sends\nthem. After a data-at-execution batch is abandoned, by SQLCancel or a\nrejected SQLPutData, the next SQLExecDirect sends the failed batch\u0027s rows\nand returns SQL_SUCCESS without sending its own statement.\n\nSo an application that logs the failure on the same handle has its log entry\nturned into a silent no-op, while rows it was told had failed are stored. An\nend user who controls one value in an application\u0027s array insert can arrange\nboth halves of that.\n\nA second route needs no data-at-execution parameter: when building a later row\nfails in parameter conversion, the queued rows go to the server ahead of the\nnext parameter array on the handle, inside whatever transaction and session\nsettings are current by then. One variant also writes past the end of a shorter\nSQL_ATTR_PARAM_STATUS_PTR array supplied by the next statement.\n\nThe statements that run are the application\u0027s own, correctly quoted; no SQL\ntext comes from outside.\n\nVersions from psqlODBC 12.02.0000, which introduced batched parameter-array\nexecution, up to and including 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 4.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:L",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-665",
                  "description": "CWE-665 Improper Initialization",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:51.005Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-9j2v-p4pj-f4wj",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-9j2v-p4pj-f4wj"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Statement after an abandoned parameter array sends the abandoned batch\u0027s rows instead of its own"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136510",
        "datePublished": "2026-11-25T22:25:51.005Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:51.005Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136509 (GCVE-0-2026-136509)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Driver does not check that server replies match the queries it sent
    Summary
    psqlODBC did not check that a server reply matches the query it sent: that a FETCH returns no more rows than it asked for, that each row has the described number of columns, that one query produces one result, and that a COPY, a transaction or the connection ends where the protocol says. By sending replies that do not match, a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable) can corrupt memory in the application: - A FETCH reply with more rows than requested overflows the row cache. - Extra results in reply to a FETCH, or to the queries of a keyset-driven cursor, are freed while still in use. - A key query of a keyset-driven cursor answered with extra columns, or a re-read row with fewer columns, overflows the row cache. - Replies without columns or rows, or with NULL values, to the driver's internal queries at connect time and in catalog functions are dereferenced. - A malformed relacl value in SQLTablePrivileges() makes the driver write past a buffer. - On Windows with MSDTC, a long transaction name returned by the server overflows a buffer during recovery. - Values in replies to the driver's internal queries are used without checking their range: an empty column name, a parameter count, a large-object size, a function's or trigger's argument count, and a result of exactly 32767 columns. They are dereferenced, read past, returned to the application or sent back to the server as stack memory, or make the driver loop forever. - A reply that ends a COPY, the connection or the transaction at an unexpected point leaves freed results, keysets or table information in use: a CopyOutResponse followed by a lost connection, a ROLLBACK command tag under UseDeclareFetch=1, or a lost connection while a cursor with positioned updates is closed. Eight extra bytes in a reply also make the driver wait forever for a COPY to end. - On Windows, a start-up reply without client_encoding crashes the driver, and with MSDTC a failed connection makes the XA library use a connection it has already freed. - An error message ending in the first byte of a multibyte character leaves the SQLSTATE returned by SQLGetDiagRecW() unterminated. - When a string value did not fit the application's buffer, eight Unicode entry points filled the buffer and wrote no null terminator, so a caller that reads to the terminator, as ODBC allows, read past the end of its own buffer. This continues the fixes for CVE-2026-120058 and CVE-2026-120060, which covered other replies. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC did not check that a server reply matches the query it sent: that a FETCH returns no more rows than it asked for, that each row has the described number of columns, that one query produces one result, and that a COPY, a transaction or the connection ends where the protocol says. By sending replies that do not match, a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable) can corrupt memory in the application:\n\n- A FETCH reply with more rows than requested overflows the row cache.\n- Extra results in reply to a FETCH, or to the queries of a keyset-driven cursor, are freed while still in use.\n- A key query of a keyset-driven cursor answered with extra columns, or a re-read row with fewer columns, overflows the row cache.\n- Replies without columns or rows, or with NULL values, to the driver\u0027s internal queries at connect time and in catalog functions are dereferenced.\n- A malformed relacl value in SQLTablePrivileges() makes the driver write past a buffer.\n- On Windows with MSDTC, a long transaction name returned by the server overflows a buffer during recovery.\n- Values in replies to the driver\u0027s internal queries are used without checking their range: an empty column name, a parameter count, a large-object size, a function\u0027s or trigger\u0027s argument count, and a result of exactly 32767 columns. They are dereferenced, read past, returned to the application or sent back to the server as stack memory, or make the driver loop forever.\n- A reply that ends a COPY, the connection or the transaction at an unexpected point leaves freed results, keysets or table information in use: a CopyOutResponse followed by a lost connection, a ROLLBACK command tag under UseDeclareFetch=1, or a lost connection while a cursor with positioned updates is closed. Eight extra bytes in a reply also make the driver wait forever for a COPY to end.\n- On Windows, a start-up reply without client_encoding crashes the driver, and with MSDTC a failed connection makes the XA library use a connection it has already freed.\n- An error message ending in the first byte of a multibyte character leaves the SQLSTATE returned by SQLGetDiagRecW() unterminated.\n- When a string value did not fit the application\u0027s buffer, eight Unicode entry points filled the buffer and wrote no null terminator, so a caller that reads to the terminator, as ODBC allows, read past the end of its own buffer.\n\nThis continues the fixes for CVE-2026-120058 and CVE-2026-120060, which covered other replies. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-476",
                  "description": "CWE-476 NULL Pointer Dereference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:50.395Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-98mx-57hv-xjpr",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-98mx-57hv-xjpr"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Driver does not check that server replies match the queries it sent"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136509",
        "datePublished": "2026-11-25T22:25:50.395Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:50.395Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136508 (GCVE-0-2026-136508)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    MSDTC connections drop the connection's TLS and channel binding settings
    Summary
    On Windows, when a connection takes part in a distributed transaction, psqlODBC and its XA library open further connections of their own to finish the transaction. These connections did not keep the security settings of the application's connection: - When the XA library's first connection attempt failed, it tried again with sslmode=allow, even for a data source configured with sslmode=verify-full or verify-ca. - The connections the driver opens itself ignored every libpq option given through pqopt, such as channel_binding=require, and the open string it registers with MSDTC carried no pqopt, so the XA library's connections dropped those options too. An attacker on the network path between the MSDTC host and the PostgreSQL server, without a certificate or credentials, can make those connections go to a server of their choosing without TLS, read and change what they send, and decide the outcome MSDTC records for the transaction. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-757 - Selection of Less-Secure Algorithm During Negotiation ('Algorithm Downgrade')
    • CWE-319 - Cleartext Transmission of Sensitive Information
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "On Windows, when a connection takes part in a distributed transaction, psqlODBC and its XA library open further connections of their own to finish the transaction. These connections did not keep the security settings of the application\u0027s connection:\n\n- When the XA library\u0027s first connection attempt failed, it tried again with sslmode=allow, even for a data source configured with sslmode=verify-full or verify-ca.\n- The connections the driver opens itself ignored every libpq option given through pqopt, such as channel_binding=require, and the open string it registers with MSDTC carried no pqopt, so the XA library\u0027s connections dropped those options too.\n\nAn attacker on the network path between the MSDTC host and the PostgreSQL server, without a certificate or credentials, can make those connections go to a server of their choosing without TLS, read and change what they send, and decide the outcome MSDTC records for the transaction.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 6.8,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-757",
                  "description": "CWE-757 Selection of Less-Secure Algorithm During Negotiation (\u0027Algorithm Downgrade\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-319",
                  "description": "CWE-319 Cleartext Transmission of Sensitive Information",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:49.725Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-8q3q-86gx-g68g",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-8q3q-86gx-g68g"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "MSDTC connections drop the connection\u0027s TLS and channel binding settings"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136508",
        "datePublished": "2026-11-25T22:25:49.725Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:49.725Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136507 (GCVE-0-2026-136507)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Connection string injection in SQLDriverConnect and the MSDTC XA open string
    Summary
    psqlODBC parsed and built connection strings in ways that let a value end early: - In a braced value, such as PWD={…}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace. - A braced value that ended right after an escaped }} was not reported as unterminated, and its contents were parsed as further keywords. - SQLConnectW(), SQLDriverConnectW() and SQLBrowseConnectW() cut a connection string whose UTF-8 form is longer than 32767 bytes, which changes how the rest of it is parsed. - On Windows with MSDTC, the password and user name were put into the XA open string without escaping, and the XA library copied each item of that string into a 64-byte stack buffer. - Percent-encoding a long password wrote one byte past a 4096-byte stack buffer. An end user who supplies a password, or another value the application puts into the connection string, can set other connection keywords, for example to connect the application to a server of their choosing. The MSDTC case can also overflow a stack buffer in the process that loads the XA library. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-74 - Improper Neutralization of Special Elements in Output Used by a Downstream Component ('Injection')
    • CWE-197 - Numeric Truncation Error
    • CWE-121 - Stack-based Buffer Overflow
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC parsed and built connection strings in ways that let a value end early:\n\n- In a braced value, such as PWD={\u2026}, a trailing byte 0x7d of a GBK, Big5 or SJIS character was taken for the closing brace.\n- A braced value that ended right after an escaped }} was not reported as unterminated, and its contents were parsed as further keywords.\n- SQLConnectW(), SQLDriverConnectW() and SQLBrowseConnectW() cut a connection string whose UTF-8 form is longer than 32767 bytes, which changes how the rest of it is parsed.\n- On Windows with MSDTC, the password and user name were put into the XA open string without escaping, and the XA library copied each item of that string into a 64-byte stack buffer.\n- Percent-encoding a long password wrote one byte past a 4096-byte stack buffer.\n\nAn end user who supplies a password, or another value the application puts into the connection string, can set other connection keywords, for example to connect the application to a server of their choosing. The MSDTC case can also overflow a stack buffer in the process that loads the XA library.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 8.1,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-74",
                  "description": "CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component (\u0027Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-197",
                  "description": "CWE-197 Numeric Truncation Error",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-121",
                  "description": "CWE-121 Stack-based Buffer Overflow",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:49.140Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-7638-f7xp-wv22",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-7638-f7xp-wv22"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Connection string injection in SQLDriverConnect and the MSDTC XA open string"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136507",
        "datePublished": "2026-11-25T22:25:49.140Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:49.140Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136506 (GCVE-0-2026-136506)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    SQL injection through names the driver puts into its own queries
    Summary
    psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification: - the database name in SQLForeignKeys(); - the current schema name in catalog functions; - the table name in the currtid2() call that re-reads rows of updatable cursors; - column names in the inserts and updates of SQLSetPos() and SQLBulkOperations(); - cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1); - parameter names (SQL_DESC_NAME) in procedure calls; - the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path. The column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles " in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one. A database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application's database role. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-89 - Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
    • CWE-706 - Use of Incorrectly-Resolved Name or Reference
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC builds queries of its own from names, and put these names into them without escaping or qualification:\n\n- the database name in SQLForeignKeys();\n- the current schema name in catalog functions;\n- the table name in the currtid2() call that re-reads rows of updatable cursors;\n- column names in the inserts and updates of SQLSetPos() and SQLBulkOperations();\n- cursor names set with SQLSetCursorName() or returned as refcursors (FetchRefcursors=1);\n- parameter names (SQL_DESC_NAME) in procedure calls;\n- the = operator in an OID comparison in SQLColumns(), which the server resolves through search_path.\n\nThe column names of the fourth item are a variant of CVE-2026-120065 (GHSA-9cg8-r57h-h6jj). The fix for that advisory, in 18.00.0006, doubles \" in the stored row-identifier name, which the keyset queries and the WHERE clause of the positioned statements use. The column names that SQLSetPos() and SQLBulkOperations() put into the SET list of their UPDATE and into the column list of their SQL_ADD INSERT come from the catalog and were not covered by it, so a driver patched to 18.00.0006 is still affected by this one.\n\nA database user who can create a database, schema, table, column or operator with a crafted name, or an end user who supplies a cursor or parameter name to the application, can run SQL with the rights of the application\u0027s database role.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-89",
                  "description": "CWE-89 Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-706",
                  "description": "CWE-706 Use of Incorrectly-Resolved Name or Reference",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:48.472Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-63r4-gjcj-f69v",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-63r4-gjcj-f69v"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "SQL injection through names the driver puts into its own queries"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136506",
        "datePublished": "2026-11-25T22:25:48.472Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:48.472Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136505 (GCVE-0-2026-136505)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Unchecked sizes and counters overflow driver buffers
    Summary
    psqlODBC uses sizes and counts without checking their range, or keeps them in types too small for them: - A row array size of 0, set with SQLSetStmtAttr() or on the ARD, makes SQLSetPos() with SQL_REFRESH write past the bound arrays. - SQL_DESC_COUNT above 32767 on an APD or IPD writes before the start of a heap buffer. - A numeric parameter with a negative scale overflows a stack buffer. - SQLGetData() of a text value of 2 GiB or more into a wide-character buffer computes a wrapped size and overflows the heap. - The 16-bit reference count and size of the statement parser's column-information cache wrap, which frees a cache entry still in use or overflows the cache, and a statement with more than 32768 columns overflows the parser's field array. - An updatable cursor that records more than 65535 changes in one transaction wraps the 16-bit capacity of its rollback log, which overflows it and frees it twice. - A statement with 32769 or more parameter markers overflows a 16-bit parameter count. - A wide-character string of more than 2 GiB wraps the size of its UTF-8 conversion, which is then written below the start of a heap buffer. - SQLGetDiagField() and SQLGetDiagFieldW() always stored the five-character SQLSTATE plus its terminator and checked BufferLength only afterwards, overrunning a buffer shorter than six bytes. - The ANSI SQLSetDescField(SQL_DESC_NAME) on an IPD ignored BufferLength and copied the name with strdup(), reading a name passed as pointer plus length past its end. - SQLFetchScroll(SQL_FETCH_BOOKMARK) did not check the bookmark it was given, so whoever chooses the bookmark value read out of bounds and crashed the process. - Four places in the parameter conversion read one byte past the end of a bound character parameter, and one of them rewrote it. - Binding a date, time or timestamp C value to an SQL_INTEGER or SQL_SMALLINT parameter dereferenced NULL instead of returning the conversion error. Depending on the case, the values come from the application, from the data or statement text an end user supplies, or from a database user who controls the size of a table or value. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-190 - Integer Overflow or Wraparound
    • CWE-787 - Out-of-bounds Write
    • CWE-121 - Stack-based Buffer Overflow
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC uses sizes and counts without checking their range, or keeps them in types too small for them:\n\n- A row array size of 0, set with SQLSetStmtAttr() or on the ARD, makes SQLSetPos() with SQL_REFRESH write past the bound arrays.\n- SQL_DESC_COUNT above 32767 on an APD or IPD writes before the start of a heap buffer.\n- A numeric parameter with a negative scale overflows a stack buffer.\n- SQLGetData() of a text value of 2 GiB or more into a wide-character buffer computes a wrapped size and overflows the heap.\n- The 16-bit reference count and size of the statement parser\u0027s column-information cache wrap, which frees a cache entry still in use or overflows the cache, and a statement with more than 32768 columns overflows the parser\u0027s field array.\n- An updatable cursor that records more than 65535 changes in one transaction wraps the 16-bit capacity of its rollback log, which overflows it and frees it twice.\n- A statement with 32769 or more parameter markers overflows a 16-bit parameter count.\n- A wide-character string of more than 2 GiB wraps the size of its UTF-8 conversion, which is then written below the start of a heap buffer.\n- SQLGetDiagField() and SQLGetDiagFieldW() always stored the five-character SQLSTATE plus its terminator and checked BufferLength only afterwards, overrunning a buffer shorter than six bytes.\n- The ANSI SQLSetDescField(SQL_DESC_NAME) on an IPD ignored BufferLength and copied the name with strdup(), reading a name passed as pointer plus length past its end.\n- SQLFetchScroll(SQL_FETCH_BOOKMARK) did not check the bookmark it was given, so whoever chooses the bookmark value read out of bounds and crashed the process.\n- Four places in the parameter conversion read one byte past the end of a bound character parameter, and one of them rewrote it.\n- Binding a date, time or timestamp C value to an SQL_INTEGER or SQL_SMALLINT parameter dereferenced NULL instead of returning the conversion error.\n\nDepending on the case, the values come from the application, from the data or statement text an end user supplies, or from a database user who controls the size of a table or value. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-190",
                  "description": "CWE-190 Integer Overflow or Wraparound",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-121",
                  "description": "CWE-121 Stack-based Buffer Overflow",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:47.870Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-4g4f-phc4-3qh7",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4g4f-phc4-3qh7"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Unchecked sizes and counters overflow driver buffers"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136505",
        "datePublished": "2026-11-25T22:25:47.870Z",
        "dateReserved": "2026-11-24T20:17:10.904Z",
        "dateUpdated": "2026-11-25T22:25:47.870Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136504 (GCVE-0-2026-136504)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Debug log records the database password in clear text
    Summary
    With the driver's debug log (MyLog) turned on, two paths write the database password to the log in clear text, both beside a line where the driver's own redaction masks it as PWD=xxxxx: - Pressing "Test" in the Windows data source setup dialog (psqlsetup.dll) logs the whole connection string, which carries PWD= percent-encoded, which is reversible, and any password= or sslpassword= inside pqopt. - The Unicode connect functions SQLDriverConnectW, SQLConnectW and SQLBrowseConnectW log their arguments as they convert them between UTF-16 and UTF-8, before the masking happens. The ANSI entry points are unaffected. Turning the log on takes an administrator, and MyLog is off by default. The exposure is the person who later reads the log, which in practice means a log attached to a bug report or handed to support. Making that safe is the purpose of the driver's redaction, and these two sites bypassed it. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    • CWE-532 - Insertion of Sensitive Information into Log File
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "With the driver\u0027s debug log (MyLog) turned on, two paths write the database\npassword to the log in clear text, both beside a line where the driver\u0027s own\nredaction masks it as PWD=xxxxx:\n\n- Pressing \"Test\" in the Windows data source setup dialog (psqlsetup.dll)\n  logs the whole connection string, which carries PWD= percent-encoded,\n  which is reversible, and any password= or sslpassword= inside pqopt.\n- The Unicode connect functions SQLDriverConnectW, SQLConnectW and\n  SQLBrowseConnectW log their arguments as they convert them between UTF-16\n  and UTF-8, before the masking happens. The ANSI entry points are unaffected.\n\nTurning the log on takes an administrator, and MyLog is off by default. The\nexposure is the person who later reads the log, which in practice means a log\nattached to a bug report or handed to support. Making that safe is the purpose\nof the driver\u0027s redaction, and these two sites bypassed it.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 5,
                "baseSeverity": "MEDIUM",
                "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-532",
                  "description": "CWE-532 Insertion of Sensitive Information into Log File",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:47.271Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-4cgj-r3wg-3rj2",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-4cgj-r3wg-3rj2"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Debug log records the database password in clear text"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136504",
        "datePublished": "2026-11-25T22:25:47.271Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:47.271Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }

    CVE-2026-136503 (GCVE-0-2026-136503)

    Vulnerability from cvelistv5 – Published: 2026-11-25 22:25 – Updated: 2026-11-25 22:25
    VLAI
    Title
    Use after free, double free and out-of-bounds writes in result and transaction clean-up
    Summary
    psqlODBC frees memory that is still in use, frees it twice, or writes outside an application buffer in these cases: - The clean-up the driver runs at commit and rollback sends queries of its own, and the reply to one of them can start the clean-up again while it is running. The nested run frees the rollback log, or the list of cursors and prepared statements to close, and the outer run uses and frees it again. - The callback through which libpq delivers notices could run that clean-up, and close the connection, while libpq was still using the connection. - Freeing a statement whose result holds several cursors (FetchRefcursors=1, or UseDeclareFetch=1) used the freed first result while the later cursors were closed. - With UseDeclareFetch=1, after a rollback closed an updatable cursor, rows added or deleted through it were counted but not stored, so freeing the statement freed uninitialised pointers, and adding a row wrote past the keyset. - After a multi-row fetch failed on a row other than the first of its rowset, SQLGetData() wrote at an offset past the buffer the application passed. - SQLProcedureColumns() freed the result of its catalog query twice when the query failed. - In a process named sqlservr (SQL Server linked servers), a server version below 8.4 made the statement parser free a buffer twice. - A failed SQLPutData in the middle of a SQLSetPos() or SQLBulkOperations() data-at-execution sequence left the whole operation pending, with the internal statement still allocated and autocommit silently off, so later statements were rolled back at disconnect. The next positioned update ran the stale callback against a statement that was never executed and dereferenced NULL. Most of these can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable). A database user who can make a statement fail, or who controls the contents of a row the application reads, can trigger the UseDeclareFetch=1 and SQLGetData() cases against an honest server. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated. Versions up to and including psqlODBC 18.00.0006 are affected.
    CWE
    Assigner
    PostgreSQL CNA under the redhat root
    CNA scorecard C 69/100 over 179 records in the last 180 days details
    References
    Impacted products
    Vendor Product Version
    PostgreSQL psqlODBC Affected: 0 , ≤ 18.00.0006 (custom)
    Create a notification for this product.
    Show details on NVD website

    {
      "containers": {
        "cna": {
          "affected": [
            {
              "collectionURL": "https://odbc.postgresql.org/",
              "defaultStatus": "unaffected",
              "packageName": "psqlodbc",
              "product": "psqlODBC",
              "vendor": "PostgreSQL",
              "versions": [
                {
                  "lessThanOrEqual": "18.00.0006",
                  "status": "affected",
                  "version": "0",
                  "versionType": "custom"
                }
              ]
            }
          ],
          "descriptions": [
            {
              "lang": "en",
              "value": "psqlODBC frees memory that is still in use, frees it twice, or writes outside an application buffer in these cases:\n\n- The clean-up the driver runs at commit and rollback sends queries of its own, and the reply to one of them can start the clean-up again while it is running. The nested run frees the rollback log, or the list of cursors and prepared statements to close, and the outer run uses and frees it again.\n- The callback through which libpq delivers notices could run that clean-up, and close the connection, while libpq was still using the connection.\n- Freeing a statement whose result holds several cursors (FetchRefcursors=1, or UseDeclareFetch=1) used the freed first result while the later cursors were closed.\n- With UseDeclareFetch=1, after a rollback closed an updatable cursor, rows added or deleted through it were counted but not stored, so freeing the statement freed uninitialised pointers, and adding a row wrote past the keyset.\n- After a multi-row fetch failed on a row other than the first of its rowset, SQLGetData() wrote at an offset past the buffer the application passed.\n- SQLProcedureColumns() freed the result of its catalog query twice when the query failed.\n- In a process named sqlservr (SQL Server linked servers), a server version below 8.4 made the statement parser free a buffer twice.\n- A failed SQLPutData in the middle of a SQLSetPos() or SQLBulkOperations() data-at-execution sequence left the whole operation pending, with the internal statement still allocated and autocommit silently off, so later statements were rolled back at disconnect. The next positioned update ran the stale callback against a statement that was never executed and dereferenced NULL.\n\nMost of these can be triggered by a hostile or compromised server, or anyone on the network path of a connection that does not use sslmode=verify-full (the default is disable). A database user who can make a statement fail, or who controls the contents of a row the application reads, can trigger the UseDeclareFetch=1 and SQLGetData() cases against an honest server. The demonstrated results are crashes and heap corruption; code execution has not been demonstrated.\n\nVersions up to and including psqlODBC 18.00.0006 are affected."
            }
          ],
          "metrics": [
            {
              "cvssV3_1": {
                "baseScore": 7.5,
                "baseSeverity": "HIGH",
                "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H",
                "version": "3.1"
              },
              "format": "CVSS"
            }
          ],
          "problemTypes": [
            {
              "descriptions": [
                {
                  "cweId": "CWE-416",
                  "description": "CWE-416 Use After Free",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-415",
                  "description": "CWE-415 Double Free",
                  "lang": "en",
                  "type": "CWE"
                },
                {
                  "cweId": "CWE-787",
                  "description": "CWE-787 Out-of-bounds Write",
                  "lang": "en",
                  "type": "CWE"
                }
              ]
            }
          ],
          "providerMetadata": {
            "dateUpdated": "2026-11-25T22:25:46.679Z",
            "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
            "shortName": "PostgreSQL"
          },
          "references": [
            {
              "name": "GHSA-48v4-hjc5-hx8w",
              "tags": [
                "vendor-advisory"
              ],
              "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-48v4-hjc5-hx8w"
            },
            {
              "name": "psqlODBC changelog",
              "tags": [
                "release-notes"
              ],
              "url": "https://odbc.postgresql.org/changelog/"
            }
          ],
          "title": "Use after free, double free and out-of-bounds writes in result and transaction clean-up"
        }
      },
      "cveMetadata": {
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "assignerShortName": "PostgreSQL",
        "cveId": "CVE-2026-136503",
        "datePublished": "2026-11-25T22:25:46.679Z",
        "dateReserved": "2026-11-24T20:17:10.903Z",
        "dateUpdated": "2026-11-25T22:25:46.679Z",
        "state": "PUBLISHED"
      },
      "dataType": "CVE_RECORD",
      "dataVersion": "5.2"
    }