Skip to main content

mwiede jsch CVE-2026-86231

| EUVDEUVD-2026-72179 LOW
Improper Check for Certificate Revocation (CWE-299)
2026-09-06 VulDB GHSA-x2rp-h5qg-fmqg
2.9
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Position for MITM or operate rogue SSH server
  2. Delivery
    Client initiates SSH connection
  3. Exploit
    Present revoked OpenSSH host certificate
  4. Execution
    jsch silently discards @revoked certificate entry during known_hosts parse
  5. Persist
    Client accepts revoked certificate as trusted
  6. Impact
    Attacker intercepts or proxies SSH session

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A07:2025 - Authentication Failures
ASVS 5.0
V12 - Secure Communication Certificate revocation checking
Exploitation Conditions

Exploitation requires all three of the following: (1) the Java application uses mwiede jsch version ≤2.28.5 as its SSH client library, (2) the known_hosts file used by that application contains @revoked entries whose key type is an OpenSSH certificate type - specifically any of ssh-ed25519-cert-v01@openssh.com, ecdsa-sha2-nistp256-cert-v01@openssh.com, rsa-sha2-256-cert-v01@openssh.com, or rsa-sha2-512-cert-v01@openssh.com - and (3) an attacker can present a certificate matching that revoked entry during the SSH handshake (requires network positioning or control of the target hostname). The vulnerability does NOT affect plain public-key revocation entries (non-certificate key types), does NOT affect deployments that do not use @revoked entries at all, and does NOT affect server-side jsch usage. Attack complexity is high because the specific known_hosts configuration and network positioning are both required.

Impact

The provided CVSS 4.0 vector (AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N) scores 6.3, reflecting network exposure but high attack complexity and limited integrity-only impact - this calibration appears accurate. Exploitation is constrained to deployments that: (a) run mwiede jsch ≤2.28.5, (b) use SSH host certificate revocation via @revoked entries with certificate key types in known_hosts, and (c) are reachable by an attacker who can present a revoked certificate (MITM or rogue server). Standard @revoked entries with plain public key types (ssh-rsa, ssh-ed25519 without the -cert-v01 suffix) are unaffected. EPSS data was not provided in the input. No CISA KEV listing exists, indicating no observed widespread exploitation. The E:P modifier confirms a public PoC exists (GitHub issue #1091). Despite the network vector, real-world risk is substantially lower than the score implies because the precondition - deliberate use of certificate-type revocation in known_hosts - is a niche configuration pattern.

Exploit ScenarioDerived

An attacker who has obtained or forged a revoked SSH host certificate (one listed as @revoked in the client's known_hosts using a certificate key type) positions themselves to serve that certificate during an SSH handshake - either via MITM on the network path or by operating a rogue SSH server at the expected address. Because jsch ≤2.28.5 silently discards the @revoked certificate entry during known_hosts parsing, the client treats the revoked certificate as unrecognized (not revoked) and may accept the connection, exposing subsequent SSH sessions to credential theft or command injection. A public PoC demonstrating the bypass is available in GitHub issue #1091.

Monitor Track and reassess. Why: LOW severity (CVSS 0.1-3.9).
Patch available 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 06, 2026

Certificate revocation bypass in mwiede jsch through version 2.28.5 allows unauthenticated remote attackers to have a revoked SSH host certificate accepted as trusted during host verification. The setKnownHosts() parser in KnownHosts.java failed to recognize OpenSSH certificate key types (e.g., ssh-ed25519-cert-v01@openssh.com) as valid when paired with the @revoked marker, causing such entries to be skipped rather than tracked in the revocation pool - silently nullifying the revocation check. A public proof-of-concept is available via GitHub issue #1091, and the fix is released as version 2.28.6.

RemediationAI

Upgrade to mwiede jsch version 2.28.6, which contains the fix in commit 194a2f76a5c0f1c3f778565be3fd66bcafc42d23 (https://github.com/mwiede/jsch/pull/1098). The patched release is confirmed at https://github.com/mwiede/jsch/releases/tag/jsch-2.28.6. For Maven projects, update the dependency version to 2.28.6 in pom.xml. If immediate upgrade is not possible, a compensating control is to replace certificate key type entries in @revoked known_hosts lines with the underlying plain public key type (e.g., use ssh-ed25519 instead of ssh-ed25519-cert-v01@openssh.com), which is handled correctly by the old code; this trade-off requires administrators to extract the raw public key from each certificate and re-add revocation entries manually.

Affected VersionsENISA

jsch 2.28.1
jsch 2.28.2
jsch 2.28.5
jsch 2.28.3
jsch 2.28.0
jsch 2.28.4

Affected Packages

euvd jsch no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

mwiede jsch is a pure-Java SSH2 client library (maintained fork of the original JSch), consumed widely as a Maven dependency in Java applications performing programmatic SSH, SCP, and SFTP operations. The root cause (CWE-299 - Improper Check for Certificate Revocation) lies in how setKnownHosts() maps key type strings to integer constants via HostKey.name2type(). That function does not recognize OpenSSH certificate key type identifiers (suffixed with -cert-v01@openssh.com), returning UNKNOWN for them. Under the old code, when a @revoked marker combined with a certificate key type produced UNKNOWN, the entry was silently discarded rather than being stored in the revocation pool. The fix introduces addRevokedCertificateHostKey(), which parses the full OpenSSH certificate, extracts the embedded public key, maps it to the correct base type, and adds the revocation entry correctly. Affected CPE: cpe:2.3:a:mwiede:jsch:*:*:*:*:*:*:*:* up to 2.28.5.

Know when Jsch gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulDB) PRIMARY 2.9 MEDIUM
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
vuln.today AI 3.7 LOW

Network-reachable but requires specific known_hosts config and MITM positioning (AC:H); no privileges needed; integrity-only impact as revoked cert is accepted.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

Attack Vector
Network
Attack Complexity
High
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
Low
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

Lifecycle Timeline

3
Severity Changed
Sep 06, 2026 - 23:22 NVD
MEDIUM LOW
CVSS changed
Sep 06, 2026 - 23:22 NVD
6.3 (MEDIUM) 2.9 (LOW)
CVE Published
Sep 06, 2026 - 22:45 cve.org
MEDIUM 6.3

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.3%
Top 81% exploitable
Prevalence
Low
niche Java SSH client library, primarily used by developers
Exploit
POC
Public exploit code exists
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity LOW
CISA KEV No
Public POC Yes
EPSS 0.3%
Patch available Yes
Active threat No
Deciding rule
LOW severity (CVSS 0.1-3.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact· derived
Low

Priority Score

34
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +14
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy