{"id":166941,"date":"2024-08-12T17:38:52","date_gmt":"2024-08-12T17:38:52","guid":{"rendered":"https:\/\/securityaffairs.com\/?p=166941"},"modified":"2024-08-12T17:38:54","modified_gmt":"2024-08-12T17:38:54","slug":"freebsd-openssh-flaw","status":"publish","type":"post","link":"https:\/\/securityaffairs.com\/166941\/security\/freebsd-openssh-flaw.html","title":{"rendered":"A FreeBSD flaw could allow remote code execution, patch it now!"},"content":{"rendered":"
<\/div>\n

FreeBSD Project maintainers addressed a high-severity flaw in OpenSSH that could allow remote code execution with elevated privileges.<\/h2>\n\n\n\n

The maintainers of the FreeBSD Project have released urgent security updates to address a high-severity flaw, tracked as\u00a0CVE-2024-7589, (CVSS score of 7.4) in OpenSSH. A remote attacker could exploit the vulnerability to execute arbitrary code with elevated privileges.<\/p>\n\n\n\n

OpenSSH is an implementation of the SSH protocol suite that offers encrypted and authenticated transport for various services, including remote shell access.<\/p>\n\n\n\n

“A signal handler in sshd(8) may call a logging function that is not async- signal-safe. The signal handler is invoked when a client does not authenticate within the LoginGraceTime seconds (120 by default). This signal handler executes in the context of the sshd(8)’s privileged code, which is not sandboxed and runs with full root privileges.” reads the advisory<\/a>. “This issue is another instance of the problem in CVE-2024-6387<\/a> addressed by FreeBSD-SA-24:04.openssh. The faulty code in this case is from the integration of blacklistd in OpenSSH in FreeBSD.”<\/em><\/p>\n\n\n\n

A race condition in the privileged sshd<\/code> context, caused by calling functions that are not async-signal-safe, could allow an attacker to exploit the flaw for unauthenticated remote code execution as root.<\/p>\n\n\n\n

CVE-2024-7589 stems from CVE-2024-6387<\/a> (aka regreSSHion), which was disclosed in July that can lead to unauthenticated remote code execution with root privileges in glibc-based Linux systems.<\/p>\n\n\n\n

In the case of CVE-2024-7589, the faulty code is added to integrate blacklistd in OpenSSH in FreeBSD.<\/p>\n\n\n\n

The maintainers explained that to mitigate the signal handler race condition in sshd<\/code>, it is possible to set LoginGraceTime<\/code> to 0 in \/etc\/ssh\/sshd_config<\/code> and restart sshd<\/code>. This will prevent remote code execution but may lead to a denial of service due to the exhaustion of all MaxStartups<\/code> connections. <\/gwmw><\/p>\n\n\n\n

FreeBSD users are recommended to upgrade their system to a supported FreeBSD stable version and
restart sshd.<\/p>\n\n\n\n

Follow me on Twitter: @securityaffairs<\/strong><\/a> and Facebook<\/strong><\/a> and Mastodon<\/a><\/p>\n\n\n\n

Pierluigi Paganini<\/strong><\/a><\/p>\n\n\n\n

(<\/strong>SecurityAffairs<\/strong><\/a>\u00a0\u2013<\/strong>\u00a0hacking, OpenSSH)<\/strong><\/p>\n","protected":false},"excerpt":{"rendered":"

FreeBSD Project maintainers addressed a high-severity flaw in OpenSSH that could allow remote code execution with elevated privileges. The maintainers of the FreeBSD Project have released urgent security updates to address a high-severity flaw, tracked as\u00a0CVE-2024-7589, (CVSS score of 7.4) in OpenSSH. A remote attacker could exploit the vulnerability to execute arbitrary code with elevated […]<\/p>\n","protected":false},"author":1,"featured_media":139307,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[3323,55],"tags":[4112,9508,9506,10918,4023,687,841,1533],"class_list":["post-166941","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-breaking-news","category-security","tag-hacking","tag-hacking-news","tag-information-security-news","tag-it-information-security","tag-openssh","tag-pierluigi-paganini","tag-security-affairs","tag-security-news"],"yoast_head":"\n杭州江阴科强工业胶带有限公司