Skip to main content

FreeBSD WireGuard CVE-2026-58085

| EUVDEUVD-2026-62339 HIGH
Improper Verification of Cryptographic Signature (CWE-347)
2026-08-19 freebsd GHSA-ph3x-qgrx-fv78
7.5
CVSS 3.1 · Vendor: freebsd
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain on-path network position between WireGuard peers
  2. Delivery
    Intercept WireGuard UDP transport packet in transit
  3. Exploit
    Modify packet ciphertext or authenticated data fields
  4. Install
    Forward tampered packet to FreeBSD wg(4) endpoint UDP port
  5. C2
    OCF returns MAC failure result, driver discards check
  6. Execute
    Driver accepts and decrypts forged packet as legitimate
  7. Impact
    Application receives attacker-controlled plaintext

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A04:2025 - Cryptographic Failures
ASVS 5.0
V11 - Cryptography Signature verification
Exploitation Conditions

The target must be a FreeBSD host running the wg(4) WireGuard driver at an unpatched version (14.4-RELEASE before p8, 15.0-RELEASE before p12, or 15.1-RELEASE before p2) with at least one active WireGuard interface. Two distinct exploitation prerequisites exist depending on attack path: for packet injection, the attacker must be able to send UDP packets to the WireGuard endpoint's listening port AND possess knowledge of (or ability to guess) the receiver's current replay window counter bounds - replay window awareness is a non-default, time-sensitive knowledge requirement. For the MITM modification attack, the attacker must hold a privileged on-path network position enabling interception of WireGuard UDP packets in transit between legitimate peers, such as routing-level access, ARP cache poisoning on a shared segment, or a compromised intermediate hop. What limits exploitation: the injection attack is constrained by replay window guessing difficulty; the MITM attack requires an on-path network position that is not available to a generic internet adversary; both attacks are integrity-only - confidentiality of the tunnel (encryption via ChaCha20) is not broken by this flaw.

Impact

The official CVSS 7.5 High score (AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N) reflects a network-accessible, unauthenticated integrity compromise, but AC:L overstates the ease of exploitation in practice. The injection attack path explicitly requires the attacker to guess the bounds of the receiver's replay window - a non-trivial, knowledge-dependent condition - while the MITM modification path requires a privileged on-path network position to intercept WireGuard UDP traffic in transit. Neither condition is met by a generic internet adversary, making this less exploitable than a raw CVSS 7.5 implies. EPSS at 0.18% (8th percentile) is consistent with these barriers and shows no evidence of tooling or mass exploitation. There is no CISA KEV listing, confirming no observed active exploitation. The severity of a successful exploitation is significant: the attacker can forge or modify tunnel traffic without the FreeBSD host detecting tampering, undermining any security relying on WireGuard tunnel integrity. However, confidentiality is not compromised - ChaCha20 encryption remains intact, so traffic contents cannot be read by a passive observer. The real priority is highest for FreeBSD WireGuard deployments on adversarial networks (public internet endpoints, multi-tenant environments) and lower for internally-connected peers.

Exploit ScenarioDerived

An attacker with on-path access to a network segment carrying WireGuard UDP traffic - achieved, for example, via ARP spoofing on a local segment, a rogue BGP advertisement, or a compromised transit router - intercepts a legitimate WireGuard transport packet destined for an unpatched FreeBSD host, modifies the encrypted payload or associated data, and forwards the packet. The FreeBSD wg(4) driver decrypts the packet via OCF, ignores the failed Poly1305 MAC result, and delivers the forged plaintext to the application layer without raising any error. No public proof-of-concept code has been identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 27, 2026

FreeBSD's wg(4) WireGuard kernel driver silently accepts packets bearing invalid Poly1305 authentication tags, completely defeating WireGuard's cryptographic integrity guarantee on affected FreeBSD versions. The driver dispatches decrypt operations to the OpenCrypto Framework (OCF) but never checks the returned MAC verification result, meaning tampered or forged ciphertext passes through as legitimate plaintext. Two distinct attack paths exist: an on-path attacker who can intercept WireGuard UDP traffic can modify ciphertext and authenticated data without detection, while a remote attacker with knowledge of the receiver's replay window bounds can inject forged transport data packets directly. No public exploit has been identified and EPSS sits at 0.18% (8th percentile), indicating no widespread automated exploitation at time of analysis.

RemediationAI

Apply FreeBSD patches from the official security advisory FreeBSD-SA-26:52.if_wg at https://security.freebsd.org/advisories/FreeBSD-SA-26:52.if_wg.asc: upgrade to FreeBSD 14.4-RELEASE-p8, FreeBSD 15.0-RELEASE-p12, or FreeBSD 15.1-RELEASE-p2 respectively. As a compensating control pending patch application, disabling the wg(4) interface entirely eliminates all exposure but sacrifices WireGuard VPN connectivity for affected tunnels - weigh this trade-off against operational requirements. Restricting inbound WireGuard UDP port access via pf firewall rules to only known peer IP addresses reduces the injection attack surface (an attacker who cannot send packets to the endpoint cannot inject), but does not protect against a MITM attacker already positioned on the path between legitimate peers. There is no known configuration option to disable OCF offload selectively while keeping wg(4) functional. Prioritize patching on any FreeBSD WireGuard endpoint exposed to untrusted networks or transit paths.

Affected VersionsENISA

FreeBSD 15.0-RELEASE <p12
FreeBSD 14.4-RELEASE <p8
FreeBSD 15.1-RELEASE <p2

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

