{"schemaVersion":4,"id":"CVE-2026-138404","aliases":["DEBIAN-CVE-2026-138404","UBUNTU-CVE-2026-138404"],"status":"published","duplicateOf":null,"title":"Another local user can read the driver's log files or make it write into the victim's own files (incomplete fix for CVE-2026-120066)","description":"With Debug or CommLog on, psqlODBC writes its log files to a shared directory under predictable names. By default that is /tmp on Unix-like systems and C:\\ on Windows, and each file name holds the process ID. The logs hold SQL text, data and connection details.\n\nOn Unix-like systems, the fix for CVE-2026-120066 in 18.00.0006 made the driver refuse a symbolic link at the log path. It used an existing file only if it was a regular file owned by the user running the application. It did not check whether the file had other hard links. So another local user could create a hard link at the log path to a file the victim owns. The link passed every check, and the driver appended its log to the victim's file. A FIFO at the log path is a second case, which CVE-2026-120066 did not cover: opening it blocked the application until another process read from it.\n\nOn Windows, the fix for CVE-2026-120066 did not apply, and the driver opened the log file without any of these checks. A log file created in C:\\ by a service or an elevated process got that directory's permissions, which let other local users read it. In a log directory created under C:\\ with default permissions, they could also modify it. A file that another user had already created at the log path was used as it was. The MSDTC log in C:\\ or C:\\pgdtclog was opened the same way.\n\nDebug and CommLog are off by default, and only an administrator turns them on.\n\nVersions up to and including psqlODBC 18.00.0007 are affected.","dates":{"published":"2026-11-29T18:01:24.076Z","modified":"2026-12-03T21:07:06.815Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":6.3,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","exploitability":2.1,"impact":9.2,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":6.3,"severity":"medium","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","exploitability":2.1,"impact":9.2,"computed":true}]},"epss":{"probability":0.00183,"percentile":0.08259,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-30T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00183,"percentile":0.08259}],"last30":[{"date":"2026-11-30T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00183,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00183,"percentile":0.08259}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-59","name":"Improper Link Resolution Before File Access","description":"The product attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.","type":"weakness","status":"Draft","abstraction":"Base","likelihoodOfExploit":"Medium","url":"https://cwe.mitre.org/data/definitions/59.html"},{"id":"CWE-379","name":"Creation of Temporary File in Directory with Insecure Permissions","description":"The product creates a temporary file in a directory whose permissions allow unintended actors to determine the file's existence or otherwise access that file.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":"Low","url":"https://cwe.mitre.org/data/definitions/379.html"},{"id":"CWE-732","name":"Incorrect Permission Assignment for Critical Resource","description":"The product specifies permissions for a security-critical resource in a way that allows that resource to be read or modified by unintended actors.","type":"weakness","status":"Draft","abstraction":"Class","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/732.html"}],"affected":[{"vendor":"debian","product":"psqlodbc","name":"psqlodbc","label":"psqlodbc","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/psqlodbc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}},{"text":"< 1:18.00.0008-1","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"1:18.00.0008-1","endInclusive":false}}],"versionsText":"All versions (No fix recorded) | < 1:18.00.0008-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"psqlodbc","name":"psqlodbc","label":"psqlodbc","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/psqlodbc","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null,"bounds":{"kind":"all"}}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"postgresql","product":"psqlodbc","name":"psqlODBC","label":"psqlodbc","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≤ 18.00.0007","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":null,"startInclusive":true,"end":"18.00.0007","endInclusive":true}}],"versionsText":"≤ 18.00.0007","eol":null,"hubHref":"/vendor/postgresql/psqlodbc"}],"affectedCount":3,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45","label":"github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-g696-gg8r-7j45","hostname":"github.com","tags":["Vendor Advisory","REPORT"]},{"url":"https://odbc.postgresql.org/changelog/","label":"odbc.postgresql.org/changelog/","hostname":"odbc.postgresql.org","tags":["Release Notes"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2026-138404","label":"security-tracker.debian.org/tracker/CVE-2026-138404","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://ubuntu.com/security/CVE-2026-138404","label":"ubuntu.com/security/CVE-2026-138404","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-138404","label":"www.cve.org/CVERecord?id=CVE-2026-138404","hostname":"www.cve.org","tags":["REPORT"]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-29T18:01:24.076Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-12-03T21:07:06.815Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 6.3, local access); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,63],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00183,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-12-03T21:07:06.815Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-12-03T21:07:06.815Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"cvss","source":"osv_debian","date":"2026-12-03T21:07:06.815Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"cvss","source":"osv_ubuntu","date":"2026-12-03T21:07:06.815Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":6.3,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:L","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-12-03T21:06:59.286Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00183,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T04:02:19.840Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T04:02:20.356Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T04:02:20.556Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T04:00:57.992Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T04:02:18.199Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T04:02:17.270Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T04:50:12.854Z","stale":false,"partial":false}}