CVE-2024-33851:
mdanter/ecc affected by timing vulnerability in cryptographic side-channels
4.3
CVSS Score
3.1
Basic Information
CVE ID
GHSA ID
EPSS Score
0.26845%
CWE
-
Published
4/28/2024
Updated
11/4/2024
KEV Status
No
Technology
PHP
Technical Details
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N
Package Name | Ecosystem | Vulnerable Versions | First Patched Version |
---|---|---|---|
paragonie/ecc | composer | >= 0, < 2.0.1 | 2.0.1 |
mdanter/ecc | composer | <= 1.0.0 |
Vulnerability Intelligence
Miggo AI
Root Cause Analysis
The vulnerability stems from non-constant-time comparisons in point addition operations. The original implementation used conditional branches to check if points were identical (requiring doubling) or additive inverses (returning infinity), creating measurable timing differences. The paragonie/phpecc
release notes explicitly reference fixing a branch-based timing leak in point addition, and their mitigation involved replacing the conditional logic with constant-time operations. While other functions (mul()
, getDouble()
) were mentioned in context of side-channel fixes, the CVE specifically identifies point addition as the vulnerable operation based on the pseudocode example and vulnerability description.