---
title: "CWE-548: Exposure of Information Through Directory Listing"
url: https://radicalnotion.ai/cwe/cwe-548
type: cwe
description: "The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory."
updated: 2026-11-10
source: RadicalNotion.AI
license: CC BY-NC 4.0 (https://creativecommons.org/licenses/by-nc/4.0/)
---

# CWE-548: Exposure of Information Through Directory Listing

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

## Description

The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.

## Modes of introduction

| Phase | Note |
| --- | --- |
| Implementation | - |
| Operation | - |

## Common consequences

| Scope | Impact | Note |
| --- | --- | --- |
| Confidentiality | Read Files or Directories | Exposing the contents of a directory can lead to an attacker gaining access to source code or providing useful information for the attacker to devise exploits, such as creation times of files or any information that may be encoded in file names. The directory listing may also compromise private or confidential data. |

## Potential mitigations

### Architecture and Design, System Configuration

Recommendations include restricting access to important directories or files by adopting a need to know requirement for both the document and server root, and turning off features such as Automatic Directory Listings that could expose private files and provide information that could be utilized by an attacker when formulating or conducting an attack.

## Detection methods

### Automated Static Analysis

Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

Effectiveness: High

## Observed examples

| CVE | Description |
| --- | --- |
| CVE-2023-37599 | web interface is configured to allow directory listing of a module path |

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

| CVE | Title | Severity | CVSS | EPSS | CISA KEV | Published |
| --- | --- | --- | --- | --- | --- | --- |
| CVE-2021-47718 | OpenBMCS Directory Listing Information Disclosure | high | 8.7 | - | No | 2025-12-09 |
| CVE-2020-7858 | AquaNPlayer directory traversing vulnerability | high | 8.6 | - | No | 2021-04-22 |
| CVE-2020-8161 | Directory traversal in Rack::Directory app bundled with Rack | high | 8.6 | - | No | 2020-07-02 |
| CVE-2025-28170 | - | high | 7.6 | - | No | 2025-07-29 |
| CVE-2025-32750 | - | high | 7.5 | - | No | 2026-05-20 |
| CVE-2025-27452 | CVE-2025-27452 | high | 7.5 | - | No | 2025-07-03 |
| CVE-2025-45320 | - | high | 7.5 | - | No | 2025-05-05 |
| CVE-2024-28766 | IBM Security Directory Integrator information disclosure | high | 7.5 | - | No | 2025-01-27 |
| CVE-2023-7164 | BackWPup \< 4.0.4 - Unauthenticated Backup Download | high | 7.5 | - | No | 2024-04-08 |
| CVE-2024-22082 | - | high | 7.5 | - | No | 2024-03-20 |
| CVE-2023-49979 | - | high | 7.5 | - | No | 2024-03-06 |
| CVE-2023-51948 | - | high | 7.5 | - | No | 2024-01-19 |

## Related weaknesses

| Relationship | CWE | Name |
| --- | --- | --- |
| Parent | [CWE-497](https://radicalnotion.ai/cwe/cwe-497) | Exposure of Sensitive System Information to an Unauthorized Control Sphere |

## Taxonomy mappings

| Taxonomy | Entry | Id | Fit |
| --- | --- | --- | --- |
| OWASP Top Ten 2004 | Insecure Configuration Management | A10 | CWE More Specific |
| WASC | Directory Indexing | 16 | - |

## Frequently asked questions

### What is CWE-548?

The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.

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

66 recorded CVEs are attributed to CWE-548, including CVE-2021-47718, CVE-2020-7858 and CVE-2020-8161.

### Is CWE-548 part of the OWASP Top 10?

CWE-548 maps to OWASP Top Ten 2004: Insecure Configuration Management (A10) in the OWASP security taxonomy.

### How do you prevent CWE-548?

Recommendations include restricting access to important directories or files by adopting a need to know requirement for both the document and server root, and turning off features such as Automatic Directory Listings that could expose private files and provide information that could be utilized by an attacker when formulating or conducting an attack.

### How is CWE-548 detected?

Automated Static Analysis: Automated static analysis, commonly referred to as Static Application Security Testing (SAST), can find some instances of this weakness by analyzing source code (or binary/compiled code) without having to execute it. Typically, this is done by building a model of data flow and control flow, then searching for potentially-vulnerable patterns that connect "sources" (origins of input) with "sinks" (destinations where the data interacts with external components, a lower layer such as the OS, etc.)

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

Exploiting CWE-548 can lead to: Read Files or Directories.

### Is CWE-548 actively exploited?

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

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

---

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