# CVE-2011-0465: Command injection in n/a

> Remote attackers can execute arbitrary commands via shell metacharacters in hostnames from DHCP or XDMCP messages in X.Org X11.

- **Severity:** Critical 9.3 (`AV:N/AC:M/Au:N/C:C/I:C/A:C`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 8 Apr 2011
- **Updated:** 6 Aug 2024
- **Also known as:** CVE-2011-1014, DEBIAN-CVE-2011-0465, DSA-2213-1, GHSA-wphx-j4h9-hfr8, RHSA-2011:0432, RHSA-2011:0433, openSUSE-SU-2024:10431-1

## What is CVE-2011-0465?

CVE-2011-0465 is a critical command injection vulnerability in n/a, published on 8 Apr 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

xrdb.c in xrdb before 1.0.9 in X.Org X11R7.6 and earlier allows remote attackers to execute arbitrary commands via shell metacharacters in a hostname obtained from a (1) DHCP or (2) XDMCP message.

Weakness: CWE-20 (Improper Input Validation)

## Which versions are affected by CVE-2011-0465?

It affects 2 products.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `xorg-x11` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Mesa-libGL` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Mesa-libGLU` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xdmx` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xnest` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xvfb` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-deprecated-libs` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-deprecated-libs-devel` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-devel` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-doc` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-font-utils` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-libs` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-sdk` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-tools` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-twm` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-xauth` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-xdm` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-xfs` | Red Hat:enterprise_linux:4::as | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Mesa-libGL` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Mesa-libGLU` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xdmx` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xnest` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xvfb` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-deprecated-libs` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-deprecated-libs-devel` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-devel` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-doc` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-font-utils` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-libs` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-sdk` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-tools` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-twm` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-xauth` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-xdm` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-xfs` | Red Hat:enterprise_linux:4::desktop | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11` | Red Hat:enterprise_linux:4::es | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Mesa-libGL` | Red Hat:enterprise_linux:4::es | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Mesa-libGLU` | Red Hat:enterprise_linux:4::es | All versions | 0:6.8.2-1.EL.67 |
| `xorg-x11-Xdmx` | Red Hat:enterprise_linux:4::es | All versions | 0:6.8.2-1.EL.67 |

Products: Matthias Hopf Xrdb, X X11.

## How do I fix CVE-2011-0465?

Upgrade to a fixed version.

## Is CVE-2011-0465 being exploited?

There is no known exploitation of CVE-2011-0465 in the wild and no public exploit code.

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2011-0465 and fix it if it is affected.

What it is: CVE-2011-0465 is a critical command injection vulnerability in n/a, published on 8 Apr 2011. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: There is no known exploitation of CVE-2011-0465 in the wild and no public exploit code.

Affected product: n/a. No package-level version data is available, so check the vendor advisory linked from the reference page.

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2011-0465/ (Markdown: https://insights.sbomify.com/CVE-2011-0465/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2011-0465
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2011-0465
- OSV: https://osv.dev/vulnerability/CVE-2011-0465

---
From sbomify Insights: https://insights.sbomify.com/CVE-2011-0465/
Summaries are generated and may contain mistakes; the official description above is the record.
