# CVE-2009-0039: Apache Geronimo Application Server CSRF vulnerabilities

> Remote attackers can hijack administrator sessions to change passwords, upload applications, or shut down the server via CSRF in the web console.

- **Severity:** Medium 6.8 (`AV:N/AC:M/Au:N/C:P/I:P/A:P`)
- **Exploited in the wild:** Not known
- **Login needed:** An administrator
- **Attackable:** Over the internet
- **Victim action needed:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 17 Apr 2009
- **Updated:** 7 Aug 2024
- **Also known as:** GHSA-678x-xfp4-r92r

## What is CVE-2009-0039?

CVE-2009-0039 is a medium-severity vulnerability in n/a, published on 17 Apr 2009. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.

### Official description

Multiple cross-site request forgery (CSRF) vulnerabilities in the web administration console in Apache Geronimo Application Server 2.1 through 2.1.3 allow remote attackers to hijack the authentication of administrators for requests that (1) change the web administration password, (2) upload applications, and perform unspecified other administrative actions, as demonstrated by (3) a Shutdown request to console/portal//Server/Shutdown.

Weakness: CWE-352 (Cross-Site Request Forgery)

## Which versions are affected by CVE-2009-0039?

2 open source packages ship an affected version, including org.apache.geronimo.plugins:console. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `org.apache.geronimo.plugins:console` | Maven | All versions | 2.1.4 |
| `org.apache.geronimo.plugins:console` | Maven | All versions | 2.1.4 |

Products: Apache Geronimo.

## How do I fix CVE-2009-0039?

Upgrade org.apache.geronimo.plugins:console to 2.1.4 or later.

## Is CVE-2009-0039 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0039 exists.

Public exploit code:

- Apache Geronimo 2.1.x - Cross-Site Request Forgery (Multiple Admin Function) (exploitdb)

## Other vulnerabilities in n/a

- [CVE-2013-1777](https://insights.sbomify.com/CVE-2013-1777/): Apache Geronimo JMX Remoting functionality allows remote code execution in 3.x before v3.0.1 (critical 10.0)
- [CVE-2007-4548](https://insights.sbomify.com/CVE-2007-4548/): Auth bypass in n/a (critical 10.0)
- [CVE-2008-5518](https://insights.sbomify.com/CVE-2008-5518/): Apache Geronimo Application Server multiple directory traversal vulnerabilities (critical 9.4)
- [CVE-2011-5034](https://insights.sbomify.com/CVE-2011-5034/): Apache Geronimo Hash Collisions Cause DoS (high 7.8)
- [CVE-2007-5797](https://insights.sbomify.com/CVE-2007-5797/): Auth bypass in n/a (high 7.5)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2009-0039 and fix it if it is affected.

What it is: CVE-2009-0039 is a medium-severity vulnerability in n/a, published on 17 Apr 2009. An attacker needs administrator access to exploit it, and only if a user opens a file or follows a link.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2009-0039 exists.

Affected packages and fixed versions:
- org.apache.geronimo.plugins:console (Maven): affected all versions; fixed in 2.1.4
- org.apache.geronimo.plugins:console (Maven): affected all versions; fixed in 2.1.4

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

## Sources

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

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