CVE-2023-4911: Looney Tunables Linux - Local Privilege Escalation
- Template: CVE-2023-4911
- Name: Looney Tunables Linux - Local Privilege Escalation
- Description: A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
- Impact: Local attackers can execute arbitrary code with elevated privileges, potentially leading to full system compromise.
- Remediation: Upgrade GNU C Library (glibc) to a version later than affected releases that fixes the buffer overflow in the dynamic loader's GLIBC_TUNABLES environment variable processing.
- Severity: high
- Authors: nybble04
- Tags: cve, cve2023, code, glibc, looneytunables, linux, privesc, local, kev, gnu, vkev, vuln
- References: https://nvd.nist.gov/vuln/detail/CVE-2023-4911, https://www.qualys.com/2023/10/03/cve-2023-4911/looney-tunables-local-privilege-escalation-glibc-ld-so.txt, https://www.youtube.com/watch?v=1iV-CD9Apn8, http://www.openwall.com/lists/oss-security/2023/10/05/1, http://www.openwall.com/lists/oss-security/2023/10/13/11
- Cves: CVE-2023-4911
- Max requests: 1
- Directory: code/cves
- Path: code/cves/2023/CVE-2023-4911.yaml
- Digest: 4a0a004730450220251d80ecfae29f4d0fc07c091e15fe548a1970c1fc38fa3a6fc8ddfaca8c1fbd022100b42a31dc94f7d3a7000a9d6650369437e2efa3de488347b6805ebb2096de6a52
- Created at: 2023-11-07T10:28:51Z
- Updated at: 2026-11-21T02:03:58Z
- Age in days: 1113
- Template url: https://github.com/projectdiscovery/nuclei-templates/blob/main/code/cves/2023/CVE-2023-4911.yaml
- Checked, none or zero: verified
Classification
- Cwe: CWE-787, CWE-122
- Cvss score: 7.8
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.63769
- Epss percentile: 0.99239
- Cpe: cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
Metadata
- Max-request: 1
- Product: glibc
- Vendor: gnu
Products
| Product | Indexed | Url |
|---|---|---|
| gnu:glibc | yes | /v1/products/gnu/glibc |
Labels
- Name: GNU C Library - Buffer Overflow
- Impact: Local attackers can execute arbitrary code with elevated privileges, potentially leading to full system compromise.
- Remediation: Update to the latest version of glibc where the issue is fixed.
- Vulnerability type: buffer_overflow
- Vulnerability impact: remote_code_execution, privilege_escalation
- Requirement type: none
- Labels source: projectdiscovery
- From cve: CVE-2023-4911
- Not known: requirements
```yaml
id: CVE-2023-4911
info:
name: Looney Tunables Linux - Local Privilege Escalation
author: nybble04
severity: high
description: |
A buffer overflow was discovered in the GNU C Library's dynamic loader ld.so while processing the GLIBC_TUNABLES environment variable. This issue could allow a local attacker to use maliciously crafted GLIBC_TUNABLES environment variables when launching binaries with SUID permission to execute code with elevated privileges.
remediation: |
Upgrade GNU C Library (glibc) to a version later than affected releases that fixes the buffer overflow in the dynamic loader's GLIBC_TUNABLES environment variable processing.
impact: |
Local attackers can execute arbitrary code with elevated privileges, potentially leading to full system compromise.
reference:
- https://nvd.nist.gov/vuln/detail/CVE-2023-4911
- https://www.youtube.com/watch?v=1iV-CD9Apn8
- http://www.openwall.com/lists/oss-security/2023/10/05/1
- http://www.openwall.com/lists/oss-security/2023/10/13/11
classification:
cvss-metrics: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
cvss-score: 7.8
cve-id: CVE-2023-4911
cwe-id: CWE-787,CWE-122
epss-score: 0.63769
epss-percentile: 0.99239
cpe: cpe:2.3:a:gnu:glibc:*:*:*:*:*:*:*:*
metadata:
max-request: 1
vendor: gnu
product: glibc
tags: cve,cve2023,code,glibc,looneytunables,linux,privesc,local,kev,gnu,vkev,vuln
self-contained: true
code:
- engine:
- sh
- bash
source: |
env -i "GLIBC_TUNABLES=glibc.malloc.mxfast=glibc.malloc.mxfast=A" "Z=`printf '%08192x' 1`" /usr/bin/su --help
echo $?
matchers:
- type: word
words:
- "139" # Segmentation Fault Exit Code
digest: 4a0a004730450220251d80ecfae29f4d0fc07c091e15fe548a1970c1fc38fa3a6fc8ddfaca8c1fbd022100b42a31dc94f7d3a7000a9d6650369437e2efa3de488347b6805ebb2096de6a52:922c64590222798bb761d5b6d8e72950
```