Creation of Immutable Text Using String Concatenation Affecting buildah package, versions <2:1.43.1-1.amzn2023.0.4


Severity

Recommended
0.0
high
0
10

Based on Amazon Linux security rating.

Threat Intelligence

EPSS
0.41% (36th 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-BUILDAH-22524578
  • published13 Nov 2026
  • disclosed27 Oct 2026

Introduced: 27 Oct 2026

NewCVE-2026-78661  (opens in a new tab)
CWE-1046  (opens in a new tab)

How to fix?

Upgrade Amazon-Linux:2023 buildah to version 2:1.43.1-1.amzn2023.0.4 or higher.
This issue was patched in ALAS2023-2026-3451.

NVD Description

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

When coalescing adjacent text nodes in addText and fosterParent, appending to an existing TextNode's Data via string concatenation (n.Data += text) reallocated and copied the accumulated string on every token. Inputs containing many short text runs separated by ignored end tags (such as "a</x>") caused O(n^2) allocations and byte copies. Accumulate coalesced text in per-node byte slices during parsing and materialize Data strings once at the end of parse.

CVSS Base Scores

version 3.1