Vulnerabilities > CVE-2012-0219 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Dest-Unreach Socat
Attack vector
LOCAL Attack complexity
HIGH Privileges required
NONE Confidentiality impact
COMPLETE Integrity impact
COMPLETE Availability impact
COMPLETE Summary
Heap-based buffer overflow in the xioscan_readline function in xio-readline.c in socat 1.4.0.0 through 1.7.2.0 and 2.0.0-b1 through 2.0.0-b4 allows local users to execute arbitrary code via the READLINE address.
Vulnerable Configurations
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family Fedora Local Security Checks NASL id FEDORA_2012-8274.NASL description Fix for CVE-2012-0219 heap-based buffer overflow Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2012-06-04 plugin id 59334 published 2012-06-04 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/59334 title Fedora 17 : socat-1.7.2.1-1.fc17 (2012-8274) NASL family F5 Networks Local Security Checks NASL id F5_BIGIP_SOL14919.NASL description CVE-2010-2799 Stack-based buffer overflow in the nestlex function in nestlex.c in Socat 1.5.0.0 through 1.7.1.2 and 2.0.0-b1 through 2.0.0-b3, when bidirectional data relay is enabled, allows context-dependent attackers to execute arbitrary code via long command-line arguments. CVE-2012-0219 Heap-based buffer overflow in the xioscan_readline function in xio-readline.c in socat 1.4.0.0 through 1.7.2.0 and 2.0.0-b1 through 2.0.0-b4 allows local users to execute arbitrary code via the READLINE address. CVE-2013-3571 socat 1.2.0.0 before 1.7.2.2 and 2.0.0-b1 before 2.0.0-b6, when used for a listen type address and the fork option is enabled, allows remote attackers to cause a denial of service (file descriptor consumption) via multiple request that are refused based on the (1) sourceport, (2) lowport, (3) range, or (4) tcpwrap restrictions. last seen 2020-06-01 modified 2020-06-02 plugin id 78159 published 2014-10-10 reporter This script is Copyright (C) 2014-2019 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/78159 title F5 Networks BIG-IP : Socat vulnerabilities (K14919) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2013-127.NASL description Updated socat package fixes security vulnerability : Heap-based buffer overflow in the xioscan_readline function in xio-readline.c in socat 1.4.0.0 through 1.7.2.0 and 2.0.0-b1 through 2.0.0-b4 allows local users to execute arbitrary code via the READLINE address (CVE-2012-0219). last seen 2020-06-01 modified 2020-06-02 plugin id 66139 published 2013-04-20 reporter This script is Copyright (C) 2013-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/66139 title Mandriva Linux Security Advisory : socat (MDVSA-2013:127) NASL family SuSE Local Security Checks NASL id SUSE_SOCAT-8186.NASL description This update fixes two small security issues in socat : - Fixed a stack overflow in commandline parsing (bnc#627475 / CVE-2010-2799) Only exploitable if an attacker can control the commandline parameters. - Fixed heap overflow in READLINE output mode. (bnc#759859 / CVE-2012-0219) last seen 2020-06-05 modified 2012-07-03 plugin id 59830 published 2012-07-03 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/59830 title SuSE 10 Security Update : socat (ZYPP Patch Number 8186) NASL family SuSE Local Security Checks NASL id OPENSUSE-2012-348.NASL description This update of socat fixes a buffer overflow in READLINE output mode. last seen 2020-06-05 modified 2014-06-13 plugin id 74659 published 2014-06-13 reporter This script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/74659 title openSUSE Security Update : socat (openSUSE-SU-2012:0809-1) NASL family SuSE Local Security Checks NASL id SUSE_11_SOCAT-120611.NASL description This update fixes two small security issues in socat : - Fixed a stack overflow in commandline parsing (bnc#627475 / CVE-2010-2799) Only exploitable if an attacker can control the commandline parameters. - Fixed heap overflow in READLINE output mode (bnc#759859 / CVE-2012-0219) last seen 2020-06-05 modified 2013-01-25 plugin id 64225 published 2013-01-25 reporter This script is Copyright (C) 2013-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/64225 title SuSE 11.1 Security Update : socat (SAT Patch Number 6407) NASL family Amazon Linux Local Security Checks NASL id ALA_ALAS-2012-87.NASL description Heap-based buffer overflow in the xioscan_readline function in xio-readline.c in socat 1.4.0.0 through 1.7.2.0 and 2.0.0-b1 through 2.0.0-b4 allows local users to execute arbitrary code via the READLINE address. last seen 2020-06-01 modified 2020-06-02 plugin id 69694 published 2013-09-04 reporter This script is Copyright (C) 2013-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/69694 title Amazon Linux AMI : socat (ALAS-2012-87) NASL family Fedora Local Security Checks NASL id FEDORA_2012-8328.NASL description Fix for CVE-2012-0219 heap-based buffer overflow Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-03-17 modified 2012-06-07 plugin id 59389 published 2012-06-07 reporter This script is Copyright (C) 2012-2020 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/59389 title Fedora 16 : socat-1.7.2.1-1.fc16 (2012-8328) NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-201208-01.NASL description The remote host is affected by the vulnerability described in GLSA-201208-01 (socat: Arbitrary code execution) A vulnerability in the last seen 2020-06-01 modified 2020-06-02 plugin id 61540 published 2012-08-15 reporter This script is Copyright (C) 2012-2018 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/61540 title GLSA-201208-01 : socat: Arbitrary code execution NASL family FreeBSD Local Security Checks NASL id FREEBSD_PKG_6601127C9E0911E1B5E0000C299B62E1.NASL description The socat development team reports : This vulnerability can be exploited when socat is invoked with the READLINE address (this is usually only used interactively) without option last seen 2020-06-01 modified 2020-06-02 plugin id 59095 published 2012-05-15 reporter This script is Copyright (C) 2012-2018 and is owned by Tenable, Inc. or an Affiliate thereof. source https://www.tenable.com/plugins/nessus/59095 title FreeBSD : socat -- Heap-based buffer overflow (6601127c-9e09-11e1-b5e0-000c299b62e1)
References
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081619.html
- http://lists.fedoraproject.org/pipermail/package-announce/2012-June/081882.html
- http://secunia.com/advisories/49105
- http://secunia.com/advisories/49746
- http://security.gentoo.org/glsa/glsa-201208-01.xml
- http://www.dest-unreach.org/socat/contrib/socat-secadv3.html
- http://www.lwn.net/Articles/504742/
- http://www.mandriva.com/security/advisories?name=MDVSA-2013:169
- http://www.openwall.com/lists/oss-security/2012/05/14/2
- http://www.osvdb.org/81969
- http://www.securityfocus.com/bid/53510
- http://www.securitytracker.com/id?1027064