Publish GHSA-hc5w-c9f8-9cc4

This commit is contained in:
advisory-database[bot]
2024-10-29 19:41:35 +00:00
parent f4e8f4b24e
commit 2570d1b238
@@ -1,20 +1,43 @@
{
"schema_version": "1.4.0",
"id": "GHSA-hc5w-c9f8-9cc4",
"modified": "2024-10-29T15:32:05Z",
"modified": "2024-10-29T19:40:07Z",
"published": "2024-10-29T15:32:05Z",
"aliases": [
"CVE-2024-7774"
],
"summary": "Langchain Path Traversal vulnerability",
"details": "A path traversal vulnerability exists in the `getFullPath` method of langchain-ai/langchainjs version 0.2.5. This vulnerability allows attackers to save files anywhere in the filesystem, overwrite existing text files, read `.txt` files, and delete files. The vulnerability is exploited through the `setFileContent`, `getParsedFile`, and `mdelete` methods, which do not properly sanitize user input.",
"severity": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
},
{
"type": "CVSS_V4",
"score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
}
],
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "langchain"
},
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "0.2.19"
}
]
}
]
}
],
"references": [
{
@@ -25,6 +48,10 @@
"type": "WEB",
"url": "https://github.com/langchain-ai/langchainjs/commit/a0fad77d6b569e5872bd4a9d33be0c0785e538a9"
},
{
"type": "PACKAGE",
"url": "https://github.com/langchain-ai/langchainjs"
},
{
"type": "WEB",
"url": "https://huntr.com/bounties/8fe40685-b714-4191-af7a-3de5e5628cee"
@@ -35,8 +62,8 @@
"CWE-29"
],
"severity": "MODERATE",
"github_reviewed": false,
"github_reviewed_at": null,
"github_reviewed": true,
"github_reviewed_at": "2024-10-29T19:40:07Z",
"nvd_published_at": "2024-10-29T13:15:09Z"
}
}