CVE-2025-14307: Robocode.battle Robocode Has An Insecure Temporary Vulnerability

CRITICAL
Advisory Identifier: GHSA-2mxr-rc97-xrj2
CWE-377
Published
Advisory Summary

CVE-2025-14307 is a CRITICAL robocode has an insecure temporary vulnerability (CWE-377: Insecure Temporary File) affecting Robocode.battle libraries in the Maven ecosystem. The issue involves robocode has an insecure temporary file creation vulnerability in the autoextract component. Remediation is available by upgrading affected packages to version 1.9.5.6.

CVE-2025-14307 at a Glance

CVE Identifier CVE-2025-14307
GHSA Identifier GHSA-2mxr-rc97-xrj2
Severity CRITICAL
CVSS v3.1 Base Score N/A
CWE Classification CWE-377: Insecure Temporary File
Affected Product Robocode.battle
Package Ecosystem Maven
Published Date
Last Updated

How to Fix CVE-2025-14307

To remediate this vulnerability, upgrade all affected Robocode.battle dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

net.sf.robocode:robocode.battle fixed: 1.9.5.6
<dependency>
    <groupId>net.sf.robocode</groupId>
    <artifactId>robocode.battle</artifactId>
    <version>1.9.5.6</version>
</dependency>
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

mvn dependency:tree -Dincludes=net.sf.robocode

How to Check if You Are Affected

To determine whether your Java application is affected by CVE-2025-14307, inspect your build dependencies using the Maven Dependency Plugin:

mvn dependency:tree -Dincludes=net.sf.robocode

Analyze the terminal output to locate any version of Robocode.battle in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 1.9.5.6), your application is affected.

Note: The mvn dependency:tree -Dincludes=net.sf.robocode command inspects the resolved dependency graph declared in your project's POM files; it does not perform automated security scanning or inspect runtime dynamic classpaths. Always verify runtime container classpaths and shaded JARs.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-377: Insecure Temporary File, where creating and using insecure temporary files can leave application and system data vulnerable to attack. In Robocode.battle, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

An insecure temporary file creation vulnerability exists in the AutoExtract component of Robocode version 1.9.3.6. The createTempFile method fails to securely create temporary files, allowing attackers to exploit race conditions and potentially execute arbitrary code or overwrite critical files. This vulnerability can be exploited by manipulating the temporary file creation process, leading to potential unauthorized actions.

CVE-2025-14307 Affected Robocode.battle Versions

1 component(s)
Fixed Versions:
1.9.5.6
Product / Package Ecosystem Affected Versions Fixed Version
net.sf.robocode:robocode.battle
Maven
< 1.9.5.6
1.9.5.6

References

Frequently Asked Questions

What is CVE-2025-14307?
CVE-2025-14307 is a security vulnerability in Robocode.battle involving Robocode has an insecure temporary file creation vulnerability in the AutoExtract component under CWE-377: Insecure Temporary File.
Which Robocode.battle versions are affected?
Affected versions include releases prior to 1.9.5.6 across affected packages: net.sf.robocode:robocode.battle.
What version fixes CVE-2025-14307?
Upgrading to 1.9.5.6 (or the latest patched release for your respective branch) resolves the vulnerability.
Is robocode.battle affected?
Yes, net.sf.robocode:robocode.battle is affected in releases prior to 1.9.5.6. Upgrade your dependency to 1.9.5.6 or later.
What CWE is associated with CVE-2025-14307?
CVE-2025-14307 is classified under CWE-377: Insecure Temporary File (Creating and using insecure temporary files can leave application and system data vulnerable to attack.).
How can I check Maven dependencies for CVE-2025-14307?
Run the dependency tree command: 'mvn dependency:tree -Dincludes=net.sf.robocode'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-2mxr-rc97-xrj2",
  "modified" : "2025-12-10T00:02:37Z",
  "published" : "2025-12-09T18:30:35Z",
  "aliases" : [ "CVE-2025-14307" ],
  "summary" : "Robocode has an insecure temporary file creation vulnerability in the AutoExtract component",
  "details" : "An insecure temporary file creation vulnerability exists in the AutoExtract component of Robocode version 1.9.3.6. The createTempFile method fails to securely create temporary files, allowing attackers to exploit race conditions and potentially execute arbitrary code or overwrite critical files. This vulnerability can be exploited by manipulating the temporary file creation process, leading to potential unauthorized actions.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/AU:Y/R:U/V:D/RE:M/U:Red"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "Maven",
      "name" : "net.sf.robocode:robocode.battle"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0"
      }, {
        "fixed" : "1.9.5.6"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "ADVISORY",
    "url" : "https://nvd.nist.gov/vuln/detail/CVE-2025-14307"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/robo-code/robocode/pull/68"
  }, {
    "type" : "WEB",
    "url" : "https://github.com/robo-code/robocode/commit/9f882bba2a9cd91da57c16b98699f8cc9b354f3a"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/robo-code/robocode"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-377" ],
    "severity" : "CRITICAL",
    "github_reviewed" : true,
    "github_reviewed_at" : "2025-12-10T00:02:37Z",
    "nvd_published_at" : "2025-12-09T16:17:38Z"
  }
}