Release of Invalid Pointer or Reference Affecting swiftlang-lib package, versions <0:6.3-1.amzn2023.0.2


Severity

Recommended
high

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.26% (19th 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-SWIFTLANGLIB-19469863
  • published1 Sept 2026
  • disclosed23 Jul 2026

Introduced: 23 Jul 2026

CVE-2026-43823  (opens in a new tab)
CWE-763  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 swiftlang-lib to version 0:6.3-1.amzn2023.0.2 or higher.
This issue was patched in ALAS2023-2026-2073.

NVD Description

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

When initializing an RSA public key from DER or PEM bytes throws an error, the EVP_PKEY* is double-freed: first in the catch block, then in the deinit. This can lead to a crash on future memory allocations. This double-free manifests when BoringSSL cannot decode the public key from the bytes provided. This vulnerability is addressed in swift-crypto version 4.5.1.

CVSS Base Scores

version 3.1