Critical Vulnerability Impacts Nearly All VPN Software

Blog · Published 2019-12-07 · Revised 2026-11-26
Local source and editorial review completed; historical assessments and documented evidence limits retained · Joomla source

3,895 Total views across this article’s versions; includes the historical baseline where available.

In December 2019, researchers disclosed CVE-2019-14899: an attack against TCP connections carried inside a VPN on affected systems. The described attacker was near the client, such as at a malicious Wi-Fi access point. The attack did not require breaking the VPN’s encryption or compromising its server.

That is still a serious concern. But to understand it, we need to keep the connection inside the tunnel separate from the tunnel itself.

Significance

The VPN protects traffic between your device and its VPN peer. The application connection is another layer. For example, a browser can use a TCP connection to a website while the VPN carries those packets across a UDP-based tunnel.

WireGuard is a useful example: its protocol documentation specifies UDP transport. A TCP connection carried through WireGuard is still TCP at the application endpoints. Describing this vulnerability as affecting only “TCP-based VPNs” confuses those two layers.

Changing the outer transport to UDP does not, by itself, remove the client-side packet-handling issue. Nor does the disclosure demonstrate that VPN encryption keys were recovered. OpenVPN’s December 2019 response likewise placed the concern in the operating system’s handling of traffic reaching the client outside the tunnel, rather than a demonstrated flaw in OpenVPN’s encryption.

Contents

This article explains the reported attack in simple terms, with a Linux emphasis. It distinguishes the original demonstration, later research and historical mitigation proposals.

Quick Facts

The original disclosure used four components:

Component Role in the Demonstration
Client device Connected to the local network and VPN; held the application TCP connection
Local access point Controlled by the attacker
VPN server Carried the tunnel; not controlled by the attacker
Website or service The application’s remote endpoint; not controlled by the attacker

The forged packets reached the client’s physical network interface while being addressed to its VPN-assigned virtual address. On affected configurations, the host processed packets that had arrived outside the tunnel. The attacker used observable responses to learn about the connection.

The researchers’ May 2020 explanation further describes the required local visibility and injection capability. Merely having an account with the same VPN provider is not the attacker position described here.

Threat Summary

If you’re going to tell everyone the sky is falling, you’d better be able to back it up, right?

The important distinction is what the attacker learns and what they can do with it. The researchers describe inferring whether the client has a TCP connection to a particular remote address. That isn’t the same as decrypting every page, message, or file the user transfers. Payload injection into an unprotected application stream and interference with a TLS-protected connection also have different consequences.

HTTPS uses TLS to protect application data, including its integrity. Learning TCP sequence information does not give an attacker the keys needed to create valid authenticated TLS records. That additional protection doesn’t make the TCP connection immune to disruption or eliminate the reported inference risk. See the researchers’ clarification of HTTPS behavior and the TLS 1.3 specification.

So, the practical concern remains: a VPN connection indicator alone doesn’t establish that the host rejects inappropriate traffic arriving outside the tunnel. The actual operating-system behavior, filtering policy, and application protection matter.

Keep the Later Research Separate

In August 2020, the researchers described a related attack involving packets sent toward the VPN-server side by an attacker on the path. Their follow-up FAQ explicitly distinguishes it from the earlier client-side attack. Their 2021 USENIX paper covers both threat models. We shouldn’t move the later scenario into a description of the December 2019 demonstration.

Scope

The 2019 report included tests involving OpenVPN, WireGuard, and IKEv2/IPsec on several operating systems. Those are historical observations about tested configurations. They do not establish that every installation of every named product was affected, or that those installations remain affected today.

OpenVPN’s contemporary response emphasized the local access an attacker needed and the role of the host’s configuration. That response is useful context; its initial mitigation advice is not a substitute for the qualified reverse-path-filter guidance below.

Ubuntu Versions and Configuration

A release name alone is not enough to establish exposure. The disclosure linked some observed Linux behavior to reverse-path-filter defaults, but also discussed IPv6 and differences between operating systems. The earlier blanket statement that Ubuntu releases before 19.10 were unaffected was too broad.

