CWE-548
Weakness AllowedExposure of Information Through Directory Listing
Abstraction: Variant · Status: Draft
The product inappropriately exposes a directory listing with an index of all the resources located inside of the directory.
Mapping guidance
This CWE entry is at the Variant level of abstraction, which is a preferred level of abstraction for mapping to the root causes of vulnerabilities.
Carefully read both the name and description to ensure that this mapping is an appropriate fit. Do not try to 'force' a mapping to a lower-level Base/Variant simply to comply with this preferred level of abstraction.
Modes of introduction
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
Content history
updated Time_of_Introduction
Suggested OWASP Top Ten 2004 mapping
updated Relationships, Other_Notes, Taxonomy_Mappings
updated Other_Notes
updated Description, Other_Notes
updated Common_Consequences, Description
updated Taxonomy_Mappings
updated Name
updated Common_Consequences
updated Relationships
updated Potential_Mitigations
updated Relationships
updated Relationships
updated Taxonomy_Mappings
updated Relationships
updated Name, Relationships
updated Relationships
updated Detection_Factors, Relationships
updated Mapping_Notes
updated Description, Diagram, References
updated Applicable_Platforms, Relationships, Weakness_Ordinalities
updated Observed_Examples
113 vulnerabilities reference this CWE, most recent first.
GHSA-2GP2-MFG4-Q5MV
Vulnerability from github – Published: 2026-02-17 21:31 – Updated: 2026-02-17 21:31IBM Cloud Pak System 2.3.3.6, 2.3.3.7, 2.3.4.0, 2.3.4.1, and 2.3.5.0 could disclose folder location information to an unauthenticated attacker that could aid in further attacks against the system.
{
"affected": [],
"aliases": [
"CVE-2023-38265"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-02-17T20:22:00Z",
"severity": "MODERATE"
},
"details": "IBM Cloud Pak System 2.3.3.6, 2.3.3.7, 2.3.4.0, 2.3.4.1, and 2.3.5.0 could disclose folder location information to an unauthenticated attacker that could aid in further attacks against the system.",
"id": "GHSA-2gp2-mfg4-q5mv",
"modified": "2026-02-17T21:31:14Z",
"published": "2026-02-17T21:31:14Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-38265"
},
{
"type": "WEB",
"url": "https://www.ibm.com/support/pages/node/7259955"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-2X5M-6JX4-JR66
Vulnerability from github – Published: 2022-05-24 19:20 – Updated: 2022-05-24 19:20Dell EMC PowerScale OneFS versions 9.1.0, 9.2.0.x, 9.2.1.x contain an Exposure of Information through Directory Listing vulnerability. This vulnerability is triggered when upgrading from a previous versions.
{
"affected": [],
"aliases": [
"CVE-2021-21528"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2021-11-12T23:15:00Z",
"severity": "HIGH"
},
"details": "Dell EMC PowerScale OneFS versions 9.1.0, 9.2.0.x, 9.2.1.x contain an Exposure of Information through Directory Listing vulnerability. This vulnerability is triggered when upgrading from a previous versions.",
"id": "GHSA-2x5m-6jx4-jr66",
"modified": "2022-05-24T19:20:37Z",
"published": "2022-05-24T19:20:37Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-21528"
},
{
"type": "WEB",
"url": "https://www.dell.com/support/kbdoc/en-us/000193005"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-36HM-C9F8-F8XC
Vulnerability from github – Published: 2026-06-05 15:32 – Updated: 2026-06-05 15:32Lyrion Music Server 9.2.0 contains an arbitrary directory listing vulnerability in its readdirectory query, exposed through both the CLI service (TCP port 9090) and the HTTP JSON-RPC endpoint (/jsonrpc.js). The query accepts a folder parameter and lists its contents with no restriction to the configured media directories and no authentication in the default configuration, allowing a remote, unauthenticated attacker to enumerate arbitrary locations on the host filesystem.
{
"affected": [],
"aliases": [
"CVE-2026-50233"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-06-05T14:16:36Z",
"severity": "MODERATE"
},
"details": "Lyrion Music Server 9.2.0 contains an arbitrary directory listing vulnerability in its readdirectory query, exposed through both the CLI service (TCP port 9090) and the HTTP JSON-RPC endpoint (/jsonrpc.js). The query accepts a folder parameter and lists its contents with no restriction to the configured media directories and no authentication in the default configuration, allowing a remote, unauthenticated attacker to enumerate arbitrary locations on the host filesystem.",
"id": "GHSA-36hm-c9f8-f8xc",
"modified": "2026-06-05T15:32:25Z",
"published": "2026-06-05T15:32:25Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-50233"
},
{
"type": "WEB",
"url": "https://www.vulncheck.com/advisories/lyrion-music-server-arbitrary-directory-listing"
},
{
"type": "WEB",
"url": "https://www.zeroscience.mk/en/vulnerabilities/ZSL-2026-5991.php"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-37J3-6WGH-2Q48
Vulnerability from github – Published: 2026-11-03 21:32 – Updated: 2026-11-03 21:32A flaw was found in the image-customization-controller used in OpenShift's bare metal provisioning stack. The controller registers an HTTP file server on port 8084 with no authentication. The custom imageFileSystem implementation exposes a browsable HTML directory listing of all registered images at the root path. The only access control on per-host images is the random UUID filename; the directory listing discloses those UUIDs to any caller on the provisioning network. Each served image embeds an Ignition config containing the base64-encoded cluster pull secret, optional IRONIC_RAMDISK_SSH_KEY, proxy settings, and per-host NetworkManager keyfiles. An adjacent network attacker can enumerate all image UUIDs via directory listing, download any image, extract the embedded Ignition config, and recover the cluster pull secret and SSH key.
Evidence
pkg/imagehandler/imagefilesystem.go — root directory is browsable and enumerates all UUID image names
func (f *imageFileSystem) Readdir(n int) ([]fs.FileInfo, error) {
f.mu.Lock()
defer f.mu.Unlock()
result := []fs.FileInfo{}
for _, im := range f.images {
result = append(result, im)
}
return result, nil
}
func (f *imageFileSystem) Open(name string) (http.File, error) {
f.log.Info("Open", "path", name)
if name == "/" {
return f, nil
}
...
cmd/controller/main.go — file server bound on all interfaces without auth or TLS
http.Handle("/", http.FileServer(imageServer.FileSystem()))
go func() {
server := &http.Server{
Addr: imagesBindAddr, // default ":8084"
ReadHeaderTimeout: 5 * time.Second,
}
err := server.ListenAndServe()
pkg/ignition/service_config.go:94-100 — pull secret is embedded in every served image
func (b *ignitionBuilder) authFile() ignition_config_types_32.File {
source := "data:;base64," + strings.TrimSpace(b.ironicAgentPullSecret)
return ignition_config_types_32.File{
Node: ignition_config_types_32.Node{Path: "/etc/authfile.json"},
...
Attack Pattern
Adjacent provisioning-network client → GET / lists UUID image names → download ISO/initramfs → extract embedded Ignition → recover cluster pull secret and SSH key.
{
"affected": [],
"aliases": [
"CVE-2026-82976"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-11-03T19:18:10Z",
"severity": "HIGH"
},
"details": "A flaw was found in the image-customization-controller used in OpenShift\u0027s bare metal provisioning stack. The controller registers an HTTP file server on port 8084 with no authentication. The custom imageFileSystem implementation exposes a browsable HTML directory listing of all registered images at the root path. The only access control on per-host images is the random UUID filename; the directory listing discloses those UUIDs to any caller on the provisioning network. Each served image embeds an Ignition config containing the base64-encoded cluster pull secret, optional IRONIC_RAMDISK_SSH_KEY, proxy settings, and per-host NetworkManager keyfiles. An adjacent network attacker can enumerate all image UUIDs via directory listing, download any image, extract the embedded Ignition config, and recover the cluster pull secret and SSH key.\n\n### Evidence\n**pkg/imagehandler/imagefilesystem.go \u2014 root directory is browsable and enumerates all UUID image names**\n```go\nfunc (f *imageFileSystem) Readdir(n int) ([]fs.FileInfo, error) {\n f.mu.Lock()\n defer f.mu.Unlock()\n result := []fs.FileInfo{}\n for _, im := range f.images {\n result = append(result, im)\n }\n return result, nil\n}\n\nfunc (f *imageFileSystem) Open(name string) (http.File, error) {\n f.log.Info(\"Open\", \"path\", name)\n if name == \"/\" {\n return f, nil\n }\n ...\n```\n\n**cmd/controller/main.go \u2014 file server bound on all interfaces without auth or TLS**\n```go\nhttp.Handle(\"/\", http.FileServer(imageServer.FileSystem()))\n\ngo func() {\n server := \u0026http.Server{\n Addr: imagesBindAddr, // default \":8084\"\n ReadHeaderTimeout: 5 * time.Second,\n }\n err := server.ListenAndServe()\n```\n\n**pkg/ignition/service_config.go:94-100 \u2014 pull secret is embedded in every served image**\n```go\nfunc (b *ignitionBuilder) authFile() ignition_config_types_32.File {\n source := \"data:;base64,\" + strings.TrimSpace(b.ironicAgentPullSecret)\n return ignition_config_types_32.File{\n Node: ignition_config_types_32.Node{Path: \"/etc/authfile.json\"},\n ...\n```\n\n### Attack Pattern\nAdjacent provisioning-network client \u2192 GET / lists UUID image names \u2192 download ISO/initramfs \u2192 extract embedded Ignition \u2192 recover cluster pull secret and SSH key.",
"id": "GHSA-37j3-6wgh-2q48",
"modified": "2026-11-03T21:32:12Z",
"published": "2026-11-03T21:32:12Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-82976"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2026-82976"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2526334"
},
{
"type": "WEB",
"url": "https://github.com/openshift/image-customization-controller"
},
{
"type": "WEB",
"url": "https://redhat.atlassian.net/browse/OCPBUGS-105396"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:A/AC:L/PR:N/UI:N/S:U/C:H/I:L/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-3P7Q-RQJ4-RF3G
Vulnerability from github – Published: 2025-10-14 15:31 – Updated: 2025-10-14 15:31IBM Content Navigator 3.0.11, 3.0.15, 3.1.0, and 3.2.0 could expose the directory listing of the application upon using an application URL. Application files and folders are visible in the browser to a user; however, the contents of the files cannot be read obtained or modified.
{
"affected": [],
"aliases": [
"CVE-2025-27906"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-10-14T15:16:08Z",
"severity": "MODERATE"
},
"details": "IBM Content Navigator 3.0.11, 3.0.15, 3.1.0, and 3.2.0 could expose the directory listing of the application upon using an application URL. Application files and folders are visible in the browser to a user; however, the contents of the files cannot be read obtained or modified.",
"id": "GHSA-3p7q-rqj4-rf3g",
"modified": "2025-10-14T15:31:27Z",
"published": "2025-10-14T15:31:27Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-27906"
},
{
"type": "WEB",
"url": "https://www.ibm.com/support/pages/node/7247854"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-3PJ2-86G9-6MF7
Vulnerability from github – Published: 2024-09-05 18:30 – Updated: 2024-09-05 18:30IBM Aspera Faspex 5.0.0 through 5.0.9 could allow a user with access to the package to obtain sensitive information through a directory listing.
{
"affected": [],
"aliases": [
"CVE-2024-45096"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-09-05T16:15:07Z",
"severity": "MODERATE"
},
"details": "IBM Aspera Faspex 5.0.0 through 5.0.9 could allow a user with access to the package to obtain sensitive information through a directory listing.",
"id": "GHSA-3pj2-86g9-6mf7",
"modified": "2024-09-05T18:30:56Z",
"published": "2024-09-05T18:30:56Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-45096"
},
{
"type": "WEB",
"url": "https://www.ibm.com/support/pages/node/7167255"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
}
]
}
GHSA-42JJ-4CC5-RM9V
Vulnerability from github – Published: 2025-05-16 21:32 – Updated: 2025-05-16 21:32A vulnerability, which was classified as problematic, was found in SourceCodester Online Student Clearance System 1.0. This affects an unknown part. The manipulation leads to exposure of information through directory listing. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.
{
"affected": [],
"aliases": [
"CVE-2025-4807"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2025-05-16T20:15:22Z",
"severity": "MODERATE"
},
"details": "A vulnerability, which was classified as problematic, was found in SourceCodester Online Student Clearance System 1.0. This affects an unknown part. The manipulation leads to exposure of information through directory listing. It is possible to initiate the attack remotely. The exploit has been disclosed to the public and may be used.",
"id": "GHSA-42jj-4cc5-rm9v",
"modified": "2025-05-16T21:32:12Z",
"published": "2025-05-16T21:32:12Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2025-4807"
},
{
"type": "WEB",
"url": "https://github.com/laifeng-boy/cve/issues/2"
},
{
"type": "WEB",
"url": "https://vuldb.com/?ctiid.309261"
},
{
"type": "WEB",
"url": "https://vuldb.com/?id.309261"
},
{
"type": "WEB",
"url": "https://vuldb.com/?submit.572238"
},
{
"type": "WEB",
"url": "https://www.sourcecodester.com"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:N/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X",
"type": "CVSS_V4"
}
]
}
GHSA-45J8-PM75-5V8X
Vulnerability from github – Published: 2019-02-07 18:18 – Updated: 2020-08-31 18:42Versions of simplehttpserver prior to 0.2.1 are vulnerable to Path Traversal. Due to insufficient input sanitization, attackers can access server files by using relative paths.
Recommendation
Upgrade to version 0.2.1 or later.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "static-resource-server"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "1.7.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2018-16493"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": true,
"github_reviewed_at": "2020-06-16T20:57:24Z",
"nvd_published_at": null,
"severity": "HIGH"
},
"details": "Versions of `simplehttpserver` prior to 0.2.1 are vulnerable to Path Traversal. Due to insufficient input sanitization, attackers can access server files by using relative paths. \n\n\n## Recommendation\n\nUpgrade to version 0.2.1 or later.",
"id": "GHSA-45j8-pm75-5v8x",
"modified": "2020-08-31T18:42:22Z",
"published": "2019-02-07T18:18:04Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16493"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/357109"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/432600"
},
{
"type": "ADVISORY",
"url": "https://github.com/advisories/GHSA-45j8-pm75-5v8x"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/967"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/968"
}
],
"schema_version": "1.4.0",
"severity": [],
"summary": "Path Traversal in simplehttpserver"
}
GHSA-46HV-7769-J7RX
Vulnerability from github – Published: 2019-06-13 16:12 – Updated: 2023-09-07 21:43Affected versions of harp are vulnerable to Unauthorized File Access. The package states that it ignores files and directories with names that start with an underscore, such as _secret-folder. If the underscore character is URL encoded the server delivers the file.
Recommendation
Upgrade to version 0.40.2 or later.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "harp"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "0.40.2"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2019-5437"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": true,
"github_reviewed_at": "2019-06-13T16:10:40Z",
"nvd_published_at": null,
"severity": "MODERATE"
},
"details": "Affected versions of `harp` are vulnerable to Unauthorized File Access. The package states that it ignores files and directories with names that start with an underscore, such as `_secret-folder`. If the underscore character is URL encoded the server delivers the file.\n\n## Recommendation\n\nUpgrade to version `0.40.2` or later.",
"id": "GHSA-46hv-7769-j7rx",
"modified": "2023-09-07T21:43:42Z",
"published": "2019-06-13T16:12:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-5437"
},
{
"type": "WEB",
"url": "https://github.com/sintaxi/harp/commit/1ec790baeeb2bfdb4584f1998af3d10a8fa31210"
},
{
"type": "WEB",
"url": "https://hackerone.com/reports/453820"
},
{
"type": "WEB",
"url": "https://www.npmjs.com/advisories/807"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N",
"type": "CVSS_V3"
}
],
"summary": "Unauthorized File Access in harp"
}
GHSA-4H2P-C2MF-FQ35
Vulnerability from github – Published: 2022-05-24 19:07 – Updated: 2022-05-24 19:07QSAN Storage Manager through directory listing vulnerability in ViewBroserList allows remote authenticated attackers to list arbitrary directories via the file path parameter.
{
"affected": [],
"aliases": [
"CVE-2021-32511"
],
"database_specific": {
"cwe_ids": [
"CWE-548"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2021-07-07T14:15:00Z",
"severity": "MODERATE"
},
"details": "QSAN Storage Manager through directory listing vulnerability in ViewBroserList allows remote authenticated attackers to list arbitrary directories via the file path parameter.",
"id": "GHSA-4h2p-c2mf-fq35",
"modified": "2022-05-24T19:07:03Z",
"published": "2022-05-24T19:07:03Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2021-32511"
},
{
"type": "WEB",
"url": "https://www.twcert.org.tw/tw/cp-132-4867-9c11c-1.html"
}
],
"schema_version": "1.4.0",
"severity": []
}
Mitigation
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.
No CAPEC attack patterns related to this CWE.