Home / noir-lang / noir / CVE-2026-41197
CVE-2026-41197: is it exploited, and which versions of noir-lang noir are affected and fixed?
CVE-2026-41197 is an incorrect Calculation of Buffer Size vulnerability in noir-lang noir. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 13:38 UTC). Affected: brillig before 1.0.0-beta.19 (GitHub advisory GHSA-jj7c-x25r-r8r3). Fixed in 1.0.0-beta.19 (GitHub advisory GHSA-jj7c-x25r-r8r3). Severity: Critical (9.3, CVSS 4.0, from GitHub_M).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 13:38 UTC, CVE record November 19, 2026, 07:07 UTC and NVD November 19, 2026, 07:11 UTC.
What is CVE-2026-41197?
Brillig: Heap corruption in foreign call results with nested tuple arrays
Noir is a Domain Specific Language for SNARK proving systems that is designed to use any ACIR compatible proving system, and Brillig is the bytecode ACIR uses for non-determinism. Noir programs can invoke external functions through foreign calls. When compiling to Brillig bytecode, the SSA instructions are processed block-by-block in `BrilligBlock::compile_block()`. When the compiler encounters an `Instruction::Call` with a `Value::ForeignFunction` target, it invokes `codegen_call()` in `brillig_call/code_gen_call.rs`, which dispatches to `convert_ssa_foreign_call()`. Before emitting the foreign call opcode, the compiler must pre-allocate memory for any array results the call will return. This happens through `allocate_external_call_results()`, which iterates over the result types. For `Type::Array` results, it delegates to `allocate_foreign_call_result_array()` to recursively allocate memory on the heap for nested arrays. The `BrilligArray` struct is the internal representation of a Noir array in Brillig IR. Its `size` field represents the semi-flattened size, the total number of memory slots the array occupies, accounting for the fact that composite types like tuples consume multiple slots per element. This size is computed by `compute_array_length()` in `brillig_block_variables.rs`. For the outer array, `allocate_external_call_results()` correctly uses `define_variable()`, which internally calls `allocate_value_with_type()`. This function applies the formula above, producing the correct semi-flattened size. However, for nested arrays, `allocate_foreign_call_result_array()` contains a bug. The pattern `Type::Array(_, nested_size)` discards the inner types with `_` and uses only `nested_size`, the semantic length of the nested array (the number of logical elements), not the semi-flattened size. For simple element types this works correctly, but for composite element types it under-allocates. Foreign calls returning nested arrays of tuples or other composite types corrupt the Brillig VM heap. Version 1.0.0-beta.19 fixes this issue.
From the CVE record by GitHub_M, last updated April 25, 2026, 03:55 UTC.
Which versions are affected, and which fix it?
| Vendor | Product | Affected | Fixed or not affected from |
|---|---|---|---|
| noir-lang | noir | < 1.0.0-beta.19 |
As the CVE record by GitHub_M states it, last updated April 25, 2026. Version ranges are the CNA's; a version the record calls not affected is usually the fix.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| crates.io | brillig | < 1.0.0-beta.19 | 1.0.0-beta.19 | GHSA-jj7c-x25r-r8r3 |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated April 27, 2026. Summary: Brillig: Heap corruption in foreign call results with nested tuple arrays.
How severe is CVE-2026-41197?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.3 | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N | GitHub_M |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2026-41197 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: none; automatable: yes; technical impact: total (CISA ADP, April 24, 2026)
- EPSS
- 0.41% probability of exploitation activity in the next 30 days, percentile 37.4 (FIRST EPSS, scores of December 2, 2026)
What kind of flaw is it?
- CWE-131 Incorrect Calculation of Buffer Size
Where are the vendor advisories and references?
- https://github.com/noir-lang/noir/security/advisories/GHSA-jj7c-x25r-r8r3 x_refsource_CONFIRM
- https://github.com/noir-lang/noir/releases/tag/v1.0.0-beta.19 x_refsource_MISC
When was it published, and where is the official record?
- Reserved
- April 18, 2026
- Published
- April 23, 2026, 00:35 UTC
- CVE record updated
- April 25, 2026, 03:55 UTC by GitHub_M
- NVD
- Deferred, last modified June 17, 2026, 10:46 UTC
- Last checked
- CVE list November 19, 2026, 07:07 UTC; NVD November 19, 2026, 07:11 UTC; KEV December 3, 2026, 13:38 UTC; EPSS December 2, 2026
- Official record
- cve.org · NVD
Questions about CVE-2026-41197
Is CVE-2026-41197 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 13:38 UTC. FIRST's EPSS gives it a 0.41% chance of exploitation activity in the next 30 days (scores of December 2, 2026).
Which versions of noir-lang noir are affected by CVE-2026-41197?
brillig before 1.0.0-beta.19, per the GitHub advisory GHSA-jj7c-x25r-r8r3. The tables above give every range the sources list.
Which version fixes CVE-2026-41197?
1.0.0-beta.19, per the GitHub advisory GHSA-jj7c-x25r-r8r3. Check the vendor's advisory before you rely on it.
How severe is CVE-2026-41197?
Critical (9.3, CVSS 4.0, from GitHub_M). The severity table above shows each score with its source.
Where is the official record of CVE-2026-41197?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.