> ## Documentation Index
> Fetch the complete documentation index at: https://loadwise.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# java-runtime-exec

> Runtime.getRuntime().exec runs an OS command and risks command injection with untrusted arguments.

## What it flags

`Runtime.getRuntime().exec` runs an OS command.

## How to review or fix

Use `ProcessBuilder` with an explicit argument array.

## Configuration

Set the rule to `"off"` in `loadwise.config.json` to drop its findings:

```json theme={null}
{
  "rules": { "java-runtime-exec": "off" }
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.