XS::libbrotli versions before 1.2.1.0 for Perl bundle a brotli library with an out-of-bounds write in the decoder
XS::libbrotli versions before 1.2.1.0 for Perl bundle a brotli library with an out-of-bounds write in the decoder. Affected versions compile a bundled brotli into static archives that dependent XS modules link against at build time, rather than using the system library. The bundled copy, 1.0.7 or 1.1.0 across the range, carries the decoder out-of-bounds write described in CVE-2026-111497. Version 1.2.1.0 updates it to brotli 1.2.1. XS::libbrotli has no Perl interface, so the decoder is reached through any dependent module that decompresses untrusted data with it. An attacker supplying a crafted brotli stream can corrupt decoder state, disclose memory, crash the process, or potentially execute arbitrary code. Upgrading the system brotli does not remediate this.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- < 1.2.1.0
Fixed in 1.2.1.0
Mitigation
Upgrade to XS-libbrotli 1.2.1.0 or later and reinstall every XS module built against it.
References
- Vendor advisory cve.org/CVERecord?id=CVE-2026-111497
- Release notes github.com/google/brotli/releases/tag/v1.2.1
- Release notes metacpan.org/release/SYBER/XS-libbrotli-1.2.1.0/…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.