Skip to main content

musl libc CVE-2026-107891

HIGH
2026-10-21
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Submit crafted complex regex to application
  2. Exploit
    Trigger integer overflow in regcomp sizing
  3. Execution
    Undersized heap allocation and out-of-bounds write
  4. Impact
    Process crash or possible code execution

Vulnerability Assessment

Exploitation Conditions

The application MUST compile attacker-controlled regular expressions through musl libc's regcomp(); the overflow is triggered by the size and complexity of the regex pattern itself, not by the subject data being matched. Exposure is limited to systems linking musl libc versions 0.5.0 through 1.2.6 (notably Alpine Linux, OpenWrt, and embedded builds). It is NOT exploitable where the application only compiles static or trusted regexes. The readily achievable outcome is a crash; reliable code execution further depends on application-specific heap layout and concurrent execution, which significantly limits escalation beyond DoS.

Impact

No CVSS, EPSS, KEV, or POC data is provided for this CVE, so quantitative exploitation signals are entirely absent - this must be weighed qualitatively. The advisory confirms only a reliable denial-of-service (predictable crash); arbitrary code execution is explicitly hedged as 'possible depending on the application,' not demonstrated, so it should not be treated as confirmed. The decisive risk gate is a narrow precondition: the vulnerability is reachable only when an application compiles regular expressions originating from an untrusted source via musl's regcomp - a design pattern that exists but is far from universal, which materially lowers real-world exposure despite musl's large deployment footprint. There is no public exploit identified at time of analysis and no evidence of active exploitation, so this is not a drop-everything emergency; however, musl's ubiquity in Alpine-based containers means the latent attack surface is broad wherever user-supplied regex compilation occurs. Net assessment: medium priority - patch through distro/base-image updates on a normal cadence, and prioritize any service that accepts externally-controlled regex patterns. Authentication requirements cannot be confirmed because no CVSS vector was supplied.

Exploit ScenarioDerived

An attacker supplies a maliciously large or complex regular expression to an application feature that compiles untrusted patterns through musl's regcomp (for example a user-configurable search filter, log-matching rule, or WAF pattern). The crafted pattern triggers an integer overflow, producing an undersized heap allocation and an out-of-bounds heap write that reliably crashes the process, with potential for code execution depending on heap state and concurrency. No public proof-of-concept was identified at time of analysis.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Oct 21, 2026

Multiple integer overflows in musl libc's regcomp() allow a crafted regular-expression pattern to produce undersized heap allocations and out-of-bounds writes. Any application that compiles attacker-supplied regexes through musl 0.5.0 through 1.2.6 is exposed - notably Alpine Linux, OpenWrt, and embedded musl-linked builds - with a predictable crash as the readily achievable outcome and code execution possible only in application-specific heap/concurrency conditions. Exposure requires unauthenticated remote input reaching regcomp(); no public exploit code and no CISA KEV entry were identified at time of analysis, so quantitative exploitation signals (CVSS, EPSS, KEV, POC) are entirely absent and the risk must be weighed qualitatively.

RemediationAI

Vendor-released patch: musl 1.2.7, and a standalone patch attached to the oss-security advisory (https://seclists.org/oss-sec/2026/q4/289) for backporting to existing 0.5.0-1.2.6 builds. Rebuild all musl-linked binaries and container images after applying the fix, since statically linked applications will not pick up a shared-library update; for Alpine, track the musl package revision and rebuild dependent images rather than assuming a base-image pull suffices. Where patching is not immediately possible, the most effective control is architectural: prevent untrusted input from reaching regcomp() - reject or escape user-supplied regexes at API boundaries, whitelist fixed/validated patterns, or lower per-request regex length and complexity limits, at the cost of losing user-defined pattern functionality. Applying seccomp/AppArmor confinement, running the regex-parsing service with a reduced heap-consuming privilege set, or deploying it in a restart-on-crash supervisor will convert potential heap corruption into an observable crash but will not eliminate the overflow itself. Note these compensating controls carry side effects (feature loss, operational noise) and are not substitutes for the upstream patch.

Affected ProductsAI

All musl libc releases from 0.5.0 through 1.2.6 contain the vulnerable regcomp code; version 1.2.7 is the first release expected to include the fix. Practically, this means every musl-linked distribution and image in that window - Alpine Linux (including container base images built on affected musl versions), OpenWrt and other embedded router/firmware toolchains, and statically linked or musl-cross-compiled binaries - is in scope wherever an application compiles untrusted regexes. musl libc is frequently statically linked, so rebuilding and redistributing dependent binaries is required rather than simply upgrading a shared library. No CPE identifiers are published for this CVE; the vendor disclosure is the oss-security advisory at https://seclists.org/oss-sec/2026/q4/289.

Affects your stack

Find out whether the stacks and servers you run are on an affected version.

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is the POSIX regular-expression compiler (regcomp) in musl libc, a small, standards-focused C library widely used by Alpine Linux, OpenWrt and many embedded/firmware builds. The root cause class is integer overflow during size computation: when computing allocation sizes from the parsed regex structure, the size and complexity of the pattern itself (not the subject data being matched) can drive length or count arithmetic past the representable range, yielding a wrapped, too-small allocation followed by a write beyond its bounds. Because the flaw lives in the compiler and is reached only through the regcomp() API, the attack surface is precisely those applications that accept regexes from untrusted sources - pattern-matching engines, search/filter endpoints, rule or configuration importers, log/IDS signature parsers. In the assessed CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H model, availability impact is high (crash/DoS) while integrity impact is low and confidentiality impact none; exploitation requires a high-complexity, application-specific heap layout and concurrent execution for anything beyond DoS. No CPE data or CWE assignment accompanies this record; the oss-security posting is the sole reference.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

vuln.today AI 6.5 MEDIUM

Regex may arrive over the network (AV:N); controlled heap corruption beyond crashing is complex (AC:H); no attacker privilege is needed against the library (PR:N); confirmed impact is DoS (A:H).

3.1 AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
4.0 AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N

Description PRE-NVD

Disclosed via oss-security. NVD scoring and full description are pending.

Executive ViewAI

Why It Matters

A memory-safety flaw in musl libc versions 0.5.0 through 1.2.6 affects the C library underpinning Alpine Linux, OpenWrt, and many container and embedded builds, creating a denial-of-service risk wherever untrusted regular expressions are compiled. The readily achievable outcome is application crash, with code execution possible only under narrow application-specific heap and concurrency conditions; no public exploit identified at time of analysis. Leadership should care because musl is pervasive in cloud-native and edge infrastructure, and with no vendor-released patch identified at time of analysis, exposure must be managed through input controls and asset inventory until a fix ships.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis; interim mitigations include rejecting or strictly length-limiting and character-allowlisting untrusted regex patterns before regcomp(), disabling features that accept user-supplied regular expressions, fronting exposed services with WAF or input filtering, running affected services with resource limits and sandboxing (seccomp/containers) to contain crashes, and monitoring for abnormal process termination until a musl update is released.

Threat Intelligence Overview

Prevalence
High
core C library in Alpine Linux and many container/embedded deployments
Data Quality
1 sources
Confidence: Low

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS N/A
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

Attack Technique

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy