GHSA-gw55-jm4h-x339

Suggest an improvement
Source
https://github.com/advisories/GHSA-gw55-jm4h-x339
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2020/05/GHSA-gw55-jm4h-x339/GHSA-gw55-jm4h-x339.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-gw55-jm4h-x339
Aliases
Published
2020-05-08T18:54:39Z
Modified
2023-11-08T04:02:03.966603Z
Severity
  • 9.0 (Critical) CVSS_V3 - CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H CVSS Calculator
Summary
Improper Validation of Certificate with Host Mismatch in Java-WebSocket
Details

The Java-WebSocket Client does not perform hostname verification.

  • This means that SSL certificates of other hosts are accepted as long as they are trusted. To exploit this vulnerability an attacker has to perform a man-in-the-middle (MITM) attack between a Java application using the Java-WebSocket Client and an WebSocket server it's connecting to.
  • TLS normally protects users and systems against MITM attacks, it cannot if certificates from other trusted hosts are accepted by the client.

For more information see: CWE-297: Improper Validation of Certificate with Host Mismatch - https://cwe.mitre.org/data/definitions/297.html

Important note

The OWASP Dependency-Check (https://jeremylong.github.io/DependencyCheck/index.html) may report that a dependency of your project is affected by this security vulnerability, but you don't use this lib. This is caused by the fuzzy search in the OWASP implementation. Check out this issue (https://github.com/TooTallNate/Java-WebSocket/issues/1019#issuecomment-628507934) for more information and a way to suppress the warning.

Database specific
{
    "nvd_published_at": "2020-05-07T21:15:00Z",
    "github_reviewed_at": "2020-05-08T18:54:10Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-295",
        "CWE-297"
    ]
}
References

Affected packages

Maven / org.java-websocket:Java-WebSocket

Package

Name
org.java-websocket:Java-WebSocket
View open source insights on deps.dev
Purl
pkg:maven/org.java-websocket/Java-WebSocket

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.5.0

Affected versions

1.*

1.3.0
1.3.4
1.3.5
1.3.6
1.3.7
1.3.8
1.3.9
1.4.0
1.4.1

Database specific

{
    "last_known_affected_version_range": "<= 1.4.1"
}