Vulnerabilities > CVE-2012-3410 - Buffer Errors vulnerability in GNU Bash 4.2

047910
CVSS 4.6 - MEDIUM
Attack vector
LOCAL
Attack complexity
LOW
Privileges required
NONE
Confidentiality impact
PARTIAL
Integrity impact
PARTIAL
Availability impact
PARTIAL
local
low complexity
gnu
CWE-119
nessus

Summary

Stack-based buffer overflow in lib/sh/eaccess.c in GNU Bash before 4.2 patch 33 might allow local users to bypass intended restricted shell access via a long filename in /dev/fd, which is not properly handled when expanding the /dev/fd prefix.

Vulnerable Configurations

Part Description Count
Application
Gnu
1

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 familySuSE Local Security Checks
    NASL idSUSE_BASH-8217.NASL
    descriptionParsing the /dev/fd prefix could have lead to a stack-based buffer overflow which could have been exploited by attackers to bypass security restrictions. (CVE-2012-3410)
    last seen2020-06-05
    modified2012-08-14
    plugin id61524
    published2012-08-14
    reporterThis script is Copyright (C) 2012-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/61524
    titleSuSE 10 Security Update : bash (ZYPP Patch Number 8217)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2013-032.NASL
    descriptionA vulnerability was found and corrected in bash : A stack-based buffer overflow flaw was found in the way bash, the GNU Bourne Again shell, expanded certain /dev/fd file names when checking file names (
    last seen2020-06-01
    modified2020-06-02
    plugin id66046
    published2013-04-20
    reporterThis script is Copyright (C) 2013-2019 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/66046
    titleMandriva Linux Security Advisory : bash (MDVSA-2013:032)
  • NASL familyMandriva Local Security Checks
    NASL idMANDRIVA_MDVSA-2012-128.NASL
    descriptionA vulnerability was found and corrected in bash : A stack-based buffer overflow flaw was found in the way bash, the GNU Bourne Again shell, expanded certain /dev/fd file names when checking file names (
    last seen2020-06-01
    modified2020-06-02
    plugin id61977
    published2012-09-06
    reporterThis script is Copyright (C) 2012-2019 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/61977
    titleMandriva Linux Security Advisory : bash (MDVSA-2012:128)
  • NASL familySolaris Local Security Checks
    NASL idSOLARIS11_BASH_20141107.NASL
    descriptionThe remote Solaris system is missing necessary patches to address security updates : - Stack-based buffer overflow in lib/sh/eaccess.c in GNU Bash before 4.2 patch 33 might allow local users to bypass intended restricted shell access via a long filename in /dev/fd, which is not properly handled when expanding the /dev/fd prefix. (CVE-2012-3410)
    last seen2020-06-01
    modified2020-06-02
    plugin id80591
    published2015-01-19
    reporterThis script is Copyright (C) 2015-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/80591
    titleOracle Solaris Third-Party Patch Update : bash (cve_2012_3410_stack_based)
  • NASL familySuSE Local Security Checks
    NASL idOPENSUSE-2012-408.NASL
    descriptionBash was fixed to avoid a possible buffer overflow when expanding the /dev/fd prefix with e.g. the test builtin (bnc#770795) (CVE-2012-3410) Due to _FORTIFY_SOURCE=2 enablement, the exploit will only abort the shell.
    last seen2020-06-05
    modified2014-06-13
    plugin id74685
    published2014-06-13
    reporterThis script is Copyright (C) 2014-2020 and is owned by Tenable, Inc. or an Affiliate thereof.
    sourcehttps://www.tenable.com/plugins/nessus/74685
    titleopenSUSE Security Update : bash (openSUSE-SU-2012:0898-1)
  • NASL familySuSE Local Security Checks
    NASL idSUSE_11_BASH-120713.NASL
    descriptionParsing the /dev/fd prefix could have lead to a stack-based buffer overflow which could have been exploited by attackers to bypass security restrictions. This has been fixed.
    last seen2020-06-05
    modified2013-01-25
    plugin id64110
    published2013-01-25
    reporterThis script is Copyright (C) 2013-2020 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/64110
    titleSuSE 11.1 Security Update : bash (SAT Patch Number 6541)
  • NASL familyGentoo Local Security Checks
    NASL idGENTOO_GLSA-201210-05.NASL
    descriptionThe remote host is affected by the vulnerability described in GLSA-201210-05 (Bash: Multiple vulnerabilities) Two vulnerabilities have been found in Bash: Bash example scripts do not handle temporary files securely (CVE-2008-5374). Improper bounds checking in Bash could cause a stack-based buffer overflow (CVE-2012-3410). Impact : A remote attacker could entice a user to open a specially crafted Bash script, possibly resulting in execution of arbitrary code with the privileges of the process, or a Denial of Service condition of the Bash executable. A local attacker may be able to perform symlink attacks to overwrite arbitrary files with the privileges of the user running the application or bypass shell access restrictions. Workaround : There is no known workaround at this time.
    last seen2020-06-01
    modified2020-06-02
    plugin id62650
    published2012-10-22
    reporterThis script is Copyright (C) 2012-2018 Tenable Network Security, Inc.
    sourcehttps://www.tenable.com/plugins/nessus/62650
    titleGLSA-201210-05 : Bash: Multiple vulnerabilities