---
title: "CWE-348: Use of Less Trusted Source"
url: https://radicalnotion.ai/cwe/cwe-348
type: cwe
description: "The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-348: Use of Less Trusted Source

- **Abstraction:** Base
- **Structure:** Simple
- **Status:** Draft
- **CVEs with this as primary weakness:** 104
- **Of those, in CISA KEV:** 0
- **New in 2026:** 73
- **CWE catalog version:** 4.21

## Description

The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Architecture and Design | - |
| Implementation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Access Control | Bypass Protection Mechanism, Gain Privileges or Assume Identity | An attacker could utilize the untrusted data source to bypass protection mechanisms and gain access to sensitive data. |

## Demonstrative examples

### Example 1

This code attempts to limit the access of a page to certain IP Addresses. It checks the 'HTTP\_X\_FORWARDED\_FOR' header in case an authorized user is sending the request through a proxy.

Bad code:

```php
$requestingIP = '0.0.0.0';
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
    $requestingIP = $_SERVER['HTTP_X_FORWARDED_FOR'];

else{
    $requestingIP = $_SERVER['REMOTE_ADDR'];
}

if(in_array($requestingIP,$ipAllowlist)){
    generatePage();
    return;
}
else{
    echo "You are not authorized to view this page";
    return;
}
```

Good code:

```php
$requestingIP = '0.0.0.0';
if (array_key_exists('HTTP_X_FORWARDED_FOR', $_SERVER)) {
    echo "This application cannot be accessed through a proxy.";
    return;

else{
    $requestingIP = $_SERVER['REMOTE_ADDR'];
}
...
```

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2001-0860 | Product uses IP address provided by a client, instead of obtaining it from the packet headers, allowing easier spoofing. |
| CVE-2004-1950 | Web product uses the IP address in the X-Forwarded-For HTTP header instead of a server variable that uses the connecting IP address, allowing filter bypass. |
| CVE-2001-0908 | Product logs IP address specified by the client instead of obtaining it from the packet headers, allowing information hiding. |
| CVE-2006-1126 | PHP application uses IP address from X-Forwarded-For HTTP header, instead of REMOTE\_ADDR. |

## Real CVEs with this weakness (sample of 12 of 104)

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2026-48772 | ProxySQL: PROXY-Protocol-v1 UNKNOWN parses spoofed source IP, bypassing mysql\_query\_rules.client\_addr ACL | critical | 10.0 | - | No | 2026-06-19 |
| CVE-2022-31813 | mod\_proxy X-Forwarded-For dropped by hop-by-hop mechanism | critical | 9.8 | - | No | 2022-06-08 |
| CVE-2026-93483 | - | critical | 9.5 | - | No | 2026-10-15 |
| CVE-2026-58122 | Hermes WebUI \< 0.51.307 Authentication Bypass via X-Forwarded-For Header Spoofing | critical | 9.3 | - | No | 2026-07-09 |
| CVE-2026-97404 | zaqar: OpenStack Zaqar: authentication bypass via empty URL-Signature header | critical | 9.2 | - | No | 2026-09-24 |
| CVE-2025-59951 | Termix' official Docker image contains an authentication bypass vulnerability | critical | 9.2 | - | No | 2025-10-01 |
| CVE-2026-16272 | Client IP Spoofing via Untrusted HTTP Headers in PayTR's PayTR Virtual Pos iFrame API WHMCS Module | critical | 9.1 | - | No | 2026-09-09 |
| CVE-2026-12249 | Canonical ADSys Trust Store Poisoning via Plaintext HTTP Certificate Auto-Enrollment | critical | 9.0 | - | No | 2026-06-22 |
| CVE-2026-9561 | - | high | 8.8 | - | No | 2026-07-14 |
| CVE-2024-27773 | Unitronics Unistream Unilogic – Versions prior to 1.35.227 CWE-348: Use of Less Trusted Source | high | 8.8 | - | No | 2024-03-18 |
| CVE-2026-22311 | Use of a less trusted source leading to denial of service by lockout in JTL-Shop | high | 8.7 | - | No | 2026-11-19 |
| CVE-2026-130748 | Grav from 2.0.0 before 2.2.18 Password Reset Poisoning via CloudFront-Forwarded-Proto | high | 8.7 | - | No | 2026-11-18 |

## Related attack patterns (CAPEC)

- [CAPEC-141](https://radicalnotion.ai/capec/capec-141): Cache Poisoning
- [CAPEC-142](https://radicalnotion.ai/capec/capec-142): DNS Cache Poisoning
- [CAPEC-73](https://radicalnotion.ai/capec/capec-73): User-Controlled Filename
- [CAPEC-76](https://radicalnotion.ai/capec/capec-76): Manipulating Web Input to File System Calls
- [CAPEC-85](https://radicalnotion.ai/capec/capec-85): AJAX Footprinting

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-345](https://radicalnotion.ai/cwe/cwe-345) | Insufficient Verification of Data Authenticity |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| PLOVER | Use of Less Trusted Source | - | - |

## Frequently asked questions

### What is CWE-348?

The product has two different sources of the same data or information, but it uses the source that has less support for verification, is less trusted, or is less resistant to attack.

### What CVEs are caused by CWE-348?

104 recorded CVEs are attributed to CWE-348, including CVE-2026-48772, CVE-2022-31813 and CVE-2026-93483.

### What are the consequences of CWE-348?

Exploiting CWE-348 can lead to: Bypass Protection Mechanism, Gain Privileges or Assume Identity.

### Is CWE-348 actively exploited?

104 recorded CVEs are caused by CWE-348; none are currently in CISA's KEV catalog of actively exploited flaws.

Primary source: [MITRE CWE](https://cwe.mitre.org/data/definitions/348.html)

---

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