gettext: Directory traversal via the LANGUAGE environment variable
Affects glibc gettext from version 2.0 onward when the LC_MESSAGES locale is not C, C.<encoding> or POSIX and the program is not setuid or setgid. No vendor rating is given, and no fixed version is listed.
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- How many real-world setups can hit the bug, from the vendor's advisory and CISA data. It does not know your setup.What do these mean? →
- Specific setups only
- Fix
- Fix or patch referenced
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
- Exploitation: none
- Automatable: no
- Technical impact: total
Summary
The GNU C Library (glibc) gettext functions are affected, which are used by many programs for translated messages. An attacker who can set environment variables for such a program may be able to make it load a malicious message catalog from an arbitrary file location, potentially causing a crash or running code with the program's privileges.
Summarized by anthropic/claude-haiku-5.5. Verify details against the original sources.
Read the original description
The gettext family of functions in the GNU C Library version 2.0 and later accept LANGUAGE environment variable entries that contain '/' or that are equal to "..", unless the program is setuid or setgid (AT_SECURE). An attacker who can set LANGUAGE in the environment of a program that uses gettext can make it load a message catalog (.mo file) from an arbitrary location in the file system. A crafted .mo file can crash the program through out-of-range offsets, or supply translations whose format directives do not match the arguments passed by the program. That causes undefined behaviour in the printf family of functions and may allow arbitrary code execution with the privileges of the program. The safety of message catalogs relies on them being installed in trusted, read-only locations, and the directory traversal bypasses this. The fix for CVE-2014-0475 rejects ".." path components in locale names passed to setlocale or taken from the LC_ALL, LC_* and LANG environment variables. gettext reads LANGUAGE directly and appends each colon-separated entry to the message catalog directory, so that fix did not cover LANGUAGE. LANGUAGE is only used when the LC_MESSAGES locale is not "C", "C.<encoding>" or "POSIX", so the attacker must also be able to select another installed locale, for example through LANG or LC_ALL. Exploitation also requires that the attacker can place the crafted file in a location readable by the target program, and that the environment crosses a trust boundary without the program running as AT_SECURE. An example is an SSH server that accepts LANGUAGE and LANG from clients through the AcceptEnv directive and restricts an account to a forced command; the attacker may use this to escape the restriction.
Timeline
- CISA SSVC assessment
Exploitation: none · Automatable: no · Technical impact: total
- CVE published
- First seen by cve.now1 day
- Record last updated
Affected versions
- The GNU C Library glibc
From 2.0
References 3
Questions about CVE-2026-84243
What does this mean?
When gettext uses the LANGUAGE environment variable, it can be made to load a crafted message catalog from an arbitrary file system location. This can crash the program or allow arbitrary code execution with the program's privileges.Source: sourceware.org
Am I affected, and how do I check?
The facts list glibc from version 2.0 onward. The issue applies when the LC_MESSAGES locale is not C, C.<encoding> or POSIX, so LANGUAGE is used, the program is not running as AT_SECURE (not setuid or setgid), and the environment crosses a trust boundary. Check the glibc version with ldd --version and the active message locale with the locale command or the LC_MESSAGES and LANGUAGE variables.Source: sourceware.org
What should I do about it?
The checked facts do not name a fixed glibc version or a vendor patch, so no upgrade target is given. Check the glibc project or the relevant distribution's security advisories for a fix.Source: sourceware.org
Is it being exploited?
It is not in CISA's Known Exploited Vulnerabilities catalog, and CISA's SSVC assessment does not mark exploitation as active. That does not mean it has not been attacked: vendors and researchers can report attacks before CISA lists them. No public exploit code is tracked.Source: cve.now feed data