ช่องโหว่ Path Traversal — CVE-2026-21605 (CVSS 8.7)
📋 สรุปช่องโหว่
ช่องโหว่ Path Traversal มี CVSS Score 8.7 ระดับ "สูง" ทำให้ผู้โจมตีสามารถอ่านไฟล์นอก directory ที่กำหนดได้ โดยใช้ ../../../ หรือ URL encoding เพื่อ traverse ขึ้นไปยัง directory ที่สูงกว่า
ช่องโหว่นี้อาจเปิดเผยไฟล์สำคัญเช่น /etc/passwd, wp-config.php หรือ .env ที่มี credentials สำคัญ
💥 ผลกระทบที่อาจเกิดขึ้น
ผลกระทบจาก Path Traversal:
• อ่าน Credentials: ดึง database password จาก wp-config.php หรือ .env
• อ่านไฟล์ระบบ: /etc/passwd, /etc/shadow, SSH keys
• ขโมย Source Code: อ่าน source code ของแอปพลิเคชัน
• ค้นหาช่องโหว่เพิ่มเติม: ใช้ข้อมูลจากไฟล์ config โจมตีต่อไป
🖥️ ซอฟต์แวร์และระบบที่ได้รับผลกระทบ
ตรวจสอบจาก https://nvd.nist.gov/vuln/detail/CVE-2026-21605
🔧 แนวทางการแก้ไขและป้องกัน
- ขั้นตอนแก้ไข:
- 1. อัพเดตทันที: อัพเดตเป็นเวอร์ชันที่แก้ไขแล้ว
- 2. Validate File Paths: ตรวจสอบและ normalize path ก่อนใช้งาน ใช้ realpath() และตรวจว่า path อยู่ใน allowed directory
- 3. ตรวจสอบ Log: ค้นหา request ที่มี ../ หรือ %2e%2e ใน access log
- 4. จำกัดสิทธิ์ไฟล์: ตั้งค่า file permission ให้ web server อ่านได้เฉพาะที่จำเป็น
- 5. เปลี่ยน Credentials: เปลี่ยนรหัสผ่านทั้งหมดหากสงสัยว่าถูกอ่านไปแล้ว
📄 รายละเอียดต้นฉบับ (ภาษาอังกฤษ)
This High severity Path Traversal (Arbitrary Read/Write) vulnerability known as CVE-2026-21605 was introduced in versions 2.0.0, 3.0.0, 4.0.0, 5.0.0, 6.0.1, 6.1.0, 6.2.0, 6.3.1, 6.4.0, 6.5.0, 6.6.0 ,6.7.0, 6.8.0, 6.9.0, 6.10.0, 6.11.0, 6.12.0, 6.13.0, 6.14.0, 6.15.1, 7.0.1, 7.1.0, 7.2.0, 7.3.1, 7.4.0, 7.5.0, 7.6.0, 7.7.2, 7.8.0, 7.9.0, 7.11.0, 7.12.0, 7.13.0, 7.14.0, 7.15.0, 7.16.0, 7.17.0, 7.18.0, 7.19.0, 7.20.0, 8.0.0, 8.1.0, 8.2.0, 8.3.0, 8.4.0, 8.5.0, 8.6.0, 8.7.1, 8.8.0, 8.9.0, 9.0.1, 9.1.0, 9.2.0, 9.3.1, 9.4.0, 9.5.1, 10.0.2, 10.1.0, 10.2.0, and 11.0.0 of Confluence Data Center. This Path Traversal (Arbitrary Read/Write) vulnerability, with a CVSS Score of 8.7 and a CVSS Vector of CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N allows an unauthenticated attacker to expose assets in your environment susceptible to exploitation, which has high impact to confidentiality, no impact to integrity, no impact to availability, and requires no user interaction. Atlassian recommends that Confluence Data Center and Server customers upgrade to the latest version. If you are unable to do so, upgrade your instance to one of the specified supported fixed versions: Confluence Data Center 11.0: Upgrade to a release greater than or equal to 11.0.1 Confluence Data Center 10.2: Upgrade to a release greater than or equal to 10.2.20 Confluence Data Center 9.2: Upgrade to a release greater than or equal to 9.2.27 See the release notes ([https://confluence.atlassian.com/doc/confluence-release-notes-327.html]). You can download the latest version of Confluence Data Center and Server from the download center ([https://www.atlassian.com/software/confluence/download-archives]). The following description summarizes the vulnerability reported internally: Confluence CssServlet forwards a request-controlled path to ServletRequest.getRequestDispatcher. The dispatcher URL-decodes and normalizes the path, allowing an unauthenticated attacker to use an encoded traversal sequence to access protected web application resources such as /WEB-INF/web.xml. The demonstrated impact is disclosure of protected files that may contain configuration or secrets; no integrity or availability impact was demonstrated.