For an actual system, review the applicable vendor advisory, installed updates, VPN configuration and both IP families. As checked on November 26, 2026, Ubuntu’s CVE-2019-14899 record lists its main Linux packages for 16.04, 18.04, 20.04, 22.04 and 24.04 as vulnerable with a fix deferred. Its “no current fix from upstream” note is explicitly dated December 13, 2019. Neither that old note nor these package statuses establish the state of every VPN product or configuration.

The Role of systemd

On Linux, systemd can apply kernel settings that influence packet handling. It is not the VPN encryption layer. The disclosure also reported results on systems using other init systems. Check the effective networking configuration rather than treating the presence or absence of systemd as a verdict on vulnerability.

Attack Process/Description

At a high level, the original report describes three stages:

  1. Infer the virtual address assigned to the client’s VPN interface.
  2. Probe for a TCP connection involving a chosen remote endpoint.
  3. Use observable responses to infer enough TCP state to attempt interference or injection.

The client’s responses can themselves travel inside the encrypted tunnel. Their observable characteristics provide information without the attacker decrypting them. Challenge acknowledgments are responses involved in the inference process; describing the attack simply as sending “bogus challenge ACKs” misses that distinction.

The example concerns the client’s handling of packets delivered outside the VPN. It does not require the VPN server to be compromised, and it doesn’t establish that an attacker can insert valid authenticated VPN or HTTPS ciphertext. The application protocol determines what accepted TCP-stream data would mean to the application.

For the detailed experimental procedure and its operating-system variations, see the original disclosure. For the local attacker model and application-security limitations, see the authors’ subsequent explanation.

Risk Mitigation Strategies

The following ideas came from the December 2019 discussion. The disclosure reported limited success for filtering packets addressed to a VPN’s virtual IP when they arrived outside the tunnel. It also identified limits in strict reverse-path filtering, including IPv6 and remaining inference possibilities. These are historical mitigation proposals, not a tested remediation plan for your system.

Treat them as points to investigate for the affected system and topology, rather than as verified fixes.

  1. Review the effective IPv4 rp_filter settings and whether strict filtering fits the routing design. This is not a complete IPv6 or VPN mitigation.
  2. Reduce packet-length clues using IPsec TFC padding, where supported. Padding alone does not conceal packet timing or counts, or establish a verified fix.
  3. Examine the challenge-ACK side channel rather than assuming a lower response limit fixes it. The cited 2016 paper distinguishes a shared global counter from independent per-connection limits.1
  4. Allowing a host to respond with equivalent-sized packets after exhausting the challenge ACK limit could prevent an attacker from making correct inferences about the underlying traffic.

Historical Mitigation Proposals

The following proposals reflect the original December 2019 discussion. They are not a current list of verified fixes. Later vendor responses and research need a separate, dated assessment before drawing conclusions about the protection offered by a particular system.

1. IPsec: Understand TFC Padding

IPsec’s Encapsulating Security Payload (ESP) supports Traffic Flow Confidentiality (TFC) padding.

By making packet lengths less revealing, TFC padding may reduce the risk from the packet-size inference used in this attack. It is limited in its abilities, but is a step in the right direction.

The original disclosure proposed padding as a possible mitigation, and the contemporary IPsec discussion identified TFC as an available mechanism. Its effectiveness depends on the configuration and the information the attacker can still observe; the testing considerations below remain important.

ESP is a protocol; tunnel and transport are modes. The examples below use tunnel mode, carrying an entire original IP packet.

How TFC Padding Works

There are two different padding fields to keep straight:

Field Purpose and Location
Ordinary ESP padding 0–255 bytes for encryption/alignment requirements, counted by Pad Length
TFC padding Additional bytes after the original inner IP packet, before ordinary ESP padding; not counted by Pad Length

The inner IP packet retains its own length. The receiver uses that length to separate it from the extra TFC bytes. Those bytes are not added to the TCP application’s data. See RFC 4303, Sections 2.4–2.7.

