Common Weakness Enumeration

CWE-538

Weakness Allowed

Insertion of Sensitive Information into Externally-Accessible File or Directory

Abstraction: Base · Status: Draft

The product places sensitive information into files or directories that are accessible to actors who are allowed to have access to the files, but not to the sensitive information.

Mapping guidance

This CWE entry is at the Base 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.

Relationships and members
ChildOf: CWE-200 · View CWE-1000
Modes of introduction
Implementation

OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase.

Operation

OMISSION: This weakness is caused by missing a security tactic during the architecture and design phase.

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

Notes

Maintenance

Depending on usage, this could be a weakness or a category. Further study of all its children is needed, and the entire sub-tree may need to be clarified. The current organization is based primarily on the exposure of sensitive information as a consequence, instead of as a primary weakness.

Maintenance

There is a close relationship with CWE-552, which is more focused on weaknesses. As a result, it may be more appropriate to convert CWE-538 to a category.

Content history
Submission: CWE Community · 2006-07-19 · CWE Draft 3

Submitted by members of the CWE community to extend early CWE versions

Modification: Eric Dalci · Cigital · 2008-07-01 · CWE 1.0

updated Potential_Mitigations, Time_of_Introduction

Modification: CWE Content Team · MITRE · 2008-09-08 · CWE 1.0

updated Relationships, Type

Modification: CWE Content Team · MITRE · 2009-12-28 · CWE 1.7

updated Description, Maintenance_Notes, Name

Modification: · Veracode · 2010-09-09 · CWE 1.10

Suggested OWASP Top Ten mapping

Modification: CWE Content Team · MITRE · 2010-09-27 · CWE 1.10

updated Relationships

Modification: CWE Content Team · MITRE · 2011-06-01 · CWE 1.13

updated Common_Consequences

Modification: CWE Content Team · MITRE · 2012-05-11 · CWE 2.2

updated References, Related_Attack_Patterns, Relationships

Modification: CWE Content Team · MITRE · 2012-10-30 · CWE 2.3

updated Potential_Mitigations

Modification: CWE Content Team · MITRE · 2013-02-21 · CWE 2.4

updated Relationships

Modification: CWE Content Team · MITRE · 2014-07-30 · CWE 2.8

updated Relationships

Modification: CWE Content Team · MITRE · 2015-12-07 · CWE 2.9

updated Relationships

Modification: CWE Content Team · MITRE · 2017-05-03 · CWE 2.11

updated Related_Attack_Patterns

Modification: CWE Content Team · MITRE · 2017-11-08 · CWE 3.0

updated Applicable_Platforms, Modes_of_Introduction, Relationships

Modification: CWE Content Team · MITRE · 2019-06-20 · CWE 3.3

updated Relationships

Modification: CWE Content Team · MITRE · 2020-02-24 · CWE 4.0

updated Description, Name, Relationships

Modification: CWE Content Team · MITRE · 2021-10-28 · CWE 4.6

updated Relationships

Modification: CWE Content Team · MITRE · 2023-04-27 · CWE 4.11

updated Detection_Factors, Relationships

Modification: CWE Content Team · MITRE · 2023-06-29 · CWE 4.12

updated Mapping_Notes

Modification: CWE Content Team · MITRE · 2023-10-26 · CWE 4.13

updated Demonstrative_Examples, Observed_Examples

Modification: CWE Content Team · MITRE · 2025-12-11 · CWE 4.19

updated Relationships, Weakness_Ordinalities

206 vulnerabilities reference this CWE, most recent first.

GHSA-RH59-VGH2-8M84

Vulnerability from github – Published: 2025-01-07 18:30 – Updated: 2026-04-01 18:33
VLAI
Details

Insertion of Sensitive Information into Externally-Accessible File or Directory vulnerability in Link Whisper Link Whisper Free.This issue affects Link Whisper Free: from n/a through 0.7.7.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2025-22306"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-01-07T17:15:32Z",
    "severity": "MODERATE"
  },
  "details": "Insertion of Sensitive Information into Externally-Accessible File or Directory vulnerability in Link Whisper Link Whisper Free.This issue affects Link Whisper Free: from n/a through 0.7.7.",
  "id": "GHSA-rh59-vgh2-8m84",
  "modified": "2026-04-01T18:33:05Z",
  "published": "2025-01-07T18:30:52Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-22306"
    },
    {
      "type": "WEB",
      "url": "https://patchstack.com/database/wordpress/plugin/link-whisper/vulnerability/wordpress-link-whisper-free-plugin-0-7-7-sensitive-data-exposure-vulnerability?_s_id=cve"
    }
  ],
  "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-RM97-X556-Q36H

