can a vpn be hacked can my vpn be hacked can someone hack you through a vpn

Can a VPN be hacked? The real risks and how to cut them

Adrian Maverick · · 8 min read

Yes, a VPN can be hacked, but it is rarely the encryption that fails. The real risks are flawed VPN servers and gateways that have not been patched, fake or malicious VPN apps, old protocols, and traffic that leaks around the tunnel.

Each of those has a fix you can check, and none of them are a reason to give up on VPNs. Here is what each risk looks like and how to cut it.

The four ways a VPN gets hacked

Risk What goes wrong Who it mostly hits What reduces it
The VPN server or gateway A software flaw lets an attacker into the device that runs the VPN Companies running their own VPN gateways Patching fast, following vendor and CISA guidance
The VPN app The app itself is fake, malicious or collects your data Anyone installing an unknown VPN app A provider you can identify, from an official app store
The protocol An old protocol with weak security is still in use Old setups and old devices A modern protocol such as WireGuard or IKEv2
Leaks DNS queries or traffic go around the tunnel Anyone with a misconfigured or dropped VPN Kill switch, leak test, DNS through the VPN

For which everyday attacks a VPN helps with in the first place, see does a VPN protect you from hackers.

Risk 1: hacked VPN gateways

This is where most real VPN hacks happen, and it is mostly a business problem. Companies run VPN gateways so staff can reach the office network. Those gateways sit on the internet and guard everything behind them, which makes them a favorite target.

CISA, the US Cybersecurity and Infrastructure Security Agency, keeps a Known Exploited Vulnerabilities catalog of flaws that attackers are actually using. The version we checked on 20 November 2026 lists 1,786 of them, and enterprise VPN products appear again and again. A few examples, in CISA's own descriptions:

  • Fortinet FortiOS SSL VPN (CVE-2018-13379): the SSL VPN web portal "contains a path traversal vulnerability that may allow an unauthenticated attacker to download FortiOS system files". CISA's required action: "Apply updates per vendor instructions."
  • Ivanti Connect Secure and Policy Secure (CVE-2023-46805 and CVE-2024-21887): an authentication bypass that can be used together with a command injection flaw. CISA's required action: "Apply mitigations per vendor instructions or discontinue use of the product if mitigations are unavailable."
  • Palo Alto Networks PAN-OS GlobalProtect (CVE-2024-3400): a command injection flaw "that allows an unauthenticated attacker to execute commands with root privileges on the firewall".
  • Ivanti Connect Secure, Policy Secure and ZTA Gateways (CVE-2025-0282): a buffer overflow "which can lead to unauthenticated remote code execution".

CISA marks all of these as known to be used in ransomware campaigns. For the Ivanti flaws it issued Emergency Directive 24-01 to federal agencies, noting that "threat actors continue to leverage vulnerabilities in Ivanti Connect Secure and Ivanti Policy Secure solutions to capture credentials and drop webshells that enable further compromise of enterprise networks."

The common thread is not one vendor. It is that a VPN gateway is software, software has bugs, and the gap between a fix being released and a fix being installed is where attackers work. If your company runs a VPN gateway, the KEV catalog is worth subscribing to.

Risk 2: fake and malicious VPN apps

For most people using a consumer VPN, the bigger risk is the app. A VPN app routes all your traffic through the company behind it, so a dishonest app is in a strong position to collect data or show you things you did not ask for.

Warning signs:

  • You cannot tell who makes the app, where the company is, or how it makes money.
  • It came from a link, a pop-up or a file download instead of an official app store or the provider's own site.
  • It asks you to install a certificate or profile that lets it inspect your secure traffic. Our post on whether your VPN can see your browsing history explains how to check for one.
  • It asks for permissions a VPN does not need, such as your contacts or photos.

So "can a VPN hack your phone" really means "can a malicious app do damage", and the answer is yes, like any malicious app. Our post on whether free VPNs are safe has a step-by-step routine for checking an app before you install it.

Risk 3: weak or outdated protocols

