{"answers":{"affected":"","exploited":"There is no known exploitation of CVE-2026-136504 in the wild and no public exploit code.","exposure":"An affected version is only exploitable if your software calls SQLDriverConnectW, SQLConnectW or SQLBrowseConnectW. Many projects that include it are not exposed.","fix":"No fix has been published for CVE-2026-136504 yet. Limit exposure of the affected software until one is available.","what":"CVE-2026-136504 is a medium-severity information disclosure vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link."},"fix_prompt":"Check this codebase for CVE-2026-136504 and fix it if it is affected.\n\nWhat it is: CVE-2026-136504 is a medium-severity information disclosure vulnerability in PostgreSQL psqlODBC, published on 25 Nov 2026. It can only be exploited from the same machine or local network, and only if a user opens a file or follows a link.\nExploitation: There is no known exploitation of CVE-2026-136504 in the wild and no public exploit code.\nExposure: An affected version is only exploitable if your software calls SQLDriverConnectW, SQLConnectW or SQLBrowseConnectW. Many projects that include it are not exposed.\n\nAffected product: PostgreSQL psqlODBC. No package-level version data is available, so check the vendor advisory linked from the reference page.\n\nTask:\n1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.\n   If an affected version is present, also search the code for calls to SQLDriverConnectW, SQLConnectW or SQLBrowseConnectW and report whether any exist.\n2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.\n3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.\n4. Run the tests and summarise what changed and why.\n5. If nothing in the project is affected, say so and change nothing.\n\nReference: https://insights.sbomify.com/CVE-2026-136504/ (Markdown: https://insights.sbomify.com/CVE-2026-136504/index.md)","id":"CVE-2026-136504","markdown":"https://insights.sbomify.com/CVE-2026-136504/index.md","name":"CVE-2026-136504","record":{"aliases":["GHSA-4cgj-r3wg-3rj2","UBUNTU-CVE-2026-136504"],"analysis":{"component_type":"library","exploitable_when_present":false,"fix_type":"upgrade","impacts":["data_read"],"network_reachable":"adjacent_or_local","non_default_config":true,"product_category":"PostgreSQL ODBC driver","requires_auth":"low_privilege","requires_specific_call":true,"summary":"With debug logging enabled, psqlODBC writes database passwords in clear text to logs, exposing them to anyone reading the logs.","user_interaction":"required","vuln_class":"information_disclosure","vulnerable_functions":["SQLDriverConnectW","SQLConnectW","SQLBrowseConnectW"]},"analysis_generated_by":"sbomify/insights-2b-fp8","assigner":"PostgreSQL","component":null,"cpe":[],"cvss":{"score":5,"severity":"medium","source":"cna","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:N/A:N","version":"3.1"},"cwes":[{"id":"CWE-532","name":"Insertion of Sensitive Information into Log File"}],"description":"With the driver's debug log (MyLog) turned on, two paths write the database\npassword to the log in clear text, both beside a line where the driver's 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's redaction, and these two sites bypassed it.\n\nVersions up to and including psqlODBC 18.00.0006 are affected.","ecosystems":[],"exploits":{"exploitdb":0,"first_seen":null,"github_poc":0,"max_poc_stars":null,"metasploit":0,"nuclei":0,"refs":[],"tier":"none_known"},"has_fix":false,"headline":"Debug log records the database password in clear text","id":"CVE-2026-136504","indexable":true,"kev":null,"kind":"cve","links":{"ecosystem":null,"product":null,"products":[],"type":"information_disclosure","year":"2026"},"main_cpe":null,"main_fixed":[],"main_package":null,"n_packages":0,"n_references":2,"n_vendor_status":0,"next":{"headline":"Unchecked sizes and counters overflow driver buffers","id":"CVE-2026-136505"},"nickname":null,"packages":[],"prev":{"headline":"Use after free, double free and out-of-bounds writes in result and transaction clean-up","id":"CVE-2026-136503"},"products":["psqlODBC"],"published":"2026-11-25","related":[],"sources":[{"class":"attribution","licence":"CVE Terms of Use (MITRE)","name":"CVE List","prefix":"CVE"},{"class":"attribution","licence":"CWE Terms of Use","name":"CWE (MITRE)"},{"class":"attribution","licence":"FIRST CVSS licence","name":"CVSS (FIRST)"}],"ssvc":{"automatable":null,"exploitation":null,"technical_impact":null},"state":"PUBLISHED","text_fixes":[],"updated":"2026-11-25","vendor_status":[],"vendors":["PostgreSQL"]},"summary":"With debug logging enabled, psqlODBC writes database passwords in clear text to logs, exposing them to anyone reading the logs.","url":"https://insights.sbomify.com/CVE-2026-136504/"}