Arbitrary file read/write is a security flaw that lets an attacker access or change files outside the intended boundary of an application. “Read” means the attacker can retrieve sensitive content such as configuration files, credentials, logs, or source code. “Write” is often more dangerous because it can let an attacker alter settings, inject malicious code, overwrite scripts, or plant a file that leads to remote execution.
This bug class matters because file access often crosses from application logic into host-level trust. A web app, plugin, or API may be expected to handle only user data, but a path traversal bug, unsafe file import, or broken server-side feature can expose the underlying filesystem. Defenders look for patched software, strict file permissions, sandboxing, and careful validation of file paths, filenames, and upload targets. In real attacks, arbitrary read/write issues are frequently used to steal secrets first and then to deepen access through tampering or persistence.


