CVE-2018-10936
Description
A weakness was found in postgresql-jdbc before version 42.2.5. It was possible to provide an SSL Factory and not check the host name if a host name verifier was not provided to the driver. This could lead to a condition where a man-in-the-middle attacker could masquerade as a trusted server by providing a certificate for the wrong host, as long as it was signed by a trusted CA.
Severity
HIGH
CVSS v3
8.1
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H · source cna
Exploit chance (EPSS)
2.873%
chance of exploitation in the next 30 days
higher than 87.1% of scored CVEs · 2026-11-17
CISA KEV
Not listed
Public exploit code
None public
Exploit references (NVD and CNA): 0
Metasploit modules: 0
Nuclei templates: 0
Weakness
- CWE-297: Improper Validation of Certificate with Host Mismatch
Timeline
- 2018-08-30Published by the CNA13:00 UTC
- 2018-10-19GitHub advisory published (GHSA-568q-9fw5-28wf)50 days after publication
Exploit and advisory records
GitHub advisory GHSA-568q-9fw5-28wf, affected packages:
| Package | Vulnerable versions | Fixed in |
|---|---|---|
| Maven org.postgresql:pgjdbc-aggregate | before 42.2.5 | 42.2.5 |
Affected products
Products listed as vulnerable. Upgrade to the version under "Fixed in", or a later one.
| Product | Vulnerable versions | Fixed in |
|---|---|---|
| postgresql postgresql_jdbc_driver | before 42.2.5fixed in 42.2.5 | 42.2.5 |
| redhat enterprise_linux | 6.0no fix listed7.0no fix listed | not listednot listed |
References
- https://www.postgresql.org/about/news/1883/
- http://www.securityfocus.com/bid/105220
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10936
- https://lists.apache.org/thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe%40%3Ccommits.druid.apache.org%3E
Get more CVE data from the API.
curl 'https://api.contrastcyber.com/cve_lookup/CVE-2018-10936'curl 'https://api.contrastcyber.com/cve_risk_score/CVE-2018-10936'curl 'https://api.contrastcyber.com/cve_exploit/CVE-2018-10936'curl 'https://api.contrastcyber.com/cve_products/CVE-2018-10936'
Sources
- Vulnerability data from the National Vulnerability Database (NIST) and the CVE Program. CVE records: Copyright © 1999-2026, The MITRE Corporation, used under the CVE Program Terms of Use. CVE® is a registered trademark of The MITRE Corporation.
- CWE definitions: Copyright © 2006-2026, The MITRE Corporation, used under the CWE Terms of Use. CWE is a trademark of The MITRE Corporation.
- OWASP Top 10 categories by the OWASP Foundation (CC BY 3.0).
- EPSS scores by FIRST.org EPSS, used with attribution.
- KEV catalog and SSVC decisions by CISA.
- Advisory data from the GitHub Advisory Database through OSV.dev (CC BY 4.0).
- Exploit metadata from the Exploit Database (GPL-2.0-only, metadata only).
- Nuclei template names from nuclei-templates (MIT).