CVE-2026-58085: Missing MAC validation in wg(4) packet decryption

Published Aug 19, 2026
·
Updated

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.

Affected Software

2 affected components
WireGuard wg(4) (FreeBSD WireGuard driver)
FreeBSD><

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    If possible, use network-level protections to prevent remote attackers from injecting or intercepting UDP traffic to the WireGuard endpoint (e.g., restrict inbound UDP access to the WireGuard port to trusted source IPs using a firewall/ACL).

Event History

Aug 19, 2026
CVE Published
via MITRE·07:38 AM
Data Sourced
via MITRE·07:38 AM
DescriptionWeakness

Frequently Asked Questions

1

What network access does an attacker need to exploit this?

An attacker must be able to send UDP packets to a WireGuard endpoint and guess the bounds of the receiver's replay window. An on-path attacker able to intercept WireGuard packets destined for a FreeBSD host can also modify ciphertext and authenticated data without detection.

2

What is the practical impact of successful exploitation?

Forged or modified WireGuard transport data packets may be accepted by the affected receiver despite having an invalid Poly1305 authentication tag. This can allow injected data into the tunnel or undetected modification of intercepted packets.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203