First, here is the packet without TFC padding:

ESP tunnel packet without TFC: outer IP, ESP header, explicit IV, inner IPv4 packet, ordinary padding, Pad Length, Next Header 4, and ICV.

Now add TFC padding outside the original packet:

ESP tunnel packet with TFC padding between the inner IPv4 packet and ordinary ESP padding. Next Header remains 4; dummy packets use 59 instead.

These diagrams show separate encryption and integrity algorithms with an explicit initialization vector (IV). They omit extended sequence numbers (ESN) and UDP encapsulation. The outer header and Integrity Check Value (ICV) are outside the illustrated protection coverage. Combined algorithms, such as AEAD, have algorithm-specific details; these are not universal wire layouts.

Dummy Packets Are Different

For real inner IPv4 packets, ESP’s Next Header is 4; for IPv6 it is 41. TFC padding doesn’t change that to 59. The value 59 identifies a dummy packet, discarded after ESP security processing. It doesn’t announce padding on a real packet. See RFC 4303, Section 2.6.

Support signaling is separate, too. IKEv2 defines an ESP_TFC_PADDING_NOT_SUPPORTED notification for a peer that cannot receive TFC padding. That notification belongs to tunnel negotiation, not the ESP Next Header field. See RFC 7296, Section 1.3.1.

What This Means for Your Connection

Don’t assume that every IPsec product enables this feature, or that enabling it makes every packet the same size. For example, strongSwan’s configuration documentation describes tfc_padding as a minimum ESP packet size, with 0 disabling it by default. Larger packets do not become smaller just because a padding target was selected.

Padding consumes bandwidth. Its interaction with the path’s maximum packet size also needs testing. Packet timing and counts can remain observable even when lengths are less useful; padding real packets and generating dummy traffic are different operations.

Before relying on a proposed configuration, check the implementation and peer support, then test harmless traffic in both directions. Inspect the outer packet sizes, timing, and counts, and check for fragmentation, failed transfers, and performance changes. A working connection or a row of equal-sized packets is not proof that the attack has been prevented. The original disclosure presented padding as a possible mitigation, not a verified cure.

IPsec/TFC Reference Information

The protocol explanations above follow RFC 4303 and RFC 7296; the strongSwan example illustrates implementation-specific configuration. The original article also cited Traffic Flow Confidentiality in IPsec: Protocol and Implementation, by Kiraly et al. (2008), as further reading.4

2. Proxy Servers: Different Scope

A proxy changes the connection design. That does not establish that every proxy product or configuration is immune to this attack, or that it provides the same traffic coverage and privacy properties as a VPN. The original disclosure did not validate a blanket recommendation to replace VPNs with proxies.

3. Tor: Limits of the Original Claim

The researchers suggested that Tor might avoid the particular mechanism they described, while explicitly stating that they had not thoroughly tested it. That is a qualified hypothesis from the 2019 disclosure, not a guarantee that Tor is invulnerable. Choosing Tor or a proxy requires a separate assessment of the traffic and threats you want to address.

4. Linux: Inspect rp_filter Before Changing It

The modes are:

  • 0 — Disabled: This reverse-path check is off. Other firewall checks still apply.
  • 1 — Strict: The receiving interface must be the best reverse path to the packet’s source.
  • 2 — Loose: The source must be reachable through some interface; it need not be the receiving interface.

Here’s the catch. The effective mode on an interface is the larger numeric value of conf/all/rp_filter and that interface’s rp_filter. Larger does not mean stricter: 2 means loose. This is the behavior documented by the Linux kernel.

all Value Interface Value Effective Mode
0 0 Disabled
0 1 Strict
1 0 Strict
1 2 Loose
2 1 Loose
1 1 Strict

So, setting net.ipv4.conf.all.rp_filter to 1 does not establish strict filtering on an interface whose value is 2. Checking only the default value doesn’t establish the current mode either.

IPv4: Read the Actual Settings

On the Linux host you’re investigating, this read-only example displays all, default, and each currently present interface:

