# CVE-2025-14308: Integer Overflow in Robocode's Buffer Write Method

> Attackers can trigger an integer overflow in Robocode's buffer write method to achieve arbitrary code execution via crafted inputs.

- **Severity:** Critical 10.0 (`CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:U/V:D/RE:M/U:Red`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 9 Dec 2025
- **Updated:** 9 Dec 2025
- **Also known as:** DEBIAN-CVE-2025-14308, GHSA-jqf9-28w7-q25g, UBUNTU-CVE-2025-14308

## What is CVE-2025-14308?

CVE-2025-14308 is a critical vulnerability in Robocode, published on 9 Dec 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

An integer overflow vulnerability exists in the write method of the Buffer class in Robocode version 1.9.3.6. The method fails to properly validate the length of data being written, allowing attackers to cause an overflow, potentially leading to buffer overflows and arbitrary code execution. This vulnerability can be exploited by submitting specially crafted inputs that manipulate the data length, leading to potential unauthorized code execution.

Weakness: CWE-190 (Integer Overflow or Wraparound)

## Which versions are affected by CVE-2025-14308?

It affects 1 product.


Products: Robocode Robocode.

## How do I fix CVE-2025-14308?

Upgrade to a fixed version.

## Is CVE-2025-14308 being exploited?

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

## Other vulnerabilities in Robocode

- [CVE-2025-14306](https://insights.sbomify.com/CVE-2025-14306/): Directory Traversal in Robocode's CacheCleaner Component (critical 10.0)
- [CVE-2019-10648](https://insights.sbomify.com/CVE-2019-10648/): Improper Input Validation in net.sf.robocode:robocode.host allows for external service interaction (critical 9.8)
- [CVE-2025-14307](https://insights.sbomify.com/CVE-2025-14307/): Insecure Temporary File Creation in Robocode's AutoExtract Component (critical 9.3)
- [CVE-2008-2078](https://insights.sbomify.com/CVE-2008-2078/): Other in n/a (high 7.5)
- [CVE-2007-6382](https://insights.sbomify.com/CVE-2007-6382/): Robocode Arbitrary Code Execution (medium 6.8)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2025-14308 and fix it if it is affected.

What it is: CVE-2025-14308 is a critical vulnerability in Robocode, published on 9 Dec 2025. 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-2025-14308 in the wild and no public exploit code.

Affected product: Robocode. 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-2025-14308/ (Markdown: https://insights.sbomify.com/CVE-2025-14308/index.md)
```

## Sources

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

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