The protocol is the set of rules your device and the VPN server use to build the encrypted tunnel. Older ones were designed for a different era. Microsoft has removed remote access through PPTP and L2TP from Windows Server 2028 and tells administrators to "Migrate remote access connections to Internet Key Exchange version 2 (IKEv2) or Secure Socket Tunneling Protocol (SSTP)."

If your VPN app lets you choose, pick a modern option such as WireGuard or IKEv2. Our comparison of WireGuard and OpenVPN covers the two you will see most often.

Risk 4: DNS leaks and drops

Sometimes nothing is hacked at all, the protection just has a gap. Your device looks up each site's name using DNS, and those lookups can travel outside the tunnel to your internet provider. RFC 9076, the IETF's document on DNS privacy, notes that DNS traffic "may take a different path than the communication between the initiator and the recipient".

The other gap is a dropped connection. If the VPN falls over and the app has no kill switch, your traffic goes out over your normal connection until it reconnects. How to tell if your VPN is working walks through the checks.

Harvest now, decrypt later

There is one risk that does not need a flaw today. An attacker can record encrypted VPN traffic now and keep it until a large enough quantum computer exists to break the key exchange that protected it.

CISA, NSA and NIST describe this in their joint quantum-readiness factsheet: "cyber threat actors could be targeting data today that would still require protection in the future", using "a catch now, break later or harvest now, decrypt later operation."

The answer is post-quantum key exchange. In August 2024 NIST published FIPS 203, the standard for ML-KEM, and says that "At present, ML-KEM is believed to be secure, even against adversaries who possess a quantum computer." It comes in three strengths, ML-KEM-512, ML-KEM-768 and ML-KEM-1024, in order of increasing security.

WireGuard's own protocol page notes that "for, say, post-quantum resistance", it "supports an optional pre-shared key that is mixed into the public key cryptography." How a VPN creates and delivers that key is what matters, which we cover in is WireGuard quantum-safe. For the background, see what is post-quantum encryption.

How to reduce the risk

  1. Keep the app and your device updated. Most of the KEV entries above come with the same instruction: apply the vendor's update.
  2. Use a provider you can identify. A named company, a clear privacy policy and an app from an official store.
  3. Use a modern protocol. WireGuard or IKEv2, not PPTP or L2TP.
  4. Turn on the kill switch if your app has one, so a drop does not expose your traffic.
  5. Run a leak test after you connect.
  6. Prefer post-quantum key exchange if you care about traffic staying private for years.
  7. Do not install certificates or profiles a VPN asks for unless you understand exactly why.

Frequently asked questions

Can someone hack you through a VPN?

The VPN company and its servers carry your traffic, so a malicious provider or a hacked server is in a position to see or interfere with anything not otherwise encrypted. Choose a provider you trust and keep your device updated.

Can someone hack into my VPN account?

Like any account, yes, if your password is weak or reused. Use a unique password and any sign-in protection the provider offers.

Are VPNs secure?

A reputable VPN with a modern protocol, an up-to-date app and a kill switch is a solid way to protect traffic on networks you do not trust. The weak points are usually unpatched software, untrustworthy apps and leaks, not the encryption itself.

Can a VPN hack your phone?

A legitimate VPN app does not. A malicious app posing as a VPN can misuse the access you give it, like any malicious app. Install VPNs only from official stores or the provider's own site.

Can OpenVPN or WireGuard be hacked?

Any software can have bugs, which is why updates matter. The bigger real-world risks are old protocols, unpatched gateways and untrustworthy apps.

Where Secria VPN fits

If you want to try a VPN without paying, Secria VPN Free works on iPhone, iPad, Mac and Android with a free Secria account, no card needed, on free servers in Frankfurt and Dallas, one device at a time. Every plan, Free included, gets the same encryption: WireGuard with an ML-KEM-1024 post-quantum key added to every session, on by default. You also get a kill switch, DNS blocking that helps block ads and trackers, and RAM-only servers: keys, configs and connection state are never written to disk. No activity logs: we do not record browsing, DNS queries or traffic contents.

Paid plans add every location, Multi-Hop, split tunneling and 5 devices. See Secria VPN or pricing.

Secria fact-checks every post against primary sources. Spotted something wrong or out of date? Email hq@secria.me and we will correct it.