Heap-based buffer overflow in GNU Bash
Multiple products
At a glance
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().
Source description · CVE List / CNA
System impact
CVSS summary v3.0
- Published:
- Updated:
- EPSS:
- 0.531%
- Exploited in attacks:
- Not confirmed
- Ransomware campaigns:
- Not confirmed
- Attack vector:
- Local
Affected software
Vendor, product and affected version ranges.
| Vendor | Product | Affected versions |
|---|---|---|
| Vendor:gnu | bash | Affected versions: ≥ 4.2, ≤ 4.3 |
| Vendor:redhat | enterprise linux | Affected versions: 7.0 |
| Vendor:redhat | bashEnvironments (1)
| Affected versions:Range not specifiedShow full version range for bash
|
| Vendor:redhat | bash-docEnvironments (1)
| Affected versions:Range not specifiedShow full version range for bash-doc
|
| Vendor:Debian | bashEnvironments (4)
| Affected versions: < 4.3-1 |
| Vendor:Debian | bash-builtinsEnvironments (4)
| Affected versions: < 4.3-1 |
| Vendor:Debian | bash-docEnvironments (4)
| Affected versions: < 4.3-1 |
| Vendor:Debian | bash-staticEnvironments (4)
| Affected versions: < 4.3-1 |
| Vendor:SUSE | bashEnvironments (3)
| Affected versions: < 0:4.2-83.6.1 |
| Vendor:SUSE | bash-docEnvironments (3)
| Affected versions: < 0:4.2-83.6.1 |
1–10 of 14 · Page 1 of 2
CVSS scores and metrics10
mitre · CVE List / CNA (cna)Primary7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AC:H/AV:L/A:H/C:H/I:H/PR:L/S:U/UI:N[email protected] · NVD (Primary)7.8 / 10HighCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H[email protected] · NVD (Secondary)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hredhat · Wazuh CTI (adp)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hnvd · Wazuh CTI (cna)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hsuse · Wazuh CTI (adp)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:Hnvd · Wazuh CTI (cna)7.8 / 10HighCVSS 3.0Details
- Attack complexity
- Low
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HRed Hat · Red Hat VEX (adp)7.0 / 10HighCVSS 3.0Details
- Attack complexity
- High
- Confidentiality
- High
- Integrity
- High
- Availability
- High
- Attack vector
- Local
- Privileges required
- Low
- User interaction
- Not required
- Scope
- Unchanged
Source vector
CVSS:3.0/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H[email protected] · NVD (Primary)4.6 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:P/I:P/A:Pnvd · Wazuh CTI (cna)4.6 / 10MediumCVSS 2.0Details
- Attack complexity
- Low
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
- Attack vector
- Local
- Authentication
- Not required
Source vector
AV:L/AC:L/Au:N/C:P/I:P/A:PCVSS measures severity; EPSS estimates exploitation probability. Lack of confirmed attacks does not mean lack of risk.
This product uses the NVD API but is not endorsed or certified by the NVD. CVE® records © The MITRE Corporation, reproduced under the CVE Terms of Use. Data sources and licences