CVE-2026-66835
CVE-2026-66835 · httpd mod_auth directory protection bypassed by a doubled slash in the request path
This page contains facts from public vulnerability sources. Check the original advisory before updating.
Path Equivalence vulnerability in Erlang/OTP inets httpd allows a remote unauthenticated attacker to read files inside a mod_auth protected directory by prefixing the request path with an extra slash. httpd_request:validate_uri/1 normalises the request URI with uri_string:normalize/1, which performs RFC 3986 dot-segment removal but does not collapse empty path segments, so a doubled slash survives. mod_alias:real_name/3 concatenates the document root with that URI, and mod_auth:secret_path/3 then decides whether the result lies inside a protected directory block by running the configured directory path as an unanchored regular expression against it. The doubled slash breaks the contiguous substring the regex needs, so the request is treated as unprotected and no authentication challenge is issued, while mod_get opens the same path and the operating system collapses the doubled slash and returns the protected file. The same path mismatch also evades the per-path accounting in mod_security. This issue affects OTP from OTP 17.0 before OTP 27.3.4.17, from OTP 28.0 before OTP 28.5.0.6, and from OTP 29.0 before OTP 29.0.6, corresponding to inets from 5.10 before 9.3.2.7, from 9.4 before 9.6.2.3, and from 9.7 before 9.7.2. Whether OTP before OTP 17.0, corresponding to inets before 5.10, is affected is unknown.
CVSS 8.2 · High · EPSS 1.0% · Fix available
- Published
- Updated
Stack: system
Affected products and versions
otp
- Versions
- ≥ 0, < 17.0: Unknown (otp)
- ≥ 17.0, < 27.3.4.17: Affected (otp)
- ≥ 28.0, < 28.5.0.6: Affected (otp)
- ≥ 29.0, < 29.0.6: Affected (otp)
Update to 27.3.4.17; Update to 28.5.0.6; Update to 29.0.6
otp
- Versions
- ≥ 0, < 5.10: Unknown (otp)
- ≥ 5.10, < 9.3.2.7: Affected (otp)
- ≥ 9.4, < 9.6.2.3: Affected (otp)
- ≥ 9.7, < 9.7.2: Affected (otp)
Update to 9.3.2.7; Update to 9.6.2.3; Update to 9.7.2
otp
- Versions
- ≥ 84adefa331c4159d432d22840663c38f155cd4c1: Affected; ≥ bac19eb3dbd96cc49b6d8cabc1c04248bf8c79f6: Not affected; ≥ d8878dec0ececc2eab18e47bb18b472f224ca633: Not affected; ≥ 9641944a2efbf55bea760f8ff7ba777fe3a0961c: Not affected (git)
Update to 9641944a2efbf55bea760f8ff7ba777fe3a0961c
erlang Debian:12
- Versions
- 1:25.2.3+dfsg-1
- 1:25.2.3+dfsg-1+deb12u1
- 1:25.2.3+dfsg-1+deb12u2
- 1:25.2.3+dfsg-1+deb12u3
- 1:25.2.3+dfsg-1+deb12u4
- 1:25.3.2.10+dfsg-1
- 1:25.3.2.10+dfsg-2
- 1:25.3.2.11+dfsg-1
- 1:25.3.2.12+dfsg-1
- 1:25.3.2.12+dfsg-2
- 1:25.3.2.12+dfsg-3
- 1:25.3.2.8+dfsg-1
- 1:26.0+dfsg-1
- 1:26.0.1+dfsg-1
- 1:26.0.2+dfsg-1
- 1:26.0~rc2+dfsg-1
- 1:26.0~rc3+dfsg-1
- 1:26.1.2+dfsg-1
- 1:26.2.1+dfsg-1
- 1:26.2.4+dfsg-1
- 1:27.0+dfsg-1
- 1:27.0.1+dfsg-1
- 1:27.0.1+dfsg-2
- 1:27.0.1+dfsg-3
- 1:27.0~rc3+dfsg-1
- 1:27.0~rc3+dfsg-2
- 1:27.0~rc3+dfsg-3
- 1:27.0~rc3+dfsg-4
- 1:27.1.2+dfsg-1
- 1:27.2+dfsg-1
- 1:27.2+dfsg-2
- 1:27.2+dfsg-3~exp1
- 1:27.2.1+dfsg-1
- 1:27.2.1+dfsg-2
- 1:27.2.2+dfsg-1
- 1:27.2.3+dfsg-1
- 1:27.2.4+dfsg-1
- 1:27.3+dfsg-1
- 1:27.3.1+dfsg-1
- 1:27.3.2+dfsg-1
- 1:27.3.3+dfsg-1
- 1:27.3.4+dfsg-1
- 1:27.3.4.1+dfsg-1
- 1:27.3.4.10+dfsg-1
- 1:27.3.4.11+dfsg-1
- 1:27.3.4.11+dfsg-2
- 1:27.3.4.11+dfsg-3
- 1:27.3.4.11+dfsg-4
- 1:27.3.4.11+dfsg-5
- 1:27.3.4.11+dfsg-6
- 1:27.3.4.11+dfsg-7
- 1:27.3.4.12+dfsg-1
- 1:27.3.4.3+dfsg-1
- 1:27.3.4.4+dfsg-1
- 1:27.3.4.6+dfsg-1
- 1:27.3.4.8+dfsg-1
- 1:27.3.4.9+dfsg-1
- 1:28.0+dfsg-1
- 1:28.0.1+dfsg-1
- 1:28.0.2+dfsg-1
- 1:28.0.4+dfsg-1
- 1:28.1.1+dfsg-1
- 1:28.2+dfsg-1
- 1:28.3+dfsg-1
- 1:28.3.1+dfsg-1
- 1:29.0+dfsg-1
- 1:29.0+dfsg-2
- 1:29.0.1+dfsg-1
- 1:29.0.2+dfsg-1
- 1:29.0.3+dfsg-1
- 1:29.0.4+dfsg-1
- 1:29.0.6+dfsg-1
- 1:29.0~rc1+dfsg-1
- 1:29.0~rc1+dfsg-2
- 1:29.0~rc2+dfsg-1
- 1:29.0~rc3+dfsg-1
- 1:29.0~rc3+dfsg-2
- 1:29.0~rc3+dfsg-3
- 1:29.0~rc3+dfsg-4
- 1:29.1.1+dfsg-1
- Affected ranges
- ECOSYSTEM: (−∞, +∞)
No fix published
erlang Debian:13
- Versions
- 1:27.3.4.1+dfsg-1
- 1:27.3.4.1+dfsg-1+deb13u1
- 1:27.3.4.1+dfsg-1+deb13u2
- 1:27.3.4.1+dfsg-1+deb13u3
- Affected ranges
- ECOSYSTEM: < 1:27.3.4.1+dfsg-1+deb13u4
Update to 1:27.3.4.1+dfsg-1+deb13u4
erlang Debian:14
- Versions
- 1:27.3.4.1+dfsg-1
- 1:27.3.4.10+dfsg-1
- 1:27.3.4.11+dfsg-1
- 1:27.3.4.11+dfsg-2
- 1:27.3.4.11+dfsg-3
- 1:27.3.4.11+dfsg-4
- 1:27.3.4.11+dfsg-5
- 1:27.3.4.11+dfsg-6
- 1:27.3.4.11+dfsg-7
- 1:27.3.4.12+dfsg-1
- 1:27.3.4.3+dfsg-1
- 1:27.3.4.4+dfsg-1
- 1:27.3.4.6+dfsg-1
- 1:27.3.4.8+dfsg-1
- 1:27.3.4.9+dfsg-1
- 1:28.0+dfsg-1
- 1:28.0.1+dfsg-1
- 1:28.0.2+dfsg-1
- 1:28.0.4+dfsg-1
- 1:28.1.1+dfsg-1
- 1:28.2+dfsg-1
- 1:28.3+dfsg-1
- 1:28.3.1+dfsg-1
- 1:29.0+dfsg-1
- 1:29.0+dfsg-2
- 1:29.0.1+dfsg-1
- 1:29.0.2+dfsg-1
- 1:29.0.3+dfsg-1
- 1:29.0.4+dfsg-1
- 1:29.0~rc1+dfsg-1
- 1:29.0~rc1+dfsg-2
- 1:29.0~rc2+dfsg-1
- 1:29.0~rc3+dfsg-1
- 1:29.0~rc3+dfsg-2
- 1:29.0~rc3+dfsg-3
- 1:29.0~rc3+dfsg-4
- Affected ranges
- ECOSYSTEM: < 1:29.0.6+dfsg-1
Update to 1:29.0.6+dfsg-1
erlang Ubuntu:Pro:14.04:LTS
- Versions
- 1:16.b.1-dfsg-4ubuntu1
- 1:16.b.2-dfsg-1ubuntu1
- 1:16.b.2-dfsg-2ubuntu1
- 1:16.b.3-dfsg-1ubuntu1
- 1:16.b.3-dfsg-1ubuntu2
- 1:16.b.3-dfsg-1ubuntu2.1
- 1:16.b.3-dfsg-1ubuntu2.2
- 1:16.b.3-dfsg-1ubuntu2.2+esm1
- Affected ranges
- ECOSYSTEM: < 1:16.b.3-dfsg-1ubuntu2.2+esm2
Update to 1:16.b.3-dfsg-1ubuntu2.2+esm2
erlang Ubuntu:Pro:16.04:LTS
- Versions
- 1:18.0-dfsg-1ubuntu1
- 1:18.0-dfsg-1ubuntu2
- 1:18.2-dfsg-2ubuntu1
- 1:18.3-dfsg-1ubuntu1
- 1:18.3-dfsg-1ubuntu2
- 1:18.3-dfsg-1ubuntu3
- 1:18.3-dfsg-1ubuntu3.1
- 1:18.3-dfsg-1ubuntu3.1+esm1
- 1:18.3-dfsg-1ubuntu3.1+esm2
- Affected ranges
- ECOSYSTEM: < 1:18.3-dfsg-1ubuntu3.1+esm3
Update to 1:18.3-dfsg-1ubuntu3.1+esm3
erlang Ubuntu:Pro:18.04:LTS
- Versions
- 1:20.0.4+dfsg-1ubuntu1
- 1:20.1.2+dfsg-1ubuntu1
- 1:20.1.3+dfsg-1ubuntu1
- 1:20.1.4+dfsg-1ubuntu1
- 1:20.1.5+dfsg-1ubuntu1
- 1:20.1.6+dfsg-1ubuntu1
- 1:20.1.7+dfsg-1ubuntu1
- 1:20.2.1+dfsg-1ubuntu1
- 1:20.2.2+dfsg-1ubuntu1
- 1:20.2.2+dfsg-1ubuntu2
- 1:20.2.2+dfsg-1ubuntu2+esm1
- 1:20.2.2+dfsg-1ubuntu2+esm2
- Affected ranges
- ECOSYSTEM: < 1:20.2.2+dfsg-1ubuntu2+esm3
Update to 1:20.2.2+dfsg-1ubuntu2+esm3
erlang Ubuntu:Pro:20.04:LTS
- Versions
- 1:22.0.7+dfsg-1build1
- 1:22.2+dfsg-1
- 1:22.2.1+dfsg-1
- 1:22.2.2+dfsg-1
- 1:22.2.3+dfsg-1
- 1:22.2.3+dfsg-2
- 1:22.2.4+dfsg-1
- 1:22.2.7+dfsg-1
- 1:22.2.7+dfsg-1ubuntu0.2
- 1:22.2.7+dfsg-1ubuntu0.3
- 1:22.2.7+dfsg-1ubuntu0.4
- 1:22.2.7+dfsg-1ubuntu0.5
- 1:22.2.7+dfsg-1ubuntu0.5+esm1
- Affected ranges
- ECOSYSTEM: < 1:22.2.7+dfsg-1ubuntu0.5+esm2
Update to 1:22.2.7+dfsg-1ubuntu0.5+esm2
erlang Ubuntu:22.04:LTS
- Versions
- 1:23.2.6+dfsg-1build1
- 1:24.1.1+dfsg-1
- 1:24.1.4+dfsg-1
- 1:24.1.5+dfsg-1
- 1:24.1.5+dfsg-1ubuntu1
- 1:24.2+dfsg-1
- 1:24.2.1+dfsg-1
- 1:24.2.1+dfsg-1ubuntu0.1
- 1:24.2.1+dfsg-1ubuntu0.2
- 1:24.2.1+dfsg-1ubuntu0.3
- 1:24.2.1+dfsg-1ubuntu0.4
- 1:24.2.1+dfsg-1ubuntu0.5
- 1:24.2.1+dfsg-1ubuntu0.6
- Affected ranges
- ECOSYSTEM: < 1:24.2.1+dfsg-1ubuntu0.7
Update to 1:24.2.1+dfsg-1ubuntu0.7
erlang Ubuntu:24.04:LTS
- Versions
- 1:25.2.3+dfsg-1
- 1:25.3.2.8+dfsg-1
- 1:25.3.2.8+dfsg-1ubuntu1
- 1:25.3.2.8+dfsg-1ubuntu3
- 1:25.3.2.8+dfsg-1ubuntu4
- 1:25.3.2.8+dfsg-1ubuntu4.1
- 1:25.3.2.8+dfsg-1ubuntu4.2
- 1:25.3.2.8+dfsg-1ubuntu4.3
- 1:25.3.2.8+dfsg-1ubuntu4.4
- 1:25.3.2.8+dfsg-1ubuntu4.5
- 1:25.3.2.8+dfsg-1ubuntu4.6
- Affected ranges
- ECOSYSTEM: < 1:25.3.2.8+dfsg-1ubuntu4.7
Update to 1:25.3.2.8+dfsg-1ubuntu4.7
erlang Ubuntu:26.04:LTS
- Versions
- 1:27.3.4.1+dfsg-1build1
- 1:27.3.4.3+dfsg-1
- 1:27.3.4.4+dfsg-1
- 1:27.3.4.6+dfsg-1
- Affected ranges
- ECOSYSTEM: < 1:27.3.4.6+dfsg-1ubuntu0.1
Update to 1:27.3.4.6+dfsg-1ubuntu0.1
Original sources
- https://github.com/erlang/otp/security/advisories/GHSA-r4vv-vc2c-2fw6
- https://cna.erlef.org/cves/CVE-2026-66835.html
- https://osv.dev/vulnerability/EEF-CVE-2026-66835
- https://www.erlang.org/doc/system/versions.html#order-of-versions
- https://github.com/erlang/otp/commit/bac19eb3dbd96cc49b6d8cabc1c04248bf8c79f6
- https://github.com/erlang/otp/commit/d8878dec0ececc2eab18e47bb18b472f224ca633
- https://github.com/erlang/otp/commit/9641944a2efbf55bea760f8ff7ba777fe3a0961c
- https://nvd.nist.gov/vuln/detail/CVE-2026-66835