# CVE-2012-2395: Cobbler subject to Command Injection

> Remote attackers can execute arbitrary commands via shell metacharacters in username or password fields of the Cobbler xmlrpc API.

- **Severity:** High 7.5 (`AV:N/AC:L/Au:N/C:P/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 16 Jun 2012
- **Updated:** 6 Aug 2024
- **Also known as:** GHSA-g34c-mg6m-xvxj, PYSEC-2026-792, RHSA-2012:1060

## What is CVE-2012-2395?

CVE-2012-2395 is a high-severity command injection vulnerability in n/a, published on 16 Jun 2012. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Incomplete blacklist vulnerability in action_power.py in Cobbler 2.2.0 allows remote attackers to execute arbitrary commands via shell metacharacters in the (1) username or (2) password fields to the power_system method in the xmlrpc API.

## Which versions are affected by CVE-2012-2395?

3 open source packages ship an affected version, including cobbler. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `cobbler` | PyPI | All versions | 2.6.0 |
| `cobbler` | PyPI | All versions | 2.6.0 |
| `cobbler` | PyPI | All versions | 2.6.0 |
| `cobbler` | Red Hat:network_satellite:5.4::el5 | All versions | 0:2.0.7-14.6.el5sat |
| `cobbler` | Red Hat:network_satellite:5.4::el6 | All versions | 0:2.0.7-14.6.el6sat |

Products: Michael Dehaan Cobbler.

## How do I fix CVE-2012-2395?

Upgrade cobbler to 2.6.0 or later.

## Is CVE-2012-2395 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2008-6954](https://insights.sbomify.com/CVE-2008-6954/): Cobbler Web Interface Kickstart Template Remote Privilege Escalation Vulnerability (critical 9.0)
- [CVE-2010-2235](https://insights.sbomify.com/CVE-2010-2235/): Cobbler is vulnerable to code injection (high 8.5)
- [CVE-2009-5021](https://insights.sbomify.com/CVE-2009-5021/): Hardcoded credentials in n/a (high 7.5)
- [CVE-2010-4512](https://insights.sbomify.com/CVE-2010-4512/): Misconfiguration in n/a (high 7.2)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2012-2395 and fix it if it is affected.

What it is: CVE-2012-2395 is a high-severity command injection vulnerability in n/a, published on 16 Jun 2012. 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-2012-2395 in the wild and no public exploit code.

Affected packages and fixed versions:
- cobbler (PyPI): affected all versions; fixed in 2.6.0
- cobbler (PyPI): affected all versions; fixed in 2.6.0
- cobbler (PyPI): affected all versions; fixed in 2.6.0

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-2012-2395/ (Markdown: https://insights.sbomify.com/CVE-2012-2395/index.md)
```

## Sources

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

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