{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "extracted_events": [
              {
                "range": [
                  {
                    "introduced": "0"
                  },
                  {
                    "last_affected": "18.00.0006"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "last_affected": "96fa03dbc968c40920c907bf18d3b4cbd8efeebc"
            }
          ],
          "repo": "https://github.com/postgresql-interfaces/psqlodbc",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-g5jq-mpgp-mq7q"
  ],
  "database_specific": {
    "cna_assigner": "PostgreSQL",
    "cwe_ids": [
      "CWE-22",
      "CWE-59"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136513.json"
  },
  "details": "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().\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.",
  "id": "CVE-2026-136513",
  "modified": "2026-11-25T23:45:48.217331370Z",
  "published": "2026-11-25T22:25:52.869Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/136xxx/CVE-2026-136513.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g5jq-mpgp-mq7q"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-136513"
    },
    {
      "type": "WEB",
      "url": "https://odbc.postgresql.org/"
    },
    {
      "type": "ADVISORY",
      "url": "https://odbc.postgresql.org/changelog/"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Another local user can redirect log files (incomplete fix for CVE-2026-120066)"
}