UBUNTU-CVE-2012-6711

Source
https://ubuntu.com/security/CVE-2012-6711
Import Source
https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2012/UBUNTU-CVE-2012-6711.json
JSON Data
https://api.test.osv.dev/v1/vulns/UBUNTU-CVE-2012-6711
Upstream
Related
  • USN-4180-1
Withdrawn
2025-07-18T16:42:48Z
Published
2019-06-18T18:15:00Z
Modified
2025-07-16T08:16:13.032885Z
Severity
  • 7.8 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • 7.0 (High) CVSS_V3 - CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H CVSS Calculator
  • Ubuntu - medium
Summary
[none]
Details

A heap-based buffer overflow exists in GNU Bash before 4.3 when wide characters, not supported by the current locale set in the LC_CTYPE environment variable, are printed through the echo built-in function. A local attacker, who can provide data to print through the "echo -e" built-in function, may use this flaw to crash a script or execute code with the privileges of the bash process. This occurs because ansicstr() in lib/sh/strtrans.c mishandles u32cconv().

References

Affected packages

Ubuntu:16.04:LTS / bash

Package

Name
bash
Purl
pkg:deb/ubuntu/bash@4.3-14ubuntu1.3?arch=source&distro=xenial

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.3-14ubuntu1.3

Affected versions

4.*

4.3-14ubuntu1
4.3-14ubuntu1.1
4.3-14ubuntu1.2

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "bash",
            "binary_version": "4.3-14ubuntu1.3"
        },
        {
            "binary_name": "bash-builtins",
            "binary_version": "4.3-14ubuntu1.3"
        },
        {
            "binary_name": "bash-dbgsym",
            "binary_version": "4.3-14ubuntu1.3"
        },
        {
            "binary_name": "bash-doc",
            "binary_version": "4.3-14ubuntu1.3"
        },
        {
            "binary_name": "bash-static",
            "binary_version": "4.3-14ubuntu1.3"
        },
        {
            "binary_name": "bash-static-dbgsym",
            "binary_version": "4.3-14ubuntu1.3"
        }
    ],
    "availability": "No subscription required"
}

Ubuntu:18.04:LTS / bash

Package

Name
bash
Purl
pkg:deb/ubuntu/bash@4.4.18-2ubuntu1.1?arch=source&distro=bionic

Affected ranges

Type
ECOSYSTEM
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
4.4.18-2ubuntu1.1

Affected versions

4.*

4.4-5ubuntu1
4.4.18-1ubuntu1
4.4.18-2ubuntu1

Ecosystem specific

{
    "binaries": [
        {
            "binary_name": "bash",
            "binary_version": "4.4.18-2ubuntu1.1"
        },
        {
            "binary_name": "bash-builtins",
            "binary_version": "4.4.18-2ubuntu1.1"
        },
        {
            "binary_name": "bash-builtins-dbgsym",
            "binary_version": "4.4.18-2ubuntu1.1"
        },
        {
            "binary_name": "bash-dbgsym",
            "binary_version": "4.4.18-2ubuntu1.1"
        },
        {
            "binary_name": "bash-doc",
            "binary_version": "4.4.18-2ubuntu1.1"
        },
        {
            "binary_name": "bash-static",
            "binary_version": "4.4.18-2ubuntu1.1"
        },
        {
            "binary_name": "bash-static-dbgsym",
            "binary_version": "4.4.18-2ubuntu1.1"
        }
    ],
    "availability": "No subscription required"
}