CVE-2026-107313
pgjdbc, el controlador JDBC de PostgreSQL, en las versiones 42.7.4 y 42.7.5 puede enviar el contenido anterior del búfer de envío GSS en lugar de la primera parte de un valor en una conexión con cifrado GSS (gssEncMode=prefer o require), y el servidor almacena el valor sin error. El búfer es de 16320 bytes con MIT Kerberos. El valor almacenado contiene entonces bytes de los mensajes que el controlador envió justo antes en la misma conexión, como el texto SQL de la sentencia, sus otros parámetros y filas anteriores del mismo lote, en lugar de los bytes que proporcionó la aplicación.
Leer descripción completaMostrar menos
Se ven afectados los valores al menos tan largos como el búfer cuando el controlador los escribe desde un array de bytes: parámetros de enlace establecidos con setString, setBytes o un ByteStreamWriter, CopyIn.writeToCopy y LargeObject.write. La mayoría de estas escrituras fallan, en cambio, con una ArrayIndexOutOfBoundsException. El valor predeterminado, gssEncMode=allow, no inicia el cifrado GSS, y las conexiones sin cifrado GSS no están afectadas. Las versiones 42.7.3 y anteriores no están afectadas, y la 42.7.6 corrige el problema.
Traducción automática del texto original de NVD (en inglés).
CVSS
- Versión: 3.1
- Vector: CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N
- Puntuación base: 4.2
Probabilidad de explotación (EPSS)
- Probabilidad de explotación en los próximos 30 días: 0.14%
- Percentil entre todas las CVEs puntuadas: 3
- Fecha de la puntuación: 13/10/2026
EPSS (Exploit Prediction Scoring System, de FIRST) estima la probabilidad de que una vulnerabilidad sea explotada en 30 días. Complementa a CVSS (impacto) y a CISA KEV (explotación confirmada).
🎯 Técnicas ATT&CK
Cómo se explota esta vulnerabilidad y qué consigue el atacante, en el lenguaje de MITRE ATT&CK.
- Explotación
T1210Exploitation of Remote Serviceslateral movement70 % - Impacto principal
T1005Data from Local Systemcollection75 % - Impacto secundario
T1552.007Container APIcredential access65 %
GSS encryption buffer flaw (CWE-201) en PostgreSQL JDBC con AV:N/PR:L expone datos previos del buffer en conexiones remotas autenticadas. Requiere privilegios de conexión válida (PR:L) y acceso de red, permitiendo lectura de SQL anterior y parámetros.
Inferido por nuestro agente de análisis a partir de la descripción oficial, el vector CVSS y la CWE, y comprobado por un supervisor. Puede contener errores.
🛡️ Mitigaciones ATT&CK que cubren estas técnicas
Tecnologías afectadas (1)
⚠ Inferidas por IA a partir de la descripción — NVD aún no ha analizado esta CVE; no son CPE verificados.
CWE
- CWE-201
Referencias
JSON original (NVD)
Mostrar
{
"id": "CVE-2026-107313",
"cveTags": [],
"metrics": {
"ssvcV203": [
{
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0",
"ssvcData": {
"id": "CVE-2026-107313",
"role": "CISA Coordinator",
"options": [
{
"exploitation": "poc"
},
{
"automatable": "no"
},
{
"technicalImpact": "partial"
}
],
"version": "2.0.3",
"timestamp": "2026-10-07T20:35:21.062505Z"
}
}
],
"cvssMetricV31": [
{
"type": "Secondary",
"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
"cvssData": {
"scope": "UNCHANGED",
"version": "3.1",
"baseScore": 4.2,
"attackVector": "NETWORK",
"baseSeverity": "MEDIUM",
"vectorString": "CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:N",
"integrityImpact": "LOW",
"userInteraction": "NONE",
"attackComplexity": "HIGH",
"availabilityImpact": "NONE",
"privilegesRequired": "LOW",
"confidentialityImpact": "LOW"
},
"impactScore": 2.5,
"exploitabilityScore": 1.6
}
]
},
"affected": [
{
"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
"affectedData": [
{
"repo": "https://github.com/pgjdbc/pgjdbc",
"vendor": "pgjdbc",
"product": "pgjdbc",
"versions": [
{
"status": "affected",
"version": "42.7.4",
"lessThan": "42.7.6",
"versionType": "maven"
}
],
"packageName": "org.postgresql:postgresql",
"programFiles": [
"pgjdbc/src/main/java/org/postgresql/gss/GSSOutputStream.java"
],
"collectionURL": "https://repo.maven.apache.org/maven2",
"defaultStatus": "unaffected",
"programRoutines": [
{
"name": "org.postgresql.gss.GSSOutputStream.writeWrapped"
}
]
}
]
}
],
"published": "2026-10-07T19:17:35.513",
"references": [
{
"url": "https://github.com/pgjdbc/pgjdbc/commit/96f6862bb6bcadde7620688c7bce73f2d01a7ebb",
"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"
},
{
"url": "https://github.com/pgjdbc/pgjdbc/pull/3500",
"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"
},
{
"url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hggc-j2qh-988m",
"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"
},
{
"url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-hggc-j2qh-988m",
"source": "134c704f-9b21-4f2e-91b3-4a467353bcc0"
}
],
"vulnStatus": "Awaiting Analysis",
"weaknesses": [
{
"type": "Secondary",
"source": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007",
"description": [
{
"lang": "en",
"value": "CWE-201"
}
]
}
],
"descriptions": [
{
"lang": "en",
"value": "pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 and 42.7.5 can send the previous contents of the GSS send buffer in place of the first part of a value on a connection with GSS encryption (gssEncMode=prefer or require), and the server stores the value without an error. The buffer is 16320 bytes with MIT Kerberos. The stored value then holds bytes of the messages the driver sent just before it on the same connection, such as the statement's SQL text, its other parameters, and earlier rows of the same batch, instead of the bytes the application supplied. Values at least as long as the buffer are affected when the driver writes them from a byte array: bind parameters set with setString, setBytes, or a ByteStreamWriter, CopyIn.writeToCopy, and LargeObject.write. Most such writes fail with an ArrayIndexOutOfBoundsException instead. The default, gssEncMode=allow, does not start GSS encryption, and connections without GSS encryption are not affected. Versions 42.7.3 and earlier are not affected, and 42.7.6 fixes the problem."
}
],
"lastModified": "2026-10-08T20:49:23.240",
"sourceIdentifier": "f86ef6dc-4d3a-42ad-8f28-e6d5547a5007"
}