Remote code execution in FreeBSD



Published: 2011-12-23 | Updated: 2017-02-20
Risk Critical
Patch available YES
Number of vulnerabilities 1
CVE-ID CVE-2011-4862
CWE-ID CWE-119
Exploitation vector Network
Public exploit This vulnerability is being exploited in the wild.
Vulnerable software
Subscribe
FreeBSD
Operating systems & Components / Operating system

Vendor FreeBSD Foundation

Security Bulletin

This security bulletin contains one critical risk vulnerability.

1) Buffer overflow

EUVDB-ID: #VU3031

Risk: Critical

CVSSv3.1:

CVE-ID: CVE-2011-4862

CWE-ID: CWE-119 - Improper Restriction of Operations within the Bounds of a Memory Buffer

Exploit availability: Yes

Description

The vulnerability allows a remote attacker to execute arbitrary code on the target system.

The weakness exists due to buffer overflow in the encrypt_keyid() function of telnetd. A remote attacker can send a very large encryption key to telnetd daemon, trigger buffer overflow and execute arbitrary code with root privileges.

Successful exploitation of the vulnerability results in arbitrary code execution on the vulnerable system.

Note: the vulnerability was being actively exploited.

Mitigation

Update the latest version from vendor's website:

http://security.FreeBSD.org/patches/SA-11:08/telnetd.patch
http://security.FreeBSD.org/patches/SA-11:08/telnetd.patch.asc

Vulnerable software versions

FreeBSD: 7.3 - 9.0


CPE2.3 External links

http://www.freebsd.org/security/advisories/FreeBSD-SA-11:08.telnetd.asc

Q & A

Can this vulnerability be exploited remotely?

Is there known malware, which exploits this vulnerability?



###SIDEBAR###