iPhone Certificate Validation Bypass – Pinned Trust Anchors Ignored
A flaw in iOS 18 certificate pinning allows MITM attacks against apps that rely on custom trust anchors.
- CVE-2026-23700
- https://services.nvd.nist.gov/search?keyword=CVE-2026-23700
A serious vulnerability in iOS 18's SecTrust evaluation framework allows attackers to bypass certificate pinning configured by apps with custom trust anchors. The issue is a race condition in SecPolicyCreateSSL where a timing window between trust anchor lookup and certificate path validation allows an attacker with a rogue root CA to inject a forged certificate.
Technical details
The vulnerability is in the interaction between kSecPolicySSL policy evaluation and the user-trust-anchors chain. When an app adds a custom root via SecTrustSetAnchorCertificates, the SSL policy evaluator caches the trust anchors before performing the certificate pathwalk. If an attacker can inject a certificate into the system keychain between these two steps (possible when the keychain is unlocked and an app is running as root via jailbreak), the pinned certificate is ignored.
Affected apps
All apps using custom certificate pinning: banking apps, government services, enterprise PKI tools, and corporate VPN clients.
What to do
- Audit all apps on the device for custom certificate pinning. Check for apps using SecTrustSetAnchorCertificates without fallback to system anchors.