REDHAT-BUG-2463857: High severity maven/org.postgresql/postgresql vulnerability
pgjdbc is an open source postgresql JDBC Driver. From version 42.2.0 to before version 42.7.11, pgjdbc is vulnerable to a client-side denial of service during SCRAM-SHA-256 authentication. A malicious server can instruct the driver to perform SCRAM authentication with a very large iteration count. With a large enough value, the client spends an unbounded amount of CPU time inside PBKDF2 before authentication can fail. A single attempt ties up a CPU core. Repeated or concurrent attempts exhaust client CPU and can wedge connection pools. In affected versions, loginTimeout did not fully mitigate this problem. When loginTimeout expired, the caller could stop waiting, but the worker thread performing the connection attempt could continue running and burning CPU inside the SCRAM PBKDF2 computation. This issue has been patched in version 42.7.11.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
pgjdbcto a version that resolves this vulnerability.Fixed in 42.7.11 - Compensating control
Use a smaller client-side SCRAM iteration count/value when configuring SCRAM-SHA-256 authentication (so PBKDF2 computation time is bounded) to prevent a single login attempt from tying up a CPU core.
Event History
Frequently Asked Questions
What is the severity of REDHAT-BUG-2463857?
The severity of REDHAT-BUG-2463857 is classified as high with a score of 7.
What does REDHAT-BUG-2463857 affect?
REDHAT-BUG-2463857 affects the pgjdbc open source PostgreSQL JDBC Driver from version 42.2.0 to before version 42.7.11.
How does REDHAT-BUG-2463857 exploit the PostgreSQL JDBC Driver?
REDHAT-BUG-2463857 exploits a client-side denial of service due to a malicious server instructing the driver to perform an SCRAM authentication with a very large iteration count.
How do I fix REDHAT-BUG-2463857?
To fix REDHAT-BUG-2463857, upgrade the pgjdbc driver to version 42.7.11 or later.
What types of systems are impacted by REDHAT-BUG-2463857?
Systems using vulnerable versions of the pgjdbc PostgreSQL JDBC Driver in their applications are impacted by REDHAT-BUG-2463857.