{
    "dataType": "CVE_RECORD",
    "dataVersion": "5.2",
    "cveMetadata": {
        "cveId": "CVE-2026-134846",
        "assignerOrgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
        "state": "PUBLISHED",
        "assignerShortName": "PostgreSQL",
        "dateReserved": "2026-11-22T17:13:47.180Z",
        "datePublished": "2026-11-23T16:59:17.626Z",
        "dateUpdated": "2026-11-23T16:59:17.626Z"
    },
    "containers": {
        "cna": {
            "providerMetadata": {
                "orgId": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
                "shortName": "PostgreSQL",
                "dateUpdated": "2026-11-23T16:59:17.626Z"
            },
            "title": "pgjdbc GSS encryption accepts replayed packets and can stop encrypting",
            "descriptions": [
                {
                    "lang": "en",
                    "value": "pgjdbc, the PostgreSQL JDBC Driver, does not check the token state that GSSContext.unwrap() reports on a GSS-encrypted connection. An attacker on the network path can replay an earlier server packet from the same connection, and the driver accepts it as the answer to the current query. The driver also shares one MessageProp between reading and writing. One integrity-only packet from the server then makes the driver send later SQL and parameters without encryption. Only connections with gssEncMode=prefer or require that start GSS encryption are affected. Versions 42.2.15 through 42.7.14 are affected, and 42.7.15 fixes the problem."
                }
            ],
            "affected": [
                {
                    "vendor": "pgjdbc",
                    "product": "pgjdbc",
                    "collectionURL": "https://repo.maven.apache.org/maven2",
                    "packageName": "org.postgresql:postgresql",
                    "repo": "https://github.com/pgjdbc/pgjdbc",
                    "programFiles": [
                        "pgjdbc/src/main/java/org/postgresql/gss/GSSInputStream.java",
                        "pgjdbc/src/main/java/org/postgresql/gss/GSSOutputStream.java",
                        "pgjdbc/src/main/java/org/postgresql/gss/GssEncAction.java"
                    ],
                    "programRoutines": [
                        {
                            "name": "org.postgresql.gss.GSSInputStream.readEncryptedBytesAndUnwrap"
                        },
                        {
                            "name": "org.postgresql.gss.GSSOutputStream.writeWrapped"
                        },
                        {
                            "name": "org.postgresql.gss.GssEncAction.run"
                        }
                    ],
                    "defaultStatus": "unaffected",
                    "versions": [
                        {
                            "version": "42.2.15",
                            "lessThan": "42.7.15",
                            "status": "affected",
                            "versionType": "maven"
                        }
                    ]
                }
            ],
            "problemTypes": [
                {
                    "descriptions": [
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-294",
                            "description": "CWE-294 Authentication Bypass by Capture-replay"
                        },
                        {
                            "lang": "en",
                            "type": "CWE",
                            "cweId": "CWE-319",
                            "description": "CWE-319 Cleartext Transmission of Sensitive Information"
                        }
                    ]
                }
            ],
            "metrics": [
                {
                    "cvssV3_1": {
                        "version": "3.1",
                        "vectorString": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:H/A:N",
                        "attackVector": "NETWORK",
                        "attackComplexity": "HIGH",
                        "privilegesRequired": "NONE",
                        "userInteraction": "NONE",
                        "scope": "UNCHANGED",
                        "confidentialityImpact": "LOW",
                        "integrityImpact": "HIGH",
                        "availabilityImpact": "NONE",
                        "baseScore": 6.5,
                        "baseSeverity": "MEDIUM"
                    }
                }
            ],
            "solutions": [
                {
                    "lang": "en",
                    "value": "Upgrade to pgjdbc 42.7.15 or later."
                }
            ],
            "workarounds": [
                {
                    "lang": "en",
                    "value": "Set gssEncMode=disable and use TLS for transport encryption instead."
                }
            ],
            "credits": [
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Anthropic OSS Scanner (ANT-2026-XN4FNDUA)"
                },
                {
                    "lang": "en",
                    "type": "finder",
                    "value": "Anthropic OSS Scanner (ANT-2026-VWAJRJ3T)"
                }
            ],
            "timeline": [
                {
                    "time": "2026-10-16T00:00:00.000Z",
                    "lang": "en",
                    "value": "Reported by Anthropic OSS Scanner (ANT-2026-XN4FNDUA)."
                },
                {
                    "time": "2026-10-16T00:00:00.000Z",
                    "lang": "en",
                    "value": "Reported by Anthropic OSS Scanner (ANT-2026-VWAJRJ3T)."
                }
            ],
            "references": [
                {
                    "url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hcjc-54fp-2p42",
                    "tags": [
                        "vendor-advisory"
                    ]
                }
            ]
        }
    }
}