CWE-35 or CWE-22? The Classification Split Around CVE-2026-85706
CWE-35 or CWE-22? The Classification Split Around CVE-2026-85706 Vulnerability overview The public records for CVE-2026-85706 do not agree on its weakness classification. NVD carries CWE-22, improper limitation of a pathname to a restricted directory, attributed to cve@gitlab.com as the assigning source. The CISA Known Exploited Vulnerabilities entry lists CWE-35, path traversal with the…
The CVE-2026-85706 vulnerability in GitLab has sparked debate over its classification between two Common Weakness Enumeration (CWE) codes: CWE-35 and CWE-22. The National Vulnerability Database (NVD) assigned CWE-22, indicating improper limitation of a pathname to a restricted directory. Conversely, the Cybersecurity and Infrastructure Security Agency (CISA) Known Exploited Vulnerabilities (KEV) catalog classified it under CWE-35, which refers to path traversal with trailing-dot variants.
The classification split exists because CWE-22 is a broader concept encompassing any improper path handling, while CWE-35 is a more specific subtype related to path traversal evasion techniques. The GitLab vulnerability description itself focuses on improper path confinement without specifying a particular evasion method, aligning with CWE-22. However, the underlying mechanism satisfies CWE-35's criteria, as the path traversal is achieved through a technique rather than a simple limitation failure.
For defenders, the classification distinction is significant. A CWE-22 rule would monitor for generic traversal sequence exploitation, while a CWE-35 rule would detect more specific patterns like the dot-heavy traversal attempts. GitLab's own detection mechanisms cover the broader CWE-22 class, and a parameter-level rule would address the narrower CWE-35 technique. Deploying only one of the two rules would leave a vulnerability detection gap.
The affected GitLab versions range from 18.7 before 18.11.12 to 19.3 before 19.3.2 in both Community and Enterprise Editions. Upgrading to the respective patched releases resolves the issue regardless of the chosen CWE classification. According to ZoomEye's asset search, there are 1,317,044 matching assets for the GitLab application, indicating a widespread exposure. No registry-scoped query for the CVE-2026-85706 identifier yielded results, suggesting limited current exploitation.
To effectively mitigate this vulnerability, organizations should address both CWE-22 and CWE-35. This involves upgrading to the appropriate patched release and building detection rules that combine coverage for both classification codes. Reviewing the provided NVD record, CISA KEV entry, and GitLab advisory is recommended to ensure comprehensive detection and remediation strategies.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.