CVE-2026-70667
## Summary The SSRF mitigation added for GHSA-54vg-pfh7-jq95 (`_validate_revocation_url()` in `lemur /certificates/verify.py`) can be bypassed. An operator-role user who uploads a certificate with attacker-controlled CRL/OCSP extensions can still make Lemur reach internal destinations (RFC1918, loopback, link-local 169.254.169.254) during verification. ## Affected version Tested against `main` (the commit that introduced `_validate_revocation_url`). The 1.9.2 release predates that guard and is vulnerable to the original SSRF (GHSA-54vg-pfh7-jq95) directly; this bypass applies to the unreleased mitigation in `main`. Please map the affected range to whichever release will first contain `_validate_revocation_url`. ## Bypass 1 — HTTP redirect (deterministic) The guard validates only the URL in the certificate; the CRL fetch then follows redirects without re-validating the target: ```python # lemur/certificates/verify.py:174 response = requests.get(point, timeout=(3.05, 6)) ``` The attacker hosts the CRL URL on a public host they control (passes the guard); that host returns `302 Location: http://169.254.169.254/...`. `requests` follows it to the internal target the guard never inspected. ## Bypass 2 — DNS rebinding / TOCTOU (probabilistic) The guard resolves once during validation; the fetch re-resolves independently: ```python # lemur/certificates/verify.py:51 addr = ipaddress.ip_address(socket.gethostbyname(hostname)) ``` A low-TTL attacker name that answers a public IP at check time and an internal IP at fetch time passes the guard but is fetched internally. Same gap affects the OCSP path (`openssl ocsp -url <url>`, verify.py:90-99). ## Relationship to GHSA-54vg-pfh7-jq95 Incomplete-fix of that mitigation, not a duplicate. Bypass 1 is not mentioned there; bypass 2 is the rebinding gap that advisory's remediation text anticipated ("pins the resolved IP") but the code does not implement. ## Affected endpoint `POST /api/1/certificates/upload` (operator role) →
Properties
- ghsa_id
- GHSA-f3qq-49m6-rw8f
- severity
- medium
- summary
- Lemur: SSRF protection in certificate revocation checking bypassable via HTTP redirects and DNS rebinding (incomplete fix for GHSA-54vg-pfh7-jq95)
- cvss_score
- 6.3
- cve_id
- CVE-2026-70667
- cvss_vector
- CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- is_ghsa_only
- false
- ghsa_published
- 2026-08-18T20:51:12Z
- source_url
- https://github.com/advisories/GHSA-f3qq-49m6-rw8f
- ghsa_updated
- 2026-08-18T20:51:13Z
Related Entities (5)
VULNERABLE_TO (1)
AFFECTS (1)
HAS_WEAKNESS (2)
REPORTED_BY (1)
Explore deeper with Ninja Signal's threat intelligence graph