CVE-2023-4911Glibc: buffer overflow in ld.so leading to privilege escalation
- 7.8HighCVSS base score
- 63.8%Exploitation in 30 daysEPSS · top 0.8% of all CVEs
- YesKnown exploitedin CISA's KEV since 21 Nov 2023
- 2Public exploitsMetasploit, Nuclei and Exploit-DB
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.
Exploited in the wild
CISA lists this vulnerability in its Known Exploited Vulnerabilities catalog as GNU C Library Buffer Overflow Vulnerability.
- Added
- 21 Nov 2023
- Fix due (US federal)
- 12 Dec 2023
- Used by ransomware
- Not known
Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable.
ENISA's EU Vulnerability Database lists it as exploited, from CISA's KEV, since 21 Nov 2023.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list a Metasploit module and an Exploit-DB entry for it. CISA's SSVC rates its exploitation: it is being exploited.
Show the exploits2
Metasploit modules1 module
- Glibc Tunables Privilege Escalation CVE-2023-4911 (aka Looney Tunables) (Metasploit module) (opens in a new tab)
exploit/linux/local/glibc_tunables_priv_escRank excellentdisclosed 3 Oct 2023
Exploit-DB1 entry
- glibc 2.38 - Buffer Overflow (Exploit-DB entry) (opens in a new tab)
EDB-ID 52479local, linuxpublished 11 Feb 2026Not verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By redhat
- 21 days later
· 21 days later
Published
- 49 days later
· 49 days later
Added to CISA KEV
Known exploited in the wild
- 3 years later
· 3 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| redhatCNA (assigner) | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
| NVDNVD · Analyzed | 3.1 | High7.8 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H |
- EPSS (exploitation in 30 days)
- 63.8% · top 0.8% of all CVEs (15 Nov 2026)
- CISA SSVC
- Exploitation: active · Automatable: no · Technical impact: total
The list uses the assigner's score when there is one, then CISA's, then NVD's: High 7.8.
Affected products
glibc
- affected 2.34 – < 2.39
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:2.28-225.el8_8.6 – < *
Red Hat · Red Hat Enterprise Linux 8
- unaffected 0:2.28-225.el8_8.6 – < *
Red Hat · Red Hat Enterprise Linux 8.6 Extended Update Support
- unaffected 0:2.28-189.6.el8_6 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.34-60.el9_2.7 – < *
Red Hat · Red Hat Enterprise Linux 9
- unaffected 0:2.34-60.el9_2.7 – < *
Red Hat · Red Hat Enterprise Linux 9.0 Extended Update Support
- unaffected 0:2.34-28.el9_0.4 – < *
Red Hat · Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
- unaffected 0:2.28-189.6.el8_6 – < *
Red Hat · Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
- unaffected 0:4.5.3-10.el8ev – < *
Red Hat · Red Hat Virtualization 4 for Red Hat Enterprise Linux 8
- unaffected 0:4.5.3-202312060823_8.6 – < *
Red Hat · Red Hat Enterprise Linux 6
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 7
All versions: unaffected
Red Hat · Red Hat Enterprise Linux 7
All versions: unaffected
What to do
Workaround: For customers who cannot update immediately and do not have Secure Boot feature enabled, the issue can be mitigated using the provided SystemTap script with the following steps. When enabled, any setuid program invoked with GLIBC_TUNABLES in the environment will be terminated immediately. To invoke the setuid program, users will then have to unset or clear the GLIBC_TUNABLES envvar, e.g. `GLIBC_TUNABLES= sudo` . Note that these mitigation steps will need to be repeated if the system is rebooted. 1) Install required systemtap packages and dependencies as per - https://access.redhat.com/solutions/5441 2) Create the following systemtap script, and name it stap_block_suid_tunables.stp: ~~~ function has_tunable_string:long() { name = "GLIBC_TUNABLES" mm = @task(task_current())->mm; if (mm) { env_start = @mm(mm)->env_start; env_end = @mm(mm)->env_end; if (env_start != 0 && env_end != 0) while (env_end > env_start) { cur = user_string(env_start, ""); env_name = tokenize(cur, "="); if (env_name == name && tokenize("", "") != "") return 1; env_start += strlen (cur) + 1 } } return 0; } probe process("/lib*/ld*.so*").function("__tunables_init") { atsecure = 0; /* Skip processing if we can't read __libc_enable_secure, e.g. core dump handler (systemd-cgroups-agent and systemd-coredump). */ try { atsecure = @var("__libc_enable_secure"); } catch { printk (4, sprintf ("CVE-2023-4911: Skipped check: %s (%d)", execname(), pid())); } if (atsecure && has_tunable_string ()) raise (9); } ~~~ 3) Load the systemtap module into the running kernel: ~~~ stap -g -F -m stap_block_suid_tunables stap_block_suid_tunables.stp ~~~ 4) Ensure the module is loaded: ~~~ lsmod | grep -i stap_block_suid_tunables stap_block_suid_tunables 249856 0 ~~~ 5) Once the glibc package is updated to the version containing the fix, the systemtap generated kernel module can be removed by running: ~~~ rmmod stap_block_suid_tunables ~~~ If Secure Boot is enabled on a system, the SystemTap module must be signed. An external compiling server can be used to sign the generated kernel module with a key enrolled into the kernel's keyring or starting with SystemTap 4.7 you can sign a module without a compile server. See further information here - https://www.redhat.com/sysadmin/secure-boot-systemtap
References
References30
- RHSA-2023:5453 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2023:5454 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2023:5455 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2023:5476 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2024:0033 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- https://access.redhat.com/security/cve/CVE-2023-4911 (opens in a new tab)vdb-entryx_refsource_REDHATx_transferred
- RHBZ#2238352 (opens in a new tab)issue-trackingx_refsource_REDHATx_transferred
- https://www.qualys.com/2023/10/03/cve-2023-4911/looney-tunables-local-privilege-escalation-glibc-ld-so.txt (opens in a new tab)x_transferred
- https://www.qualys.com/cve-2023-4911/ (opens in a new tab)x_transferred
- https://www.exploit-db.com/exploits/52479 (opens in a new tab)
- http://packetstormsecurity.com/files/174986/glibc-ld.so-Local-Privilege-Escalation.html (opens in a new tab)x_transferred
- http://packetstormsecurity.com/files/176288/Glibc-Tunables-Privilege-Escalation.html (opens in a new tab)x_transferred
- http://seclists.org/fulldisclosure/2023/Oct/11 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/03/2 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/03/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/05/1 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/13/11 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/14/3 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/14/5 (opens in a new tab)x_transferred
- http://www.openwall.com/lists/oss-security/2023/10/14/6 (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/4DBUQRRPB47TC3NJOUIBVWUGFHBJAFDL/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/DFG4P76UHHZEWQ26FWBXG76N2QLKKPZA/ (opens in a new tab)x_transferred
- https://lists.fedoraproject.org/archives/list/[email protected]/message/NDAQWHTSVOCOZ5K6KPIWKRT3JX4RTZUR/ (opens in a new tab)x_transferred
- https://security.gentoo.org/glsa/202310-03 (opens in a new tab)x_transferred
- https://security.netapp.com/advisory/ntap-20231013-0006/ (opens in a new tab)x_transferred
- https://www.debian.org/security/2023/dsa-5514 (opens in a new tab)x_transferred
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2023-4911 (opens in a new tab)government-resource
- https://cert-portal.siemens.com/productcert/html/ssa-831302.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-794697.html (opens in a new tab)
- https://cert-portal.siemens.com/productcert/html/ssa-082556.html (opens in a new tab)
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- CISA KEV catalog (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2023-54750 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2023-4911)Record last updated .