# CVE-2008-2152: Integer overflow in n/a

> Remote attackers can execute arbitrary code via a crafted file due to an integer overflow leading to heap-based buffer overflow in OpenOffice.org.

- **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:** A user has to click or open something
- **Fix available:** Yes
- **Published:** 10 Jun 2008
- **Updated:** 7 Aug 2024
- **Also known as:** GHSA-xcx5-wqrj-xxh3, RHSA-2008:0537

## What is CVE-2008-2152?

CVE-2008-2152 is a critical vulnerability in n/a, published on 10 Jun 2008. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.

### Official description

Integer overflow in the rtl_allocateMemory function in sal/rtl/source/alloc_global.c in OpenOffice.org (OOo) 2.0 through 2.4 allows remote attackers to execute arbitrary code via a crafted file that triggers a heap-based buffer overflow.

Weakness: CWE-189

## Which versions are affected by CVE-2008-2152?

It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `openoffice.org2` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-base` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-calc` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-core` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-debuginfo` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-draw` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-emailmerge` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-graphicfilter` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-impress` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-javafilter` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-af_ZA` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-ar` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-bg_BG` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-bn` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-ca_ES` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-cs_CZ` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-cy_GB` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-da_DK` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-de` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-el_GR` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-es` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-et_EE` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-eu_ES` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-fi_FI` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-fr` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-ga_IE` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-gl_ES` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-gu_IN` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-he_IL` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-hi_IN` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-hr_HR` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-hu_HU` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-it` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-ja_JP` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-ko_KR` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-lt_LT` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-ms_MY` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-nb_NO` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-nl` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |
| `openoffice.org2-langpack-nn_NO` | Red Hat:enterprise_linux:4::as | All versions | 1:2.0.4-5.7.0.5.0 |

Products: Openoffice Openoffice.org.

## How do I fix CVE-2008-2152?

Upgrade to a fixed version.

## Is CVE-2008-2152 being exploited?

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

## Other vulnerabilities in n/a

- [CVE-2009-3570](https://insights.sbomify.com/CVE-2009-3570/): Other in n/a (critical 10.0)
- [CVE-2010-2935](https://insights.sbomify.com/CVE-2010-2935/): Integer overflow in n/a (critical 9.3)
- [CVE-2010-2936](https://insights.sbomify.com/CVE-2010-2936/): Integer overflow in n/a (critical 9.3)
- [CVE-2009-3571](https://insights.sbomify.com/CVE-2009-3571/): Memory corruption in n/a (critical 9.3)
- [CVE-2009-0200](https://insights.sbomify.com/CVE-2009-0200/): Integer overflow in n/a (critical 9.3)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2008-2152 and fix it if it is affected.

What it is: CVE-2008-2152 is a critical vulnerability in n/a, published on 10 Jun 2008. An attacker can exploit it over the internet without logging in, and only if a user opens a file or follows a link.
Exploitation: There is no known exploitation of CVE-2008-2152 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-2008-2152/ (Markdown: https://insights.sbomify.com/CVE-2008-2152/index.md)
```

## Sources

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

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