cve.bz

CVE-2018-10936

8.1 highEPSS 2.9%Fix available

High (8.1). EPSS 2.9% estimated probability of exploitation activity in the next 30 days. Fixed in org.postgresql:pgjdbc-aggregate 42.2.5.

On this page
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

CVSS 3.0

8.1 high
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.9% (unchanged from 2.9% a week ago; 2.9% 30 days ago) estimated probability of exploitation activity in the next 30 days; 87th percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-297 Improper Validation of Certificate with Host Mismatch
OWASP Top 10
A07:2025 Authentication Failures
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2018-10936 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2018-10936?via=ask-ai-copy and https://cve.bz/cve/CVE-2018-10936?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2018-10936 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
postgresql:postgresql_jdbc_driverbefore 42.2.5
redhat:enterprise_linux6.0
redhat:enterprise_linux7.0

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GHSA-568q-9fw5-28wfMavenorg.postgresql:pgjdbc-aggregate<42.2.542.2.5

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14libpgjava42.2.5-1DEBIAN-CVE-2018-10936
Ubuntu14.04:LTS, 16.04:LTS, 22.04:LTS and 2 morelibpgjavano fix listedUBUNTU-CVE-2018-10936
SUSEManager Server Module 4.0bind-formula0.1.1603299886.60e4bcf-3.11.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0grafana-formula0.2.2-4.13.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0postgresql-jdbc42.2.10-3.3.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0prometheus-exporters-formula0.7.5-3.16.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0prometheus-formula0.2.3-4.16.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0salt-netapi-client0.18.0-4.12.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0spacewalk-admin4.0.12-3.15.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0spacewalk-backend4.0.35-3.38.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0spacewalk-java4.0.40-3.48.2SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0spacewalk-web4.0.25-3.36.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0susemanager4.0.32-3.46.1SUSE-SU-2020:3466-1
SUSEManager Server Module 4.0susemanager-schema4.0.23-3.32.1SUSE-SU-2020:3466-1
1 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · SUSE.

Red Hat

Red Hat rates this Low.

Red Hat's mitigation

Applications using postgresql-jdbc should have their SSL configuration reviewed to ensure that host name verification is not disabled and only trusted CAs are accepted.

This vulnerability only impacts usage of postgresql-jdbc with a non-default SSL Factory, provided by the `sslfactory` parameter. If this parameter is not given, the default LibPQFactory is used, which is not vulnerable.

ProductPackageStateAdvisory
CloudForms Management Engine 5postgresql94Not affected
Red Hat Ansible Tower 3postgresql96Not affected
Red Hat Enterprise Linux 6postgresql-jdbcWill not fix
Red Hat Enterprise Linux 7postgresql-jdbcFix deferred
Red Hat Enterprise Linux 8postgresql-jdbcFix deferred
Red Hat Mobile Application Platform 4millicoreNot affected
Red Hat Virtualization 4postgresql-jdbcWill not fix

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2018-10936.

References

Check your stackJSON