for setting in /proc/sys/net/ipv4/conf/*/rp_filter; do
    printf '%s = ' "$setting"
    cat "$setting"
done

Run it in the network namespace whose traffic you’re examining. If a file cannot be read, investigate the error rather than treating it as a zero. These readings are a snapshot; repeat them after reconnecting the VPN or recreating an interface.

For each receiving interface, compare its value with all using the table above. Record those values before changing anything.

default supplies initial settings for new interfaces; it isn’t a report of the effective mode on every existing interface. Don’t assume changing it leaves every existing interface untouched, either: the kernel implementation can propagate defaults to interfaces that still inherit them. Read the actual interface values instead of inferring them from default.

Check the Routing Design First

Strict filtering can reject legitimate packets when traffic arrives through one interface but the preferred return route uses another. That matters with split gateways, multiple uplinks, and some VPN configurations. Packet marks and policy routing may also affect the reverse lookup; src_valid_mark needs to be considered when the routing design relies on marks.

Before changing the filter, inspect the routes and policy rules:

ip -4 address show
ip -4 rule show
ip -4 route show table all

Write down where legitimate packets enter and how their replies should leave. A routing-table listing is useful evidence, but it doesn’t prove that the complete packet path will pass a particular filter.

The original disclosure discussed reverse-path filtering as a possible mitigation, but also reported an IPv6 attack path. A strict IPv4 setting alone was therefore not a complete answer even in that disclosure. Treat the setting as one part of a reviewed configuration, not proof that CVE-2019-14899 has been fixed. See the researchers’ December 2019 report.

IPv6 and the Separate rpfilter Match

The net.ipv4.conf.*.rp_filter setting applies to IPv4. It doesn’t turn on equivalent IPv6 protection.

An IPv6 filtering policy needs to account for the actual incoming interfaces, legitimate asymmetric paths, packet marks, tunnel handling, and required IPv6 control traffic. A rule accepted by the firewall tool is not, by itself, a verified mitigation. Test the proposed policy on the intended platform before applying it to everyday traffic.

Configuration Ownership and Persistence

These kernel settings don’t require systemd. On a system that uses it, systemd-sysctl can apply settings from sysctl.d files at startup and as interfaces appear. Other managers may apply or subsequently change them. A filename such as 51-rpfilter.conf doesn’t guarantee that its value wins; file precedence and later configuration activity matter. See the sysctl.d documentation.

Once a proposed policy passes the running-system tests, save it through the configuration mechanism that owns these settings. Then reboot with recovery access available, inspect the actual values again, and repeat the connection tests before manually repairing anything. Recheck interfaces created by a VPN reconnect as well.

The commands above are for inspection. The appropriate settings depend on the host’s routing design, and this historical article does not establish a current, complete fix for every affected product.

References

1 Cao et al., Off-Path TCP Exploits: Global Rate Limit Considered Dangerous (2016), section 8. The proposed defense removes the shared global challenge-ACK counter while allowing independent per-connection limits; another proposal adds randomness. That is not a recommendation to abolish every ACK limit. Its off-path threat model also differs from the 2019 VPN-client attack. The practical point remains: solving one side channel must not introduce another. https://www.cs.ucr.edu/~zhiyunq/pub/sec16_TCP_pure_offpath.pdf

2 SYSCTL.D(5). Debian Manpages. https://manpages.debian.org/stretch/systemd/sysctl.d.5.en.html

3 You can read about the rpfilter extension to iptables here: http://ipset.netfilter.org/iptables-extensions.man.html

4 Kiraly C., Teofili S., Bianchi G., Lo Cigno R., Nardelli M., Delzeri E. (2008) Traffic Flow Confidentiality in IPsec: Protocol and Implementation. In: Fischer-Hübner S., Duquenoy P., Zuccato A., Martucci L. (eds) The Future of Identity in the Information Society. Privacy and Identity 2007. IFIP — The International Federation for Information Processing, vol 262. Springer, Boston, MA. https://link.springer.com/content/pdf/10.1007%2F978-0-387-79026-8_22.pdf