{"id":"CVE-2026-120066","kind":"vulnerability","aliases":["CVE-2026-120066"],"related":[],"title":"psqlODBC: default /tmp log files leak queries and enable symlink attacks","description":"On Unix-like systems, when logging is enabled, psqlODBC creates its log files in /tmp by default, named from the program name, user name, and process ID, with the default permissions, typically world-readable, and follows symbolic links when opening them. A local user can read query text and data from another user's logs, and can place a symbolic link at the predictable path so that the driver appends log data to a file of the attacker's choosing with the victim's privileges. Versions before psqlODBC 18.00.0006 are affected.","summary":"When logging is enabled on Unix-like systems, psqlODBC writes logs to a predictable file in /tmp with default, often world-readable permissions, and follows symbolic links. A local user can read another user's query text and data, or redirect log writes to a file of their choice with the victim's privileges.","severity":"medium","cvss":5.3,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["linux","multi-user-hosts","package","postgresql","psqlodbc","unix"],"not_affected_if":["logging-disabled","single-user-host","windows"],"how_to_check":"- Check the installed psqlODBC version; `18.00.0006` or later is not affected per the description.\n- Check whether logging is enabled in the driver configuration (unknown exact setting name from sources).\n- Look for psqlODBC log files in `/tmp` owned by other users.","fix":"- psqlODBC: move to `18.00.0006` or later.","status":"open","published_at":"2026-11-02T19:18:03+00:00","first_seen_at":"2026-11-02T19:24:40+00:00","triaged_at":"2026-11-02T19:26:53+00:00","updated_at":"2026-11-02T19:26:53+00:00","category":"package","confidence":0.8,"triage":{"at":"2026-11-02T19:26:53Z","model":"claude-haiku-5-5","output":{"fix":"- psqlODBC: move to `18.00.0006` or later.","reach":"local","title":"psqlODBC: default /tmp log files leak queries and enable symlink attacks","impact":"medium","summary":"When logging is enabled on Unix-like systems, psqlODBC writes logs to a predictable file in /tmp with default, often world-readable permissions, and follows symbolic links. A local user can read another user's query text and data, or redirect log writes to a file of their choice with the victim's privileges.","audience":"developers","category":"package","nicknames":[],"who_cares":["psqlodbc","postgresql","unix","linux","multi-user-hosts"],"confidence":0.8,"fix_status":"available","needs_auth":"yes","worst_case":"local user reads logs and overwrites files as victim","analyst_note":"","how_to_check":"- Check the installed psqlODBC version; `18.00.0006` or later is not affected per the description.\n- Check whether logging is enabled in the driver configuration (unknown exact setting name from sources).\n- Look for psqlODBC log files in `/tmp` owned by other users.","plain_action":"","needs_analyst":false,"not_affected_if":["logging-disabled","windows","single-user-host"],"who_is_affected":"Systems on Unix-like OSes that use psqlODBC with logging enabled, where multiple local users share the machine. Hosts with logging disabled or single-user machines are less exposed. The sources do not describe a remote path.","user_interaction":"no","needs_special_setup":"yes","severity_if_unknown":"medium"},"cost_usd":0.000692,"input_tokens":4203,"output_tokens":543,"severity_before":"medium"},"analyst_status":null,"analyst_note":null,"search":"'-120066':14A,17A '-2026':13A,16A '/tmp':3A,44B,98C '18.00.0006':173C 'affect':175C 'anoth':61B,136C 'append':154C 'attack':11A,162C 'choic':77B 'choos':164C 'creat':93C 'cve':12A,15A 'data':67B,134C,156C 'default':2A,46B,100C,113C 'driver':153C 'enabl':9A,30B,91C 'file':5A,42B,74B,96C,159C 'follow':53B,120C 'host':22B 'id':110C 'leak':6A 'like':34B,86C 'link':55B,122C,145C 'linux':18B 'local':57B,127C 'log':4A,28B,38B,70B,89C,95C,139C,155C 'multi':20B 'multi-user-host':19B 'name':101C,105C,107C 'often':47B 'open':124C 'packag':23B 'path':149C 'permiss':51B,114C 'place':142C 'postgresql':24B 'predict':41B,148C 'privileg':82B,169C 'process':109C 'program':104C 'psqlodbc':1A,25B,36B,92C,172C 'queri':7A,64B,131C 'read':60B,130C 'readabl':50B,118C 'redirect':69B 'symbol':54B,121C,144C 'symlink':10A 'system':35B,87C 'text':65B,132C 'typic':115C 'unix':26B,33B,85C 'unix-lik':32B,84C 'user':21B,58B,62B,106C,128C,137C 'version':170C 'victim':80B,167C 'world':49B,117C 'world-read':48B,116C 'write':37B,71B","nicknames":[],"mitigations":[],"who_affected":"Systems on Unix-like OSes that use psqlODBC with logging enabled, where multiple local users share the machine. Hosts with logging disabled or single-user machines are less exposed. The sources do not describe a remote path.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["linux","medium","multiuserhosts","package","postgresql","psqlodbc","unix"],"first_public_at":"2026-11-02T19:18:03+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:L/A:N","cvss_by":"f86ef6dc-4d3a-42ad-8f28-e6d5547a5007","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-120066","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-120066","severity":null,"published_at":"2026-11-02T19:18:03+00:00","modified_at":"2026-11-02T19:18:03+00:00","first_seen_at":"2026-11-02T19:24:40+00:00","fetched_at":"2026-11-02T19:24:40+00:00","note":null}],"documents":[{"id":53477,"url":"https://github.com/postgresql-interfaces/psqlodbc/security/advisories/GHSA-wj7r-6pj3-62g8","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"notice":"Free to read at a human pace. An API with keys and an MCP server are in preparation; early access: hello@infrastack.ai"}