Skip to main content

Boteraser | Website and Server Security Solutions

🛡️ CVE-2026-23519 — cmov

🟠 CVSS 8.0 — High ⚠️ Exploit Public CWE-203 OSV
8.0
CVSS Score
0 Low4 Medium7 High9 Critical10

Description

RustCrypto Utilities cmov: thumbv6m-none-eabi compiler emits non-constant time assembly when using cmovnz

Summary

thumbv6m-none-eabi (Cortex M0, M0+ and M1) compiler emits non-constant time assembly when using cmovnz (portable version). I did not found any other target with the same behaviour but I did not go through all targets supported by Rust.

Details

It seems that, [during mask computation](https://github.com/RustCrypto/utils/blob/9e555db060c80f4669d804f448a524a37d201b32/cmov/src/portable.rs#L78), an LLVM optimisation pass is detecting that [bitnz](https://github.com/RustCrypto/utils/blob/9e555db060c80f4669d804f448a524a37d201b32/cmov/src/portable.rs#L13) is returning 0 or 1, that can be interpreted as a boolean. This intermediate value is not masked by a call to black_box and thus the subsequent [.wrapping_sub(1)](https://github.com/RustCrypto/utils/blob/9e555db060c80f4669d804f448a524a37d201b32/cmov/src/portable.rs#L78C1-L78C84) can be interpreted as a conditional bitwise conditional not.

PoC

This is an attempt at having a minimal faulty code. In a library crate with an up-to-date cmov as only dependency, the content of src/lib.rs is:

```rust

#![no_std]

use cmov::Cmov;

#[inline(never)]

pub fn test_ct_cmov(a: &mut u8, b: u8, c: u8) {

a.cmovnz(&b, c);

}

```

The resulting assembly emitted (shown using cargo asm --release --target thumbv6m-none-eabi that uses [cargo-show-asm](https://crates.io/crates/cargo-show-asm)):

<details>

<summary>Collapsed assembly</summary>

```asm

.section .text.not_ct::test_ct_cmov,"ax",%progbits

.globl not_ct::test_ct_cmov

.p2align 1

.type not_ct::test_ct_cmov,%function

.code 16

.thumb_func

not_ct::test_ct_cmov:

.fnstart

.cfi_sections .debug_frame

.cfi_startproc

.save {r7, lr}

push {r7, lr}

.cfi_def_cfa_offset 8

.cfi_offset lr, -4

.cfi_offset r7, -8

.setfp r7, sp

add r7, sp, #0

.cfi_def_cfa_register r7

.pad #8

sub sp, #8

movs r3, #0

lsls r2, r2, #24

bne .LBB0_2

mvns r3, r3

.LBB0_2:

ldrb r2, [r0]

str r3, [sp, #4]

str r3, [sp]

mov r3, sp

@APP

@NO_APP

ldr r3, [sp]

bics r1, r3

ands r2, r3

adds r1, r2, r1

strb r1, [r0]

add sp, #8

pop {r7, pc}

```

</details>

The non-constant time assembly is:

```asm

bne .LBB0_2

mvns r3, r3

.LBB0_2:

```

Impact

The exact impact is unclear, especially since cmov clearly warns users that the portable version is best-effort.

How this vulnerability can be exploited

This issue can be reached over the network, attack complexity is high, an attacker needs no privileges on the target. No user interaction is required. Rated impact: confidentiality high, integrity none, availability none.

CVSS metrics in full

The score comes from this vector: CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N

  • Attack vector: Network — reachable from anywhere that can route to the service.
  • Attack complexity: High — the attacker first has to win a race, learn a secret or otherwise prepare the target.
  • Attack requirements: None — no deployment-specific condition has to hold.
  • Privileges required: None — an unauthenticated stranger can try it.
  • User interaction: None — nobody has to be tricked into anything.
  • Confidentiality impact: High — total loss, or loss the attacker controls.
  • Integrity impact: None.
  • Availability impact: None.

Weakness class

CVE-2026-23519 is classified as CWE-203: Observable Discrepancy. The product behaves differently or sends different responses under different circumstances in a way that is observable to an unauthorized actor.

Affected software

CVE-2026-23519 is recorded against 1 package.

  • cmov

Timeline and source

Published on 15 January 2026 and last revised on 7 August 2026. A public exploit is known to exist, which raises the urgency of patching considerably. A vendor advisory or fix has been published. Record sourced from OSV.

References

github.com (Web)
nvd.nist.gov (Advisory)
github.com (Web)
github.com (Package)
rustsec.org (Web)

Other advisories for this package

cmov has other advisories on record. If you are patching this one, these are worth checking on the same host:

Same weakness in other software

These advisories are the same class of weakness (CWE-203: Observable Discrepancy) in other software:

Details

Severity HIGH
CVSS Score 8.0
CVSS Vector CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:H/SI:N/SA:N
CWE CWE-203
Public Exploit ⚠️ Yes
Source OSV
Published 2026-01-15
Updated 2026-08-20
Modified 2026-08-07

Affected Packages

Software From version Fixed in
cmov — —

Similar Threats

Exploit Protection

Are you running cmov?

CVE-2026-23519 carries CVSS 8.0 High rating and a public exploit already exists. BotEraser checks your installation against this and other known CVE records, and blocks IPs associated with exploit activity.

Check My Site For CVE-2026-23519 →

No credit card required  ·  Results in minutes

ⓘ Data Notice: The information presented above has been compiled from publicly available internet sources. Boteraser aggregates this data solely for informational purposes and does not independently classify, evaluate, or endorse any findings about the vulnerabilities listed. The accuracy and completeness of this information is the sole responsibility of the original publishers. Boteraser and its operators accept no liability for any decisions made based on this data.

Browse related advisories

All advisoriesCVECVE 2026
✓