WireGuard employs ChaCha20-Poly1305 AEAD (Authenticated Encryption with Associated Data), in which the 128-bit Poly1305 MAC cryptographically binds both the ciphertext and the associated data, ensuring any modification is detectable by the receiver. FreeBSD's wg(4) driver offloads these cryptographic operations to the OpenCrypto Framework (OCF), a kernel-level subsystem that abstracts hardware crypto accelerators and software implementations. The root cause is CWE-347 (Improper Verification of Cryptographic Signature): after the OCF callback returns a decrypted result, the driver discards the MAC verification outcome rather than gating packet acceptance on a successful authentication check. The net effect is that the AEAD property of WireGuard is entirely disabled at the driver level - decryption proceeds but authentication does not. Affected products per CPE cpe:2.3:a:freebsd:freebsd:*:*:*:*:*:*:*:* span FreeBSD 14.4-RELEASE, 15.0-RELEASE, and 15.1-RELEASE lines prior to their respective patch levels.

Know when Freebsd gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (freebsd) PRIMARY 7.5 HIGH
AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
vuln.today AI 5.9 MEDIUM

Both attack paths require either on-path MITM positioning or replay-window guessing, justifying AC:H; integrity-only impact as ChaCha20 confidentiality is unbroken.

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:N
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:H/VA:N/SC:N/SI:N/SA:N

Primary rating from Vendor (freebsd).

CVSS VectorVendor: freebsd

Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
None

Lifecycle Timeline

3
CVSS changed
Aug 27, 2026 - 17:37 NVD
7.5 (HIGH)
CVE Published
Aug 19, 2026 - 07:38 cve.org
HIGH 7.5
CVE Published
Aug 19, 2026 - 07:38 cve.org
UNKNOWN (no severity yet)

DescriptionCVE.org

After dispatching a decrypt operation to OCF and receiving the result, the wg(4) driver failed to check whether the MAC verification step succeeded. The driver thus silently accepted packets with an invalid Poly1305 authentication tag.

A remote attacker who can send UDP packets to a WireGuard endpoint, and who can guess the bounds of the receiver's replay window, can inject forged or modified transport data packets into the tunnel.

A remote attacker who can intercept WireGuard packets bound for a FreeBSD host can modify the ciphertext and authenticated data without detection by the receiver.

Executive ViewAI

Why It Matters

FreeBSD systems running WireGuard VPN are vulnerable to undetected packet modification attacks that bypass encryption integrity controls. This affects any organization using FreeBSD for site-to-site VPN or remote access; attackers on the network could alter encrypted traffic without triggering security detection. Although no public exploit identified at time of analysis, immediate mitigation is required given the absence of an available vendor patch.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) restrict WireGuard traffic to explicitly trusted network segments only; (2) disable WireGuard on non-critical systems; (3) implement network segmentation isolating WireGuard gateways from general infrastructure; (4) establish weekly monitoring of FreeBSD security advisories; (5) evaluate and initiate planning for migration to alternative VPN solutions with independently verified cryptographic implementations.

Threat Intelligence Overview

EPSS Score
0.2%
Top 92% exploitable
Prevalence
Low
FreeBSD WireGuard deployments represent a narrow subset of total VPN infrastructure
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +38
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

CVE-2012-0217 HIGH POC
7.2 Jun 12

The x86-64 kernel system-call functionality in Xen 4.1.2 and earlier, as used in Citrix XenServer 6.0.2 and earlier and

CVE-2025-14558 HIGH POC
7.2 Mar 09

The rtsol(8) and rtsold(8) programs do not validate the domain search list options provided in router advertisement mess

CVE-2020-1967 HIGH POC
7.5 Apr 21

Server or client applications that call the SSL_check_chain() function during or after a TLS 1.3 handshake may crash due

CVE-2013-4854 HIGH POC
7.8 Jul 29

The RFC 5011 implementation in rdata.c in ISC BIND 9.7.x and 9.8.x before 9.8.5-P2, 9.8.6b1, 9.9.x before 9.9.3-P2, and

CVE-2024-6387 HIGH POC
8.1 Jul 01

Remote code execution in OpenSSH's sshd server (regression of CVE-2006-5051) allows unauthenticated remote attackers to

CVE-2019-6111 MEDIUM POC
5.9 Jan 31

An issue was discovered in OpenSSH 7.9. Rated medium severity (CVSS 5.9), this vulnerability is remotely exploitable, no

CVE-2023-48795 MEDIUM POC
5.9 Dec 18

The SSH transport protocol with certain OpenSSH extensions, found in OpenSSH before 9.6 and other products, allows remot

CVE-2013-2171 MEDIUM POC
6.9 Jul 02

The vm_map_lookup function in sys/vm/vm_map.c in the mmap implementation in the kernel in FreeBSD 9.0 through 9.1-RELEAS

CVE-2021-3449 MEDIUM
5.9 Mar 25

An OpenSSL TLS server may crash if sent a maliciously crafted renegotiation ClientHello message from a client. Rated med

CVE-2016-5766 HIGH POC
8.8 Aug 07

Integer overflow in the _gd2GetHeader function in gd_gd2.c in the GD Graphics Library (aka libgd) before 2.2.3, as used

CVE-2016-1879 HIGH POC
7.5 Jan 29

The Stream Control Transmission Protocol (SCTP) module in FreeBSD 9.3 before p33, 10.1 before p26, and 10.2 before p9, w

CVE-2020-7457 HIGH POC
8.1 Jul 09

In FreeBSD 12.1-STABLE before r359565, 12.1-RELEASE before p7, 11.4-STABLE before r362975, 11.4-RELEASE before p1, and 1

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy