libssh Denial-of-Service Vulnerability via Arbitrary File Access in Configuration Parsing

Vulnerability

A denial-of-service vulnerability has been identified in libssh, where the library can be misled into opening arbitrary files during the parsing of configuration files. This issue arises when a local attacker provides a malicious configuration file or when the system is improperly configured. The vulnerability can cause the system to access harmful files, such as block devices or large system files, disrupting normal operations.

Impact

Exploitation of this vulnerability can lead to a denial-of-service condition, causing the system to become unresponsive or to consume excessive resources.

Reproduction

The vulnerability can be reproduced by providing a malicious configuration file that is loaded from the default location or through the 'ssh_config_parse_file()' and 'ssh_bind_config_parse_file()' functions. Alternatively, the vulnerability can be triggered by misconfiguring the system to allow the libssh library to access dangerous files during configuration parsing.

Remediation

Users are advised to ensure that only regular files are used as configuration and to enforce a configuration file size limit of 16MB.

Added: Mar 26, 2026, 9:46 PM
Updated: Mar 26, 2026, 9:46 PM

Vulnerability Rating

Custom Algorithm
spread
7.3
impact
2.5
exploitability
7.0
remediation
7.9
relevance
4.7
threat
1.6
urgency
2.9
incentive
0.0

Our algorithm analyzes dozens of metrics to generate these 8 key vulnerability categories, which are then combined to calculate the overall risk score.