CVE-2025-49146

Source
https://nvd.nist.gov/vuln/detail/CVE-2025-49146
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-49146.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2025-49146
Aliases
Downstream
Related
Published
2025-06-11T14:32:39Z
Modified
2025-11-02T19:57:29.147502Z
Severity
  • 8.2 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N CVSS Calculator
Summary
pgjdbc Client Allows Fallback to Insecure Authentication Despite channelBinding=require Configuration
Details

pgjdbc is an open source postgresql JDBC Driver. From 42.7.4 and until 42.7.7, when the PostgreSQL JDBC driver is configured with channel binding set to required (default value is prefer), the driver would incorrectly allow connections to proceed with authentication methods that do not support channel binding (such as password, MD5, GSS, or SSPI authentication). This could allow a man-in-the-middle attacker to intercept connections that users believed were protected by channel binding requirements. This vulnerability is fixed in 42.7.7.

Database specific
{
    "cwe_ids": [
        "CWE-287"
    ]
}
References

Affected packages

Git / github.com/pgjdbc/pgjdbc

Affected ranges

Type
GIT
Repo
https://github.com/pgjdbc/pgjdbc
Events

Affected versions

REL42.*

REL42.7.4
REL42.7.4-rc1
REL42.7.5
REL42.7.5-rc1
REL42.7.6
REL42.7.6-rc1

Database specific

vanir_signatures

[
    {
        "source": "https://github.com/pgjdbc/pgjdbc/commit/9217ed16cb2918ab1b6b9258ae97e6ede244d8a0",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java"
        },
        "id": "CVE-2025-49146-28b80312",
        "digest": {
            "threshold": 0.9,
            "line_hashes": [
                "5147679093100322842747915828430417296",
                "72472483861048662705849161961895229875",
                "8078078114907155107809636890426928379",
                "15909455458843350418902099082612801403",
                "192714312614799051071032370208994206658",
                "331622957304091428327981369901815748198",
                "243105301858762195745752199103432145793",
                "151112253448289303313658663643129981506",
                "192388443808302017986469165947707498877",
                "133131357145737452236553104964805818032",
                "251182005266980582632468797867388525797",
                "299918312964289677163768287461296854700",
                "259710579150461735610207982685374803108"
            ]
        },
        "signature_type": "Line"
    },
    {
        "source": "https://github.com/pgjdbc/pgjdbc/commit/9217ed16cb2918ab1b6b9258ae97e6ede244d8a0",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "function": "doAuthentication",
            "file": "pgjdbc/src/main/java/org/postgresql/core/v3/ConnectionFactoryImpl.java"
        },
        "id": "CVE-2025-49146-a2f26647",
        "digest": {
            "length": 5977.0,
            "function_hash": "245437959467985025901452149314281854469"
        },
        "signature_type": "Function"
    }
]