CVE-2026-58085

Missing MAC validation in wg(4) packet decryption

Published Aug 19, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The wg(4) driver for FreeBSD omits a critical MAC verification step after decrypting packets, accepting any Poly1305 tag without checking it. This flaw enables an attacker to craft and send packets that appear to be authenticated, enabling tampering or injection of arbitrary data into the tunnel. The vulnerability directly impacts the integrity of communications over WireGuard and can potentially expose sensitive data or allow remote modification of traffic destined for the host.

Affected Systems

The issue affects the WireGuard driver in FreeBSD operating systems. Any device running a FreeBSD release that uses the wg(4) interface for VPN connectivity is vulnerable unless updated to a patched kernel version provided by the vendor.

Risk and Exploitability

The EPSS score is reported as less than 1%, indicating an overall low probability of exploitation at the current time, and the vulnerability is not listed in CISA's KEV catalog. Nevertheless, the flaw is remote and does not require privilege escalation; an attacker who can send or intercept UDP traffic to the WireGuard endpoint can exploit the flaw. The attacker can guess the replay window bounds to successfully inject forged or modified transport packets. The CVSS score is 7.5, but the potential impact on confidentiality, integrity, and availability of VPN traffic should be considered significant given that authentication is bypassed.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the security update for the wg(4) driver as issued in the FreeBSD advisory to enforce MAC verification.
  • If a patch is not yet available, block or disable the WireGuard interface and its associated UDP port (typically 51820) to prevent unauthenticated traffic until the fix is applied.
  • Monitor network traffic for abnormal WireGuard packets and enforce stricter replay window settings if supported, to reduce the window for potential replay attacks.

Generated by OpenCVE AI on August 27, 2026 at 19:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:o:freebsd:freebsd:14.4:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p3:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p4:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p5:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p6:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:p7:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:14.4:rc1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p10:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p11:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p3:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p4:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p5:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p6:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p7:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p8:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.0:p9:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:-:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:p1:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:rc2:*:*:*:*:*:*
cpe:2.3:o:freebsd:freebsd:15.1:rc3-p1:*:*:*:*:*:*
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Freebsd
Freebsd freebsd
Vendors & Products Freebsd
Freebsd freebsd
Type Values Removed Values Added
Description 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.
Title Missing MAC validation in wg(4) packet decryption
Weaknesses CWE-347
References
Weaknesses
  • CWE-347

    Improper Verification of Cryptographic Signature

Sources

Status
PUBLISHED
Assigner
freebsd
Published
Updated
Aug 27, 2026, 4:03 PM
Reserved
Jun 29, 2026, 1:40 AM
Status
Analyzed
Published
Aug 19, 2026, 8:17 AM
Modified
Oct 27, 2026, 12:10 PM