Description
A security flaw has been discovered in mwiede jsch up to 2.28.5. Affected is the function getRevokedKeys of the file src/main/java/com/jcraft/jsch/KnownHosts.java. Performing a manipulation of the argument known_hosts results in improper check for certificate revocation. The attack is possible to be carried out remotely. The attack is considered to have high complexity. The exploitability is told to be difficult. The exploit has been released to the public and may be used for attacks. Upgrading to version 2.28.6 is able to address this issue. The patch is named 194a2f76a5c0f1c3f778565be3fd66bcafc42d23. You should upgrade the affected component.
Published: 2026-09-06
Score: 6.3 Medium
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The flaw resides in the getRevokedKeys() method of KnownHosts.java in mwiede’s jsch library up to version 2.28.5. Manipulating the known_hosts argument bypasses the check that should discard revoked certificates, allowing an attacker to trick the client into trusting a compromised key. The public information indicates the exploit can be performed remotely, but it requires high‑complexity steps and is considered difficult to execute.

Affected Systems

The affected vendor is mwiede and the product is jsch, specifically all releases up to and including 2.28.5. Upgrading to 2.28.6 removes the vulnerability.

Risk and Exploitability

The vulnerability carries a CVSS score of 6.3 and is not listed in the CISA KEV catalog. EPSS information is not available. While the exploit is difficult, it has been released publicly, meaning attackers with sufficient skill could attempt to supply a suspicious known_hosts file and bypass revocation checks. The threat is primarily to the integrity of the TLS/SSH key trust chain rather than direct code execution.

Generated by OpenCVE AI on September 7, 2026 at 01:21 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply the vendor’s patch to JSch 2.28.6 or later, which corrects the improper certificate revocation check and fixes vulnerabilities listed under CWE‑298 and CWE‑299.
  • Configure JSch to enable strict host‑key verification and enforce that known_hosts entries are only accepted if they originate from a trusted source, thereby mitigating the improper authentication flaw (CWE‑299).
  • Restrict modification of known_hosts files by setting appropriate file‑system permissions and verify that any programmatic updates come from a trusted process, mitigating improper access control (CWE‑298).
  • If an upgrade is not immediately possible, monitor known_hosts and SSH session logs for unexpected changes or attempts to introduce revoked certificates, and investigate any anomalies promptly.

Generated by OpenCVE AI on September 7, 2026 at 01:21 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 06 Sep 2026 23:00:00 +0000

Type Values Removed Values Added
Description A security flaw has been discovered in mwiede jsch up to 2.28.5. Affected is the function getRevokedKeys of the file src/main/java/com/jcraft/jsch/KnownHosts.java. Performing a manipulation of the argument known_hosts results in improper check for certificate revocation. The attack is possible to be carried out remotely. The attack is considered to have high complexity. The exploitability is told to be difficult. The exploit has been released to the public and may be used for attacks. Upgrading to version 2.28.6 is able to address this issue. The patch is named 194a2f76a5c0f1c3f778565be3fd66bcafc42d23. You should upgrade the affected component.
Title mwiede jsch KnownHosts.java getRevokedKeys improper check for certificate revocation
First Time appeared Mwiede
Mwiede jsch
Weaknesses CWE-298
CWE-299
CPEs cpe:2.3:a:mwiede:jsch:*:*:*:*:*:*:*:*
Vendors & Products Mwiede
Mwiede jsch
References
Metrics cvssV2_0

{'score': 2.6, 'vector': 'AV:N/AC:H/Au:N/C:N/I:P/A:N/E:POC/RL:OF/RC:C'}

cvssV3_0

{'score': 3.7, 'vector': 'CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N/E:P/RL:O/RC:C'}

cvssV3_1

{'score': 3.7, 'vector': 'CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N/E:P/RL:O/RC:C'}

cvssV4_0

{'score': 6.3, 'vector': 'CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N/E:P'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulDB

Published:

Updated: 2026-09-06T22:45:12.262Z

Reserved: 2026-09-06T08:04:47.571Z

Link: CVE-2026-86231

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-09-06T23:17:39.157

Modified: 2026-09-06T23:17:39.157

Link: CVE-2026-86231

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-07T01:30:04Z

Weaknesses
  • CWE-298

    Improper Validation of Certificate Expiration

  • CWE-299

    Improper Check for Certificate Revocation