Vulnerability from github – Published: 2024-02-24 06:30 – Updated: 2024-08-28 21:58
VLAI
Summary
sanitize-html Information Exposure vulnerability
Details

Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "npm",
        "name": "sanitize-html"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "2.12.1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2024-21501"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-200",
      "CWE-538"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2024-03-01T16:55:53Z",
    "nvd_published_at": "2024-02-24T05:15:44Z",
    "severity": "MODERATE"
  },
  "details": "Versions of the package sanitize-html before 2.12.1 are vulnerable to Information Exposure when used on the backend and with the style attribute allowed, allowing enumeration of files in the system (including project dependencies). An attacker could exploit this vulnerability to gather details about the file system structure and dependencies of the targeted server.",
  "id": "GHSA-rm97-x556-q36h",
  "modified": "2024-08-28T21:58:16Z",
  "published": "2024-02-24T06:30:17Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-21501"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apostrophecms/sanitize-html/pull/650"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apostrophecms/sanitize-html/commit/c5dbdf77fe8b836d3bf4554ea39edb45281ec0b4"
    },
    {
      "type": "WEB",
      "url": "https://gist.github.com/Slonser/8b4d061abe6ee1b2e10c7242987674cf"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apostrophecms/apostrophe/discussions/4436"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/apostrophecms/sanitize-html"
    },
    {
      "type": "WEB",
      "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/4EB5JPYRCTS64EA5AMV3INHDPI6I4AW7"
    },
    {
      "type": "WEB",
      "url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/P4I5X6V3LYUNBMZ5YOW4BV427TH3IK4S"
    },
    {
      "type": "WEB",
      "url": "https://security.snyk.io/vuln/SNYK-JAVA-ORGWEBJARSNPM-6276557"
    },
    {
      "type": "WEB",
      "url": "https://security.snyk.io/vuln/SNYK-JS-SANITIZEHTML-6256334"
    }
  ],
  "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"
    }
  ],
  "summary": "sanitize-html Information Exposure vulnerability"
}

GHSA-VJQC-8HQX-GPV2

Vulnerability from github – Published: 2022-05-24 16:52 – Updated: 2024-04-04 01:28
VLAI
Details

cPanel before 70.0.23 exposes Apache HTTP Server logs after creation of certain domains (SEC-406).

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2018-20932"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2019-08-01T16:15:00Z",
    "severity": "MODERATE"
  },
  "details": "cPanel before 70.0.23 exposes Apache HTTP Server logs after creation of certain domains (SEC-406).",
  "id": "GHSA-vjqc-8hqx-gpv2",
  "modified": "2024-04-04T01:28:37Z",
  "published": "2022-05-24T16:52:09Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-20932"
    },
    {
      "type": "WEB",
      "url": "https://documentation.cpanel.net/display/CL/70+Change+Log"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:H/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-VX85-MJ8C-4QM6

Vulnerability from github – Published: 2019-01-17 13:56 – Updated: 2023-09-11 18:30
VLAI
Summary
Apache Thrift Node.js static web server sandbox escape
Details

The Apache Thrift Node.js static web server in versions 0.9.2 through 0.11.0 have been determined to contain a security vulnerability in which a remote user has the ability to access files outside the set webservers docroot path.

Show details on source website

{
  "affected": [
    {
      "package": {
        "ecosystem": "Maven",
        "name": "org.apache.thrift:libthrift"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0.9.2"
            },
            {
              "fixed": "0.12.0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2018-11798"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2020-06-16T21:58:46Z",
    "nvd_published_at": null,
    "severity": "MODERATE"
  },
  "details": "The Apache Thrift Node.js static web server in versions 0.9.2 through 0.11.0 have been determined to contain a security vulnerability in which a remote user has the ability to access files outside the set webservers docroot path.",
  "id": "GHSA-vx85-mj8c-4qm6",
  "modified": "2023-09-11T18:30:27Z",
  "published": "2019-01-17T13:56:33Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-11798"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apache/thrift/pull/1606"
    },
    {
      "type": "WEB",
      "url": "https://github.com/apache/thrift/commit/2a2b72f6c8aef200ecee4984f011e06052288ff2"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2019:1545"
    },
    {
      "type": "WEB",
      "url": "https://access.redhat.com/errata/RHSA-2019:3140"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-vx85-mj8c-4qm6"
    },
    {
      "type": "WEB",
      "url": "https://issues.apache.org/jira/browse/THRIFT-4647"
    },
    {
      "type": "WEB",
      "url": "https://lists.apache.org/thread.html/6e9edd282684896cedf615fb67a02bebfe6007f2d5baf03ba52e34fd@%3Cuser.thrift.apache.org%3E"
    },
    {
      "type": "WEB",
      "url": "https://web.archive.org/web/20200227094236/http://www.securityfocus.com/bid/106501"
    },
    {
      "type": "WEB",
      "url": "https://www.oracle.com/technetwork/security-advisory/cpuoct2019-5072832.html"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ],
  "summary": "Apache Thrift Node.js static web server sandbox escape"
}

GHSA-VXF2-8CQ4-X49Q

Vulnerability from github – Published: 2026-04-12 15:30 – Updated: 2026-04-12 15:30
VLAI
Details

Across DR-810 contains an unauthenticated file disclosure vulnerability that allows remote attackers to download the rom-0 backup file containing sensitive information by sending a simple GET request. Attackers can access the rom-0 endpoint without authentication to retrieve and decompress the backup file, exposing router passwords and other sensitive configuration data.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2019-25706"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-04-12T13:16:33Z",
    "severity": "HIGH"
  },
  "details": "Across DR-810 contains an unauthenticated file disclosure vulnerability that allows remote attackers to download the rom-0 backup file containing sensitive information by sending a simple GET request. Attackers can access the rom-0 endpoint without authentication to retrieve and decompress the backup file, exposing router passwords and other sensitive configuration data.",
  "id": "GHSA-vxf2-8cq4-x49q",
  "modified": "2026-04-12T15:30:26Z",
  "published": "2026-04-12T15:30:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2019-25706"
    },
    {
      "type": "WEB",
      "url": "https://www.exploit-db.com/exploits/46132"
    },
    {
      "type": "WEB",
      "url": "https://www.vulncheck.com/advisories/across-dr-810-rom-0-unauthenticated-file-disclosure"
    },
    {
      "type": "WEB",
      "url": "http://www.ac.i8i.ir"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    },
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/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-W2X4-H6C7-M6MH

Vulnerability from github – Published: 2025-10-27 21:30 – Updated: 2025-10-27 21:30
VLAI
Details

Dell SupportAssist OS Recovery, versions prior to 5.5.15.0, contain an Insertion of Sensitive Information into Externally-Accessible File or Directory vulnerability. A low privileged attacker with local access could potentially exploit this vulnerability, leading to Information exposure.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2025-46602"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-10-27T19:16:03Z",
    "severity": "MODERATE"
  },
  "details": "Dell SupportAssist OS Recovery, versions prior to 5.5.15.0, contain an Insertion of Sensitive Information into Externally-Accessible File or Directory vulnerability. A low privileged attacker with local access could potentially exploit this vulnerability, leading to Information exposure.",
  "id": "GHSA-w2x4-h6c7-m6mh",
  "modified": "2025-10-27T21:30:27Z",
  "published": "2025-10-27T21:30:27Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2025-46602"
    },
    {
      "type": "WEB",
      "url": "https://www.dell.com/support/kbdoc/en-us/000382443/dsa-2025-403"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-W5HH-GH28-CPPG

Vulnerability from github – Published: 2025-01-10 18:31 – Updated: 2025-01-10 18:31
VLAI
Details

During MegaBIP installation process, a user is encouraged to change a default path to administrative portal, as keeping it secret is listed by the author as one of the protection mechanisms.  Publicly available source code of "/registered.php" discloses that path, allowing an attacker to attempt further attacks.  

This issue affects MegaBIP software versions below 5.15

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2024-6880"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2025-01-10T18:15:26Z",
    "severity": "MODERATE"
  },
  "details": "During MegaBIP installation process, a user is encouraged to change a default path to administrative portal, as keeping it secret is listed by the author as one of the protection mechanisms.\u00a0\nPublicly available source code of \"/registered.php\" discloses that path, allowing an attacker to attempt further attacks.\u00a0\u00a0\n\nThis issue affects MegaBIP software versions below 5.15",
  "id": "GHSA-w5hh-gh28-cppg",
  "modified": "2025-01-10T18:31:41Z",
  "published": "2025-01-10T18:31:41Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-6880"
    },
    {
      "type": "WEB",
      "url": "https://cert.pl/en/posts/2024/09/CVE-2024-6680"
    },
    {
      "type": "WEB",
      "url": "https://megabip.pl"
    },
    {
      "type": "WEB",
      "url": "https://www.gov.pl/web/cyfryzacja/rekomendacja-pelnomocnika-rzadu-ds-cyberbezpieczenstwa-dotyczaca-biuletynow-informacji-publicznej"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "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-W674-VQHW-G3PG

Vulnerability from github – Published: 2026-11-19 23:47 – Updated: 2026-11-19 23:47
VLAI
Summary
NLTK: StreamBackedCorpusView constructor os.stat leaks out-of-root file existence, size, and mtime bypassing pathsec ENFORCE
Details

Summary

StreamBackedCorpusView, a public API in nltk/corpus/reader/util.py, applies the pathsec sandbox to the file content it reads but not to the file metadata it probes in its constructor. When the view is created with a plain string fileid, __init__ calls os.stat(self._fileid).st_size with no pathsec validation, so an application that passes an attacker influenced path to the constructor discloses whether an arbitrary out of root file exists and, if it does, its exact byte size and modification time, even when nltk.pathsec.ENFORCE is True. This is the residual metadata channel left open by the fix for CVE-2026-63312 (GHSA-x5ph-mj9p-rfr8), which closed arbitrary content read on the same code path but did not bring the sibling os.stat under the sandbox.

Root Cause

The pathsec sandbox is intended to confine all NLTK filesystem access to allowed data roots. The fix for CVE-2026-63312 enforced this for content reads by routing StreamBackedCorpusView._open through nltk.pathsec.open (_secure_open). The constructor, however, computes the end of file position eagerly, and on the non PathPointer branch it stats the caller supplied path directly. The PathPointer branch is validated (it calls PathPointer.file_size()), but the plain string branch reaches os.stat with no validate_path, _secure_open, or required_root check. The security invariant "no filesystem access outside allowed roots under ENFORCE" is therefore violated for the metadata channel: os.stat is filesystem access, and it is performed on the same untrusted string entry point that the content read fix protected.

Affected component: nltk.corpus.reader.util.StreamBackedCorpusView.__init__
Sink:   nltk/corpus/reader/util.py, os.stat(self._fileid).st_size on the plain-string branch
Guarded sibling: _open() (routes through nltk.pathsec.open); the constructor os.stat is not guarded

Impact

An attacker who can influence the fileid string passed to StreamBackedCorpusView(...) (the same attacker model under which CVE-2026-63312 was published for content read) obtains a filesystem oracle that operates across the process visible filesystem regardless of the pathsec data roots and with ENFORCE=True:

  • Existence: a present path returns a size; a missing path raises ValueError whose message embeds the underlying OS error, so ENOENT, EACCES, and ENOTDIR are distinguishable, adding a permission and type probe.
  • Exact size: st_size of the target file is exposed (demonstrated below: 1850 for /etc/passwd, matching the real size).
  • Modification time: st_mtime is available from the same stat result.

File content is not disclosed: iterating the view still routes through the sandboxed open and is refused. The demonstrated capability is therefore metadata only (existence, exact size, mtime, and error class discrimination). Reachability is application conditional: in tree corpus readers construct views from validated PathPointer objects and take the guarded branch, so exploitation requires application code that hands an attacker influenced string directly to the public constructor, which is the same condition accepted for the original content read advisory.

Proof of Concept

Requires nltk 3.10.0 through 3.10.3 installed (the pathsec-hardened line). No non-default configuration; pathsec ENFORCE defaults to True. Reproduced against the published PyPI sdist nltk==3.10.3.

  1. Construct the public corpus view with an out of root path string.
  2. Read the eagerly computed _eofpos (the leaked size) without iterating the view.
  3. Observe that iterating the view (which would read content) is blocked by the sandbox.
import os
import nltk.pathsec as ps
from nltk.corpus.reader.util import StreamBackedCorpusView as V

print("ENFORCE", ps.ENFORCE)                       # True (default)

v = V("/etc/passwd", lambda s: [s.read()])
print("size leaked", v._eofpos, "real", os.stat("/etc/passwd").st_size)

try:
    "".join(list(v))                                # attempt content read
except Exception as e:
    print("content blocked", type(e).__name__)
ENFORCE True
size leaked 1850 real 1850
content blocked PermissionError    # Security Violation [pathsec.open]: Unauthorized path /etc/passwd

A nonexistent path instead raises ValueError: Unable to open or access '/etc/nonexistent_xyz' -- [Errno 2] No such file or directory, providing the existence and error class oracle.

Attack Chain

  1. Exposure: An application constructs StreamBackedCorpusView(fileid, block_reader) where fileid is an attacker influenced string. The constructor is documented public API and its docstring accepts a bare string. The sandbox ships enabled (ENFORCE=True) by default.
  2. Control: The attacker controls the full path string stored as self._fileid; no parsing or normalization removes it.
  3. Path: In __init__, isinstance(self._fileid, PathPointer) is False for a plain string, so control falls to the else branch and reaches os.stat(self._fileid) with no intervening validation.
  4. Guard: None on the string branch before the stat. The pathsec routing that protects content lives only in _open; ENFORCE never gates the constructor stat.
  5. Primitive: os.stat on an arbitrary path yields existence, exact st_size, st_mtime, and, on failure, an error class that discriminates missing, permission denied, and not a directory.
  6. Result: A file existence, size, and mtime oracle across the process visible filesystem that crosses the pathsec containment boundary. Content read remains blocked, so impact is confined to metadata disclosure.

Bypass Evidence

The relevant guard is the CVE-2026-63312 (GHSA-x5ph-mj9p-rfr8) fix, which routed StreamBackedCorpusView._open through nltk.pathsec.open to block arbitrary content read. Comparison of published PyPI sdists shows the _open routing first appears in 3.10.0 (nltk.pathsec.open is imported and used) and is absent in 3.9.4, while the constructor os.stat(self._fileid).st_size is present unchanged across 3.9.4 through 3.10.3. The fix therefore addressed the content sink but left the sibling metadata sink in the same function unguarded.

Attempts to invalidate the finding and their outcomes: - Duplicate of the content read advisory: refuted. Iterating the view is refused with a pathsec PermissionError on 3.10.0 through 3.10.3, so the disclosed content primitive is closed; only the metadata channel survives, a distinct impact class (information exposure rather than content read). - Guarded by pathsec anyway: refuted. Source inspection of the constructor shows no validate_path, _secure_open, or required_root before os.stat on the string branch, and the leak reproduces live with ENFORCE=True. - Not reachable: partially valid and reflected above. In tree readers pass validated PathPointer objects and never hit the string branch; reaching the sink requires application code that passes an attacker influenced string to the public constructor. That is the same reachability condition under which the content read advisory was accepted, so it narrows but does not defeat the finding. - Defense in depth only, not a boundary crossing: refuted. The pathsec design confines file access to allowed roots; os.stat on /etc/passwd is out of root file access performed on the same untrusted entry point the fix protected.

Affected Versions

  • Ecosystem: PyPI
  • Package: nltk
  • Confirmed affected range: >= 3.10.0, <= 3.10.3
  • Latest release checked: 3.10.3 (PyPI, resolved and downloaded as the source sdist)
  • Fix status: not fixed

The pathsec sandbox and the constructor os.stat both exist from 3.9.4, but the CVE-2026-63312 content read fix that this finding is a residual gap of first ships in 3.10.0; the metadata oracle that survives that fix is therefore scoped to 3.10.0 through the latest release 3.10.3, all verified by inspecting the exact published PyPI sdists. No fixed release exists as of the latest published version. Version 3.9.4 carries the unguarded os.stat too but predates the content read fix, so it is outside the scope of this incomplete fix report and is already covered by the broader content read exposure of that line.

Suggested Fix

Enforce the pathsec containment invariant on the metadata read as well as the content read. In StreamBackedCorpusView.__init__, validate the string fileid before calling os.stat (for example run it through nltk.pathsec.validate_path with the same context and root policy used by nltk.pathsec.open), or defer the end of file size computation so it is derived only from a successfully pathsec validated open. The remediation must cover the plain string branch specifically, since the PathPointer branch is already validated, and should preserve the existing ValueError on genuine access errors without leaking a distinguishing OS error class for out of root paths. No configuration only mitigation fully closes the gap because ENFORCE=True is already the default and does not gate the constructor stat; until a fix is available, applications should avoid passing untrusted path strings to StreamBackedCorpusView and should wrap fileids in a validated PathPointer.

Reported by zx (GitHub: @manus-pi).

Fix status (2026-09-28)

Status: IN PROGRESS (fix on an open pull request, not yet on develop).

PR: #3888 "Validate chat80.sql_query dbname for path containment (CWE-59/73)", open; head e0e890f51 at the time of this note.

Fix commits: 68434c042 "Enforce corpus-root containment in YCOE reader and StreamBackedCorpusView" and 2c563b13f "Defer the corpus-view refusal to _open" (the constructor no longer calls os.stat on the path; the containment check runs when the view is opened).

No probe. Regression test on the PR: nltk/test/unit/test_ycoe_streamview_pathsec.py (13 passed on the PR head e0e890f51). The advisory PoC re-run on that head: StreamBackedCorpusView("/etc/passwd", ...) constructs with _eofpos None (no size leaked), and len() or iteration is refused with PermissionError (Security Violation [pathsec.open]); a nonexistent out-of-root path behaves identically at construction and on read, so the existence oracle is closed too. On develop 2fa3f48fe the object is constructed and _eofpos equals the real file size, so develop is still VULNERABLE.

Release: none.

Show details on source website

{
  "affected": [
    {
      "database_specific": {
        "last_known_affected_version_range": "\u003c= 3.10.3"
      },
      "package": {
        "ecosystem": "PyPI",
        "name": "nltk"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "3.10.0"
            },
            {
              "fixed": "3.10.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "aliases": [
    "CVE-2026-129233"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-200",
      "CWE-538"
    ],
    "github_reviewed": true,
    "github_reviewed_at": "2026-11-19T23:47:58Z",
    "nvd_published_at": "2026-11-19T18:18:08Z",
    "severity": "MODERATE"
  },
  "details": "## Summary\n\n`StreamBackedCorpusView`, a public API in `nltk/corpus/reader/util.py`, applies the pathsec sandbox to the file content it reads but not to the file metadata it probes in its constructor. When the view is created with a plain string fileid, `__init__` calls `os.stat(self._fileid).st_size` with no pathsec validation, so an application that passes an attacker influenced path to the constructor discloses whether an arbitrary out of root file exists and, if it does, its exact byte size and modification time, even when `nltk.pathsec.ENFORCE` is `True`. This is the residual metadata channel left open by the fix for CVE-2026-63312 (GHSA-x5ph-mj9p-rfr8), which closed arbitrary content read on the same code path but did not bring the sibling `os.stat` under the sandbox.\n\n## Root Cause\n\nThe pathsec sandbox is intended to confine all NLTK filesystem access to allowed data roots. The fix for CVE-2026-63312 enforced this for content reads by routing `StreamBackedCorpusView._open` through `nltk.pathsec.open` (`_secure_open`). The constructor, however, computes the end of file position eagerly, and on the non `PathPointer` branch it stats the caller supplied path directly. The `PathPointer` branch is validated (it calls `PathPointer.file_size()`), but the plain string branch reaches `os.stat` with no `validate_path`, `_secure_open`, or `required_root` check. The security invariant \"no filesystem access outside allowed roots under ENFORCE\" is therefore violated for the metadata channel: `os.stat` is filesystem access, and it is performed on the same untrusted string entry point that the content read fix protected.\n\n```text\nAffected component: nltk.corpus.reader.util.StreamBackedCorpusView.__init__\nSink:   nltk/corpus/reader/util.py, os.stat(self._fileid).st_size on the plain-string branch\nGuarded sibling: _open() (routes through nltk.pathsec.open); the constructor os.stat is not guarded\n```\n\n## Impact\n\nAn attacker who can influence the fileid string passed to `StreamBackedCorpusView(...)` (the same attacker model under which CVE-2026-63312 was published for content read) obtains a filesystem oracle that operates across the process visible filesystem regardless of the pathsec data roots and with `ENFORCE=True`:\n\n- Existence: a present path returns a size; a missing path raises `ValueError` whose message embeds the underlying OS error, so ENOENT, EACCES, and ENOTDIR are distinguishable, adding a permission and type probe.\n- Exact size: `st_size` of the target file is exposed (demonstrated below: `1850` for `/etc/passwd`, matching the real size).\n- Modification time: `st_mtime` is available from the same stat result.\n\nFile content is not disclosed: iterating the view still routes through the sandboxed open and is refused. The demonstrated capability is therefore metadata only (existence, exact size, mtime, and error class discrimination). Reachability is application conditional: in tree corpus readers construct views from validated `PathPointer` objects and take the guarded branch, so exploitation requires application code that hands an attacker influenced string directly to the public constructor, which is the same condition accepted for the original content read advisory.\n\n## Proof of Concept\n\n`Requires nltk 3.10.0 through 3.10.3 installed (the pathsec-hardened line). No non-default configuration; pathsec ENFORCE defaults to True. Reproduced against the published PyPI sdist nltk==3.10.3.`\n\n1. Construct the public corpus view with an out of root path string.\n2. Read the eagerly computed `_eofpos` (the leaked size) without iterating the view.\n3. Observe that iterating the view (which would read content) is blocked by the sandbox.\n\n```python\nimport os\nimport nltk.pathsec as ps\nfrom nltk.corpus.reader.util import StreamBackedCorpusView as V\n\nprint(\"ENFORCE\", ps.ENFORCE)                       # True (default)\n\nv = V(\"/etc/passwd\", lambda s: [s.read()])\nprint(\"size leaked\", v._eofpos, \"real\", os.stat(\"/etc/passwd\").st_size)\n\ntry:\n    \"\".join(list(v))                                # attempt content read\nexcept Exception as e:\n    print(\"content blocked\", type(e).__name__)\n```\n\n```text\nENFORCE True\nsize leaked 1850 real 1850\ncontent blocked PermissionError    # Security Violation [pathsec.open]: Unauthorized path /etc/passwd\n```\n\nA nonexistent path instead raises `ValueError: Unable to open or access \u0027/etc/nonexistent_xyz\u0027 -- [Errno 2] No such file or directory`, providing the existence and error class oracle.\n\n## Attack Chain\n\n1. **Exposure:** An application constructs `StreamBackedCorpusView(fileid, block_reader)` where `fileid` is an attacker influenced string. The constructor is documented public API and its docstring accepts a bare string. The sandbox ships enabled (`ENFORCE=True`) by default.\n2. **Control:** The attacker controls the full path string stored as `self._fileid`; no parsing or normalization removes it.\n3. **Path:** In `__init__`, `isinstance(self._fileid, PathPointer)` is False for a plain string, so control falls to the else branch and reaches `os.stat(self._fileid)` with no intervening validation.\n4. **Guard:** None on the string branch before the stat. The pathsec routing that protects content lives only in `_open`; `ENFORCE` never gates the constructor stat.\n5. **Primitive:** `os.stat` on an arbitrary path yields existence, exact `st_size`, `st_mtime`, and, on failure, an error class that discriminates missing, permission denied, and not a directory.\n6. **Result:** A file existence, size, and mtime oracle across the process visible filesystem that crosses the pathsec containment boundary. Content read remains blocked, so impact is confined to metadata disclosure.\n\n## Bypass Evidence\n\nThe relevant guard is the CVE-2026-63312 (GHSA-x5ph-mj9p-rfr8) fix, which routed `StreamBackedCorpusView._open` through `nltk.pathsec.open` to block arbitrary content read. Comparison of published PyPI sdists shows the `_open` routing first appears in 3.10.0 (`nltk.pathsec.open` is imported and used) and is absent in 3.9.4, while the constructor `os.stat(self._fileid).st_size` is present unchanged across 3.9.4 through 3.10.3. The fix therefore addressed the content sink but left the sibling metadata sink in the same function unguarded.\n\nAttempts to invalidate the finding and their outcomes:\n- Duplicate of the content read advisory: refuted. Iterating the view is refused with a pathsec `PermissionError` on 3.10.0 through 3.10.3, so the disclosed content primitive is closed; only the metadata channel survives, a distinct impact class (information exposure rather than content read).\n- Guarded by pathsec anyway: refuted. Source inspection of the constructor shows no `validate_path`, `_secure_open`, or `required_root` before `os.stat` on the string branch, and the leak reproduces live with `ENFORCE=True`.\n- Not reachable: partially valid and reflected above. In tree readers pass validated `PathPointer` objects and never hit the string branch; reaching the sink requires application code that passes an attacker influenced string to the public constructor. That is the same reachability condition under which the content read advisory was accepted, so it narrows but does not defeat the finding.\n- Defense in depth only, not a boundary crossing: refuted. The pathsec design confines file access to allowed roots; `os.stat` on `/etc/passwd` is out of root file access performed on the same untrusted entry point the fix protected.\n\n## Affected Versions\n\n- `Ecosystem: PyPI`\n- `Package: nltk`\n- `Confirmed affected range: \u003e= 3.10.0, \u003c= 3.10.3`\n- `Latest release checked: 3.10.3 (PyPI, resolved and downloaded as the source sdist)`\n- `Fix status: not fixed`\n\nThe pathsec sandbox and the constructor `os.stat` both exist from 3.9.4, but the CVE-2026-63312 content read fix that this finding is a residual gap of first ships in 3.10.0; the metadata oracle that survives that fix is therefore scoped to 3.10.0 through the latest release 3.10.3, all verified by inspecting the exact published PyPI sdists. No fixed release exists as of the latest published version. Version 3.9.4 carries the unguarded `os.stat` too but predates the content read fix, so it is outside the scope of this incomplete fix report and is already covered by the broader content read exposure of that line.\n\n## Suggested Fix\n\nEnforce the pathsec containment invariant on the metadata read as well as the content read. In `StreamBackedCorpusView.__init__`, validate the string fileid before calling `os.stat` (for example run it through `nltk.pathsec.validate_path` with the same context and root policy used by `nltk.pathsec.open`), or defer the end of file size computation so it is derived only from a successfully pathsec validated open. The remediation must cover the plain string branch specifically, since the `PathPointer` branch is already validated, and should preserve the existing `ValueError` on genuine access errors without leaking a distinguishing OS error class for out of root paths. No configuration only mitigation fully closes the gap because `ENFORCE=True` is already the default and does not gate the constructor stat; until a fix is available, applications should avoid passing untrusted path strings to `StreamBackedCorpusView` and should wrap fileids in a validated `PathPointer`.\n\nReported by zx (GitHub: @manus-pi).\n\n## Fix status (2026-09-28)\n\nStatus: IN PROGRESS (fix on an open pull request, not yet on develop).\n\nPR: #3888 \"Validate chat80.sql_query dbname for path containment (CWE-59/73)\", open; head e0e890f51 at the time of this note.\n\nFix commits: 68434c042 \"Enforce corpus-root containment in YCOE reader and StreamBackedCorpusView\" and 2c563b13f \"Defer the corpus-view refusal to _open\" (the constructor no longer calls os.stat on the path; the containment check runs when the view is opened).\n\nNo probe. Regression test on the PR: nltk/test/unit/test_ycoe_streamview_pathsec.py (13 passed on the PR head e0e890f51). The advisory PoC re-run on that head: StreamBackedCorpusView(\"/etc/passwd\", ...) constructs with _eofpos None (no size leaked), and len() or iteration is refused with PermissionError (Security Violation [pathsec.open]); a nonexistent out-of-root path behaves identically at construction and on read, so the existence oracle is closed too. On develop 2fa3f48fe the object is constructed and _eofpos equals the real file size, so develop is still VULNERABLE.\n\nRelease: none.",
  "id": "GHSA-w674-vqhw-g3pg",
  "modified": "2026-11-19T23:47:58Z",
  "published": "2026-11-19T23:47:58Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://github.com/nltk/nltk/security/advisories/GHSA-w674-vqhw-g3pg"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-129233"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nltk/nltk/pull/3888"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nltk/nltk/commit/2c563b13f9dce7c15eefd4b03463e1b69b64f1f3"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nltk/nltk/commit/68434c0427f8d296f3adfddb518525038d1f7bfa"
    },
    {
      "type": "PACKAGE",
      "url": "https://github.com/nltk/nltk"
    },
    {
      "type": "WEB",
      "url": "https://github.com/nltk/nltk/releases/tag/v3.10.4"
    }
  ],
  "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"
    }
  ],
  "summary": "NLTK: StreamBackedCorpusView constructor os.stat leaks out-of-root file existence, size, and mtime bypassing pathsec ENFORCE"
}

GHSA-W9J7-W28P-W5PQ

Vulnerability from github – Published: 2022-05-14 01:57 – Updated: 2022-05-14 01:57
VLAI
Details

Wisetail Learning Ecosystem (LE) through v4.11.6 allows insecure direct object reference (IDOR) attacks to download non-purchased course files via a modified id parameter.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2018-16970"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2018-09-12T20:29:00Z",
    "severity": "MODERATE"
  },
  "details": "Wisetail Learning Ecosystem (LE) through v4.11.6 allows insecure direct object reference (IDOR) attacks to download non-purchased course files via a modified id parameter.",
  "id": "GHSA-w9j7-w28p-w5pq",
  "modified": "2022-05-14T01:57:32Z",
  "published": "2022-05-14T01:57:32Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2018-16970"
    },
    {
      "type": "WEB",
      "url": "https://blog.ziaurrashid.com/wisetail-learning-ecosystem-multiple-idor-vunlerability"
    }
  ],
  "schema_version": "1.4.0",
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N",
      "type": "CVSS_V3"
    }
  ]
}

GHSA-W9R4-6F5Q-P5H9

Vulnerability from github – Published: 2024-01-02 21:30 – Updated: 2024-01-02 21:30
VLAI
Details

A vulnerability was found in RRJ Nueva Ecija Engineer Online Portal 1.0. It has been classified as problematic. Affected is an unknown function of the file /admin/uploads/. The manipulation leads to file and directory information exposure. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-249504.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2024-0191"
  ],
  "database_specific": {
    "cwe_ids": [
      "CWE-538"
    ],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2024-01-02T20:15:10Z",
    "severity": "MODERATE"
  },
  "details": "A vulnerability was found in RRJ Nueva Ecija Engineer Online Portal 1.0. It has been classified as problematic. Affected is an unknown function of the file /admin/uploads/. The manipulation leads to file and directory information exposure. It is possible to launch the attack remotely. The exploit has been disclosed to the public and may be used. The identifier of this vulnerability is VDB-249504.",
  "id": "GHSA-w9r4-6f5q-p5h9",
  "modified": "2024-01-02T21:30:26Z",
  "published": "2024-01-02T21:30:26Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-0191"
    },
    {
      "type": "WEB",
      "url": "https://mega.nz/file/uZt00bIA#uqwP2WkWK5kbKOUbRrgbZY4_-4enuhFw5O9LtJ_cclY"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?ctiid.249504"
    },
    {
      "type": "WEB",
      "url": "https://vuldb.com/?id.249504"
    }
  ],
  "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"
    }
  ]
}

Mitigation
Architecture and Design Operation System Configuration

Do not expose file and directory information to the user.

CAPEC-95: WSDL Scanning

This attack targets the WSDL interface made available by a web service. The attacker may scan the WSDL interface to reveal sensitive information about invocation patterns, underlying technology implementations and associated vulnerabilities. This type of probing is carried out to perform more serious attacks (e.g. parameter tampering, malicious content injection, command injection, etc.). WSDL files provide detailed information about the services ports and bindings available to consumers. For instance, the attacker can submit special characters or malicious content to the Web service and can cause a denial of service condition or illegal access to database records. In addition, the attacker may try to guess other private methods by using the information provided in the WSDL files.