pgjdbc lets a NUL character in a connection property add startup parameters
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| pgjdbc | pgjdbc | unaffected |
|
No data.
No data.
| Vendor | Product | Versions | ||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Pgjdbc | Pgjdbc |
|
Vendor Solution
Upgrade to pgjdbc 42.7.15 or later.
Vendor Workaround
Refuse a NUL character in connection values that come from untrusted input.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
Exploit prediction score: < 1% (0.383% probability within 30 days)
| Type | Values Removed | Values Added |
|---|---|---|
| Metrics |
ssvc
|
| Type | Values Removed | Values Added |
|---|---|---|
| First Time appeared |
Pgjdbc
Pgjdbc pgjdbc |
|
| Vendors & Products |
Pgjdbc
Pgjdbc pgjdbc |
| Type | Values Removed | Values Added |
|---|---|---|
| Description | pgjdbc, the PostgreSQL JDBC Driver, does not refuse a NUL character in a startup parameter. The StartupMessage is a list of NUL-terminated strings, so a NUL in the database name, user, currentSchema, options or ApplicationName adds further parameters. %00 in a URL decodes to a NUL. Someone who controls part of the URL or a property can choose another login role or add replication=database, although the connection still has to pass the authentication of that role. On a server that trusts the client, the attacker can log in as any role. All versions before 42.7.15 are affected, and 42.7.15 fixes the problem. | |
| Title | pgjdbc lets a NUL character in a connection property add startup parameters | |
| Weaknesses | CWE-158 | |
| References |
| |
| Metrics |
cvssV3_1
|