1. Archivio CVE
  2. 2026
  3. CVE-2026-107315

CVE-2026-107315

5.3 Gravità media CVSS v3.1 · fonte NVD CVSS:3.1/AV:N/AC:H/PR:L/UI:N/S:U/C:H/I:N/A:N 5.3 – Media

Descrizione

pgjdbc, the PostgreSQL JDBC Driver, versions 42.7.4 through 42.7.13 pads a value that is shorter than its declared length with bytes left in its send buffer instead of zeros, and the server stores those bytes as part of the value. The bytes are messages the driver sent earlier on the same connection: SQL text and parameter values of recent statements, which on a pooled connection can come from other requests. Each padded value can carry up to 8192 bytes of this traffic, or 16320 bytes on a connection with GSS encryption. The padding happens when an application declares a length larger than the data it supplies, through PreparedStatement.setObject with a ByteStreamWriter, CopyIn.writeToCopy, PGCopyOutputStream.write, LargeObject.write, or Blob.setBytes. The driver accepts these calls without an error. An attacker who can make the application store such a value and read it back can collect earlier traffic. Applications whose declared lengths always match their data are not affected. Versions 42.7.3 and earlier pad with zeros.

Prodotti coinvolti

FornitoreProdottoVersionePiattaforma
pgjdbc pgjdbc >= 42.7.4 <= 42.7.13 –
Tutte le 11 vulnerabilità di Pgjdbc

Tipo di vulnerabilità

CWE-201 Informazioni sensibili inserite nei dati inviati

Il prodotto invia dati a un altro soggetto, ma una parte di quei dati contiene informazioni sensibili a cui il destinatario non dovrebbe avere accesso.

Impatto sui sistemi

AmbitoImpatto
Riservatezza Leggere file o cartelle, Leggere la memoria, Leggere i dati dell’applicazione

Come si previene

Requisiti Specify which data in the software should be regarded as sensitive. Consider which types of users should have access to which types of data.
Sviluppo Ensure that any possibly sensitive data specified in the requirements is verified with designers to ensure that it is either a calculated risk or mitigated elsewhere. Any information that is not necessary to the functionality should be removed in order to lower both the overhead and the possibility of security sensitive data being sent.
Configurazione del sistema Setup default error messages so that unexpected errors do not disclose sensitive information.
Architettura e progettazione · Separazione dei privilegi Suddividi il sistema in compartimenti, con aree sicure i cui confini di fiducia siano tracciati senza ambiguità. Non lasciare uscire i dati sensibili da questi confini e presta sempre attenzione quando interagisci con un compartimento esterno all’area sicura. La suddivisione va prevista già in fase di progettazione e deve favorire la separazione dei privilegi; per decidere quando usare i privilegi e quando rinunciarvi, segui il principio del privilegio minimo.

Le indicazioni di mitigazione sono riportate nella lingua originale del catalogo CWE del MITRE.

Tutte le 520 CVE di tipo CWE-201, con andamento e prevenzione

Fonte: catalogo CWE del MITRE · cwe.mitre.org