---
title: "CAPEC-253: Remote Code Inclusion"
url: https://radicalnotion.ai/capec/capec-253
type: capec
description: "The attacker forces an application to load arbitrary code files from a remote location. The attacker could use this to try to load old versions of library files that have known vulnerabilities, to load malicious files that the attacker placed on the remote machine, or to otherwise change the functionality of the targeted application in unexpected ways."
updated: 2026-06-01
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CAPEC-253: Remote Code Inclusion

- **Abstraction:** Standard
- **Status:** Draft
- **CAPEC catalog version:** 3.9

## Description

The attacker forces an application to load arbitrary code files from a remote location. The attacker could use this to try to load old versions of library files that have known vulnerabilities, to load malicious files that the attacker placed on the remote machine, or to otherwise change the functionality of the targeted application in unexpected ways.

## Prerequisites

- Target application server must allow remote files to be included.The malicious file must be placed on the remote machine previously.

## Mitigations

- Minimize attacks by input validation and sanitization of any user data that will be used by the target application to locate a remote file to be included.

## Related weaknesses (CWE)

- [CWE-829](https://radicalnotion.ai/cwe/cwe-829): Inclusion of Functionality from Untrusted Control Sphere

## Related attack patterns

| Relationship | CAPEC | Name |
| --- | --- | --- |
| Parent | [CAPEC-175](https://radicalnotion.ai/capec/capec-175) | Code Inclusion |
| Child | [CAPEC-101](https://radicalnotion.ai/capec/capec-101) | Server Side Include (SSI) Injection |
| Child | [CAPEC-193](https://radicalnotion.ai/capec/capec-193) | PHP Remote File Inclusion |
| Child | [CAPEC-500](https://radicalnotion.ai/capec/capec-500) | WebView Injection |
| Can precede | [CAPEC-664](https://radicalnotion.ai/capec/capec-664) | Server Side Request Forgery |

## Taxonomy mappings

| Taxonomy | Entry | Id |
| --- | --- | --- |
| WASC | Remote File Inclusion | 05 |

## Frequently asked questions

### What is CAPEC-253?

The attacker forces an application to load arbitrary code files from a remote location. The attacker could use this to try to load old versions of library files that have known vulnerabilities, to load malicious files that the attacker placed on the remote machine, or to otherwise change the functionality of the targeted application in unexpected ways.

### How do you prevent CAPEC-253?

Minimize attacks by input validation and sanitization of any user data that will be used by the target application to locate a remote file to be included.

### What weaknesses does CAPEC-253 target?

CAPEC-253 exploits one CWE weakness: CWE-829 (Inclusion of Functionality from Untrusted Control Sphere).

Primary source: [MITRE CAPEC](https://capec.mitre.org/data/definitions/253.html)

---

Source: [RadicalNotion.AI](https://radicalnotion.ai/capec/capec-253). Licensed CC BY-NC 4.0; attribute RadicalNotion.AI and link the source page when you reuse this data.
