PT-2022-26047

CVE-2022-41720

·

تاريخ النشر

2022-12-07

·

تاريخ التحديث

2026-10-30

الوصف من

CVSS 3.1
7.5
عالية
المقاييسAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N
Name of the Vulnerable Software and Affected Versions Go versions prior to the fixed version
Description The issue allows restricted files to be accessed via os.DirFS and http.Dir on Windows. These functions provide access to a tree of files rooted at a given directory and permit access to Windows device files under that root. For example, os.DirFS("C:/tmp").Open("COM1") opens the COM1 device. Both os.DirFS and http.Dir only provide read-only filesystem access. Additionally, on Windows, an os.DirFS for the directory (the root of the current drive) can permit a maliciously crafted path to escape from the drive and access any path on the system. The behavior of os.DirFS("") has changed with the fix applied, previously treating an empty root equivalently to "/", and now returning an error.
Recommendations For Go versions prior to the fixed version, consider applying the fix to change the behavior of os.DirFS("") to return an error instead of treating it equivalently to "/". As a temporary workaround, restrict the use of os.DirFS and http.Dir to minimize the risk of exploitation. Avoid using os.DirFS with empty roots or maliciously crafted paths until the issue is resolved.
قابلية الاستغلال
استغلال
إصلاح
التأثيرات
الباحثون
المورّدون
المنتجات المتأثرة
المعرّفات ذات الصلة
ALT-PU-2022-3297
ALT-PU-2022-3300
ALT-PU-2023-1205
ALT-PU-2023-1323
ALT-PU-2023-4785
AZL-79038
AZL-98604
BIT-GOLANG-2022-41720
CLEANSTART-2024-YM34458
GO-2022-1143
OPENSUSE-SU-2022_4397-1
OPENSUSE-SU-2022_4398-1
OPENSUSE-SU-2024:12552-1
OPENSUSE-SU-2024:12553-1
SUSE-SU-2022:4397-1
SUSE-SU-2022:4398-1
SUSE-SU-2023:0871-1
SUSE-SU-2023_0871-1
SUSE-SU-2023:2312-1
وجدت خطأً في الوصف؟ لديك ما تضيفه؟ لا تتردد في مراسلتنا 👾