CWEweakness
CWE-527 Exposure of Version-Control Repository to an Unauthorized Control Sphere
- Abstraction
- Variant
- Structure
- Simple
- Status
- Incomplete
- Languages
- Not Language-Specific
- CWE version
- 5.0
Description
The product stores a CVS, git, or other source-control repository in a directory, archive, or other resource that is stored, transferred, or otherwise made accessible to unauthorized actors.
Extended description
Version control repositories such as CVS or git store version-specific metadata and other details within subdirectories. If these subdirectories are stored on a web server or added to an archive, then these could be used by an attacker. This information may include usernames, filenames, path root, IP addresses, and detailed "diff" data about how files have been changed - which could reveal source code snippets that were never intended to be made public.
Common consequences
• Confidentiality: Read Application Data, Read Files or Directories
Potential mitigations
• [Operation, Distribution, System Configuration] Recommendations include removing any CVS directories and repositories from the production server, disabling the use of remote CVS repositories, and ensuring that the latest CVS patches and version updates have been performed.
Related
Child of · CWE (1)
- CWE-552 Files or Directories Accessible to External Parties weakness
Referenced by CVE · weakness (4)
- CVE-2026-109326 Grav before 2.1.7 contains an information disclosure vulnerability because bundled nginx, lighttpd, IIS, and Caddy 2 configurations block… vulnerability
- CVE-2026-84149 This vulnerability exists in the ERP system due to exposure of repository information through a publicly accessible .git directory. vulnerability
- CVE-2022-20931 A vulnerability in the version control of Cisco TelePresence CE Software for Cisco Touch 10 Devices could allow an… vulnerability
- CVE-2021-21423 `projen` is a project generation tool that synthesizes project configuration files such as `package.json`, `tsconfig.json`, `.gitignore`,… vulnerability