CWE-31
AllowedPath Traversal: 'dir\..\..\filename'
Abstraction: Variant · Status: Draft
The product uses external input to construct a pathname that should be within a restricted directory, but it does not properly neutralize 'dir\..\..\filename' (multiple internal backslash dot dot) sequences that can resolve to a location that is outside of that directory.
8 vulnerabilities reference this CWE, most recent first.
GHSA-5JQC-QJ57-4HRC
Vulnerability from github – Published: 2024-06-04 21:32 – Updated: 2024-06-11 19:29Jan v0.4.12 was discovered to contain an arbitrary file read vulnerability via the /v1/app/readFileSync interface.
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "@janhq/core"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "0.1.11"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-36857"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-31"
],
"github_reviewed": true,
"github_reviewed_at": "2024-06-11T19:29:48Z",
"nvd_published_at": "2024-06-04T19:20:14Z",
"severity": "HIGH"
},
"details": "Jan v0.4.12 was discovered to contain an arbitrary file read vulnerability via the /v1/app/readFileSync interface.",
"id": "GHSA-5jqc-qj57-4hrc",
"modified": "2024-06-11T19:29:48Z",
"published": "2024-06-04T21:32:20Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-36857"
},
{
"type": "WEB",
"url": "https://github.com/HackAllSec/CVEs/tree/main/Jan%20AFR%20vulnerability"
},
{
"type": "PACKAGE",
"url": "https://github.com/janhq/jan"
}
],
"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"
}
],
"summary": "Jan path traversal vulnerability"
}
GHSA-6W5Q-79RF-7C49
Vulnerability from github – Published: 2024-02-28 06:30 – Updated: 2025-01-21 22:37Webtrees 2.1.18 is vulnerable to Directory Traversal. By manipulating the "media_folder" parameter in the URL, an attacker (in this case, an administrator) can navigate beyond the intended directory (the 'media/' directory) to access sensitive files in other parts of the application's file system.
{
"affected": [
{
"package": {
"ecosystem": "Packagist",
"name": "fisharebest/webtrees"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"last_affected": "2.1.18"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-22723"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-31"
],
"github_reviewed": true,
"github_reviewed_at": "2024-08-02T16:04:10Z",
"nvd_published_at": "2024-02-28T06:15:49Z",
"severity": "MODERATE"
},
"details": "Webtrees 2.1.18 is vulnerable to Directory Traversal. By manipulating the \"media_folder\" parameter in the URL, an attacker (in this case, an administrator) can navigate beyond the intended directory (the \u0027media/\u0027 directory) to access sensitive files in other parts of the application\u0027s file system.",
"id": "GHSA-6w5q-79rf-7c49",
"modified": "2025-01-21T22:37:20Z",
"published": "2024-02-28T06:30:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-22723"
},
{
"type": "WEB",
"url": "https://cupc4k3.medium.com/cve-2024-22723-webtrees-vulnerability-uncovering-sensitive-data-through-path-traversal-7442e7a38b68"
},
{
"type": "PACKAGE",
"url": "https://github.com/fisharebest/webtrees"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:H/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N",
"type": "CVSS_V4"
}
],
"summary": "Webtrees Path Traversal vulnerability"
}
GHSA-7H45-VV72-9V3P
Vulnerability from github – Published: 2024-03-08 03:31 – Updated: 2024-08-01 15:31RAD SecFlow-2 devices with Hardware 0202, Firmware 4.1.01.63, and U-Boot 2010.12 allow URIs beginning with /.. for Directory Traversal, as demonstrated by reading /etc/shadow.
{
"affected": [],
"aliases": [
"CVE-2019-6268"
],
"database_specific": {
"cwe_ids": [
"CWE-31"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-03-08T02:15:47Z",
"severity": "HIGH"
},
"details": "RAD SecFlow-2 devices with Hardware 0202, Firmware 4.1.01.63, and U-Boot 2010.12 allow URIs beginning with /.. for Directory Traversal, as demonstrated by reading /etc/shadow.",
"id": "GHSA-7h45-vv72-9v3p",
"modified": "2024-08-01T15:31:31Z",
"published": "2024-03-08T03:31:24Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-6268"
},
{
"type": "WEB",
"url": "https://packetstormsecurity.com/files/177440/RAD-SecFlow-2-Path-Traversal.html"
},
{
"type": "WEB",
"url": "https://www.owasp.org/index.php/Path_Traversal"
}
],
"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"
}
]
}
GHSA-8694-9WWJ-RVPH
Vulnerability from github – Published: 2024-08-05 18:31 – Updated: 2024-08-05 21:31dzzoffice 2.02.1 is vulnerable to Directory Traversal via user/space/about.php.
{
"affected": [],
"aliases": [
"CVE-2024-41376"
],
"database_specific": {
"cwe_ids": [
"CWE-31"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-08-05T17:15:41Z",
"severity": "HIGH"
},
"details": "dzzoffice 2.02.1 is vulnerable to Directory Traversal via user/space/about.php.",
"id": "GHSA-8694-9wwj-rvph",
"modified": "2024-08-05T21:31:19Z",
"published": "2024-08-05T18:31:43Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-41376"
},
{
"type": "WEB",
"url": "https://github.com/zyx0814/dzzoffice/issues/252"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-9JMQ-68M9-2X2J
Vulnerability from github – Published: 2024-02-27 18:31 – Updated: 2024-08-23 21:30In the module "Account Manager | Sales Representative & Dealers | CRM" (prestasalesmanager) up to 9.0 from Presta World for PrestaShop, a guest can download personal information without restriction by performing a path traversal attack.
{
"affected": [],
"aliases": [
"CVE-2024-25840"
],
"database_specific": {
"cwe_ids": [
"CWE-31"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-02-27T17:15:12Z",
"severity": "HIGH"
},
"details": "In the module \"Account Manager | Sales Representative \u0026 Dealers | CRM\" (prestasalesmanager) up to 9.0 from Presta World for PrestaShop, a guest can download personal information without restriction by performing a path traversal attack.",
"id": "GHSA-9jmq-68m9-2x2j",
"modified": "2024-08-23T21:30:41Z",
"published": "2024-02-27T18:31:02Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-25840"
},
{
"type": "WEB",
"url": "https://addons.prestashop.com/en/third-party-data-integrations-crm-erp/90816-account-manager-sales-representative-dealers-crm.html"
},
{
"type": "WEB",
"url": "https://security.friendsofpresta.org/modules/2024/02/27/prestasalesmanager.html"
}
],
"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"
}
]
}
GHSA-HGHH-938V-WFFR
Vulnerability from github – Published: 2024-04-19 03:31 – Updated: 2025-05-06 18:30A Path Traversal vulnerability in web component of Ivanti Avalanche before 6.4.3 allows a remote authenticated attacker to execute arbitrary commands as SYSTEM.
{
"affected": [],
"aliases": [
"CVE-2024-24998"
],
"database_specific": {
"cwe_ids": [
"CWE-31"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-04-19T02:15:09Z",
"severity": "HIGH"
},
"details": "A Path Traversal vulnerability in web component of Ivanti Avalanche before 6.4.3 allows a remote authenticated attacker to execute arbitrary commands as SYSTEM.",
"id": "GHSA-hghh-938v-wffr",
"modified": "2025-05-06T18:30:31Z",
"published": "2024-04-19T03:31:03Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-24998"
},
{
"type": "WEB",
"url": "https://forums.ivanti.com/s/article/Avalanche-6-4-3-Security-Hardening-and-CVEs-addressed?language=en_US"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-HWRP-V8FJ-7P9X
Vulnerability from github – Published: 2024-06-13 18:31 – Updated: 2024-08-01 15:31A Directory Traversal vulnerability in Modern Campus - Omni CMS 2023.1 allows a remote, unauthenticated attacker to enumerate file system information via the dir parameter to listing.php or rss.php.
{
"affected": [],
"aliases": [
"CVE-2023-35860"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-31"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-06-13T16:15:10Z",
"severity": "MODERATE"
},
"details": "A Directory Traversal vulnerability in Modern Campus - Omni CMS 2023.1 allows a remote, unauthenticated attacker to enumerate file system information via the dir parameter to listing.php or rss.php.",
"id": "GHSA-hwrp-v8fj-7p9x",
"modified": "2024-08-01T15:31:48Z",
"published": "2024-06-13T18:31:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-35860"
},
{
"type": "WEB",
"url": "https://lp.constantcontactpages.com/cu/c2nSB5D/moderncampuscve"
}
],
"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-RJ98-CRF4-G69W
Vulnerability from github – Published: 2024-03-07 21:30 – Updated: 2025-02-13 19:08pgAdmin prior to version 8.4 is affected by a path-traversal vulnerability while deserializing users’ sessions in the session handling code. If the server is running on Windows, an unauthenticated attacker can load and deserialize remote pickle objects and gain code execution. If the server is running on POSIX/Linux, an authenticated attacker can upload pickle objects, deserialize them and gain code execution.
{
"affected": [
{
"package": {
"ecosystem": "PyPI",
"name": "pgAdmin4"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "8.4"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2024-2044"
],
"database_specific": {
"cwe_ids": [
"CWE-22",
"CWE-31",
"CWE-502"
],
"github_reviewed": true,
"github_reviewed_at": "2024-03-07T22:39:27Z",
"nvd_published_at": "2024-03-07T21:15:08Z",
"severity": "CRITICAL"
},
"details": "pgAdmin prior to version 8.4 is affected by a path-traversal vulnerability while deserializing users\u2019 sessions in the session handling code. If the server is running on Windows, an unauthenticated attacker can load and deserialize remote pickle objects and gain code execution. If the server is running on POSIX/Linux, an authenticated attacker can upload pickle objects, deserialize them and gain code execution.",
"id": "GHSA-rj98-crf4-g69w",
"modified": "2025-02-13T19:08:34Z",
"published": "2024-03-07T21:30:22Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2024-2044"
},
{
"type": "WEB",
"url": "https://github.com/pgadmin-org/pgadmin4/issues/7258"
},
{
"type": "WEB",
"url": "https://github.com/pgadmin-org/pgadmin4/commit/4e49d752fba72953acceeb7f4aa2e6e32d25853d"
},
{
"type": "PACKAGE",
"url": "https://github.com/pgadmin-org/pgadmin4"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/LUYN2JXKKHFSVTASH344TBRGWDH64XQV"
},
{
"type": "WEB",
"url": "https://www.shielder.com/advisories/pgadmin-path-traversal_leads_to_unsafe_deserialization_and_rce"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H",
"type": "CVSS_V3"
},
{
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H",
"type": "CVSS_V4"
}
],
"summary": "pgAdmin 4 vulnerable to Unsafe Deserialization and Remote Code Execution by an Authenticated user"
}
Mitigation MIT-5.1
Strategy: Input Validation
- Assume all input is malicious. Use an "accept known good" input validation strategy, i.e., use a list of acceptable inputs that strictly conform to specifications. Reject any input that does not strictly conform to specifications, or transform it into something that does.
- When performing input validation, consider all potentially relevant properties, including length, type of input, the full range of acceptable values, missing or extra inputs, syntax, consistency across related fields, and conformance to business rules. As an example of business rule logic, "boat" may be syntactically valid because it only contains alphanumeric characters, but it is not valid if the input is only expected to contain colors such as "red" or "blue."
- Do not rely exclusively on looking for malicious or malformed inputs. This is likely to miss at least one undesirable input, especially if the code's environment changes. This can give attackers enough room to bypass the intended validation. However, denylists can be useful for detecting potential attacks or determining which inputs are so malformed that they should be rejected outright.
- When validating filenames, use stringent allowlists that limit the character set to be used. If feasible, only allow a single "." character in the filename to avoid weaknesses such as CWE-23, and exclude directory separators such as "/" to avoid CWE-36. Use a list of allowable file extensions, which will help to avoid CWE-434.
- Do not rely exclusively on a filtering mechanism that removes potentially dangerous characters. This is equivalent to a denylist, which may be incomplete (CWE-184). For example, filtering "/" is insufficient protection if the filesystem also supports the use of "\" as a directory separator. Another possible error could occur when the filtering is applied in a way that still produces dangerous data (CWE-182). For example, if "../" sequences are removed from the ".../...//" string in a sequential fashion, two instances of "../" would be removed from the original string, but the remaining characters would still form the "../" string.
Mitigation MIT-20
Strategy: Input Validation
Inputs should be decoded and canonicalized to the application's current internal representation before being validated (CWE-180). Make sure that the application does not decode the same input twice (CWE-174). Such errors could be used to bypass allowlist validation schemes by introducing dangerous inputs after they have been checked.
No CAPEC attack patterns related to this CWE.