The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if…
The PKCS#11 feature in ssh-agent in OpenSSH before 9.3p2 has an insufficiently trustworthy search path, leading to remote code execution if an agent is forwarded to an attacker-controlled system. (Code in /usr/lib is not necessarily safe for loading into ssh-agent.) NOTE: this issue exists because of an incomplete fix for CVE-2016-10009.
The product searches for critical resources using an externally-supplied search path that can point to resources that are not under the product's direct control.
https://cwe.mitre.org/data/definitions/426.html →Open in CWE collection →The product uses a search path that contains an unquoted element, in which the element contains whitespace or other separators. This can cause the product to access resources in a parent path.
https://cwe.mitre.org/data/definitions/428.html →Open in CWE collection →The product constructs all or part of a code segment using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the syntax or behavior of the intended code segment.
https://cwe.mitre.org/data/definitions/94.html →Open in CWE collection →An attack of this type exploits a system's trust in configuration and resource files. When the executable loads the resource (such as an image file or configuration file) the attacker has modified the file to either execute malicious code directly or manipulate the target process (e.g. application server) to execute based on the malicious configuration parameters. Since systems are increasingly interrelated mashing up resources from local and remote sources the possibility of this attack occurring is high.
https://capec.mitre.org/data/definitions/35.html →Open in CAPEC collection →This pattern of attack sees an adversary load a malicious resource into a program's standard path so that when a known command is executed then the system instead executes the malicious component. The adversary can either modify the search path a program uses, like a PATH variable or classpath, or they can manipulate resources on the path to point to their malicious components. J2EE applications and other component based applications that are built from multiple binaries can have very long list of dependencies to execute. If one of these libraries and/or references is controllable by the attacker then application controls can be circumvented by the attacker.
https://capec.mitre.org/data/definitions/38.html →Open in CAPEC collection →This attack targets user controlled variables (DEBUG=1, PHP Globals, and So Forth). An adversary can override variables leveraging user-supplied, untrusted query variables directly used on the application server without any data sanitization. In extreme cases, the adversary can change variables controlling the business logic of the application. For instance, in languages like PHP, a number of poorly set default configurations may allow the user to override variables.
https://capec.mitre.org/data/definitions/77.html →Open in CAPEC collection →An adversary exploits a weakness in input validation on the target to inject new code into that which is currently executing. This differs from code inclusion in that code inclusion involves the addition or replacement of a reference to a code file, which is subsequently loaded by the target and used as part of the code of some application.
https://capec.mitre.org/data/definitions/242.html →Open in CAPEC collection →| Product | Vendor | Status |
|---|---|---|
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked | |
| openssh | Tracked |