Off-by-one Error Affecting libreswan-debugsource package, versions <0:4.12-3.amzn2023.0.3


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.6% (46th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-AMZN2023-LIBRESWANDEBUGSOURCE-18530962
  • published5 Aug 2026
  • disclosed2 Jul 2026

Introduced: 2 Jul 2026

CVE-2026-12413  (opens in a new tab)
CWE-193  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 libreswan-debugsource to version 0:4.12-3.amzn2023.0.3 or higher.
This issue was patched in ALAS2023-2026-2039.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libreswan-debugsource package and not the libreswan-debugsource package as distributed by Amazon-Linux. See How to fix? for Amazon-Linux:2023 relevant fixed versions and status.

An invalidly formatted IKEv2 fragment causes the Libreswan pluto daemon to crash and restart. Continued exploitation would cause a denial of service. The function reassemble_v2_incoming_fragments() would ignore unknown outer payloads but still store these in a fixed size array msg_digest.digest[PAYLIMIT]. An off-by-one error in the assertion PASSERT(logger, md->digest_roof < elemsof(md->digest)) causes the daemon to abort. No remote code execution is possible. Any configuration that allows IKEv2 connections that do not set fragmentation=no are vulnerable. IKEv1 is not affected.

CVSS Base Scores

version 3.1