大网数据广告活动
服务器运维问答

LibSSH authentication bypass

· 52CE 我爱测

With the recent security announcement by libssh ( CVE-2018-10933 ) I wonder how to find out if any of my running services use the vulnerable library? I will eventually yum upgrade the system but for now it would be nice to know i…

问题原文

原帖链接 · I-P-X · CC BY-SA 4.0

With the recent security announcement by libssh (CVE-2018-10933) I wonder how to find out if any of my running services use the vulnerable library? I will eventually yum upgrade the system but for now it would be nice to know if I'm in danger. I'm using Amazon Linux 2 AMI on EC2. Thanks!

已采纳解答

原帖链接 · MLu · CC BY-SA 4.0

You can get a list of all packages that need libssh2 with rpm -q --whatrequires.

On my Amazon Linux 2 instance nothing seems to require it:

[root@ip-xx-xx-xx-xx ~]# rpm -q --whatrequires libssh2
no package requires libssh2

To be extra sure you can try to list all processes that have the shared library open:

[root@ip-xx-xx-xx-xx ~]# rpm -ql libssh2
/usr/lib64/libssh2.so.1
/usr/lib64/libssh2.so.1.0.1     <== this is the one
...
[root@ip-xx-xx-xx-xx ~]# fuser /usr/lib64/libssh2.so.1.0.1
(... empty output ...)
[root@ip-xx-xx-xx-xx ~]#

Looks like on my Amazon Linux 2 EC2 nothing uses libssh2. Note that fuser must be run as root or with sudo, otherwise you won't see any system processes.

Hope that helps :)

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2018-10-17)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。