Summary
C-Kermit has an authorization bypass in remote query and command evaluation that can let a client run shell commands on a server, even when host commands are disabled. The risk arises when a server processes crafted remote requests that reach command execution paths despite restrictions such as DISABLE HOST and nopush.
Affected context
The issue affects C-Kermit versions described as 6.0.192 and releases before 11.1.515. It occurs in server-side handling of remote query evaluation and related macro execution when those paths can reach shell-command functionality despite host-command restrictions.
Exploit preconditions
- Attack surface: C-Kermit server protocol handling
- Required access: The ability to send remote requests to the server; whether authentication is required depends on deployment configuration.
- Trigger point: Processing a
REMOTE QUERYor a remotely defined and invoked macro that reaches command execution. - Why exploitation is possible: Remote evaluation paths can bypass restrictions intended to disable host commands, including
DISABLE HOSTandnopush.
Why this happens
The underlying issue is an authorization check failure, mapped to CWE-863: Incorrect Authorization. Remote query and macro evaluation can reach command-execution functionality without consistently enforcing the server's host-command restrictions. As a result, a disabled operation may remain reachable through an alternate evaluation path.
Potential impact
- A remote client may execute shell commands on the server.
- Server processes or data may be compromised or altered.
- An attacker could use the server's privileges to access other resources.
- The incident may disrupt services or enable further compromise, depending on the server's permissions and environment.
General mitigation guidance
Mitigation generally focuses on enforcing authorization consistently across every path that can invoke host commands.
Common defensive patterns include:
- Denying command execution by default and allowing it only through explicit, narrowly scoped policy.
- Applying the same authorization checks to remote queries, macros, and indirect execution paths.
- Reducing exposure to untrusted remote clients and limiting their capabilities.
- Running the server with the least privileges needed for its intended tasks.
- Treating protocol input as untrusted and avoiding evaluation paths that can invoke operating-system commands.
How teams detect issues like this
High-level review and monitoring can focus on:
- Static analysis for remote-input paths that reach command execution or macro evaluation.
- Code review of authorization checks around
REMOTE QUERY,REMOTE ASSIGN, and execution-related functionality. - Policy tests confirming that host-command restrictions apply consistently across direct and indirect invocation paths.
- Monitoring server activity for unexpected remote requests or shell-command execution.

