CVE-2024-33851: Paragonie/ecc Mdanter/ecc Affected By Timing Vulnerability Vulnerability
MODERATECVE-2024-33851 is a MODERATE (CVSS 4.3) mdanter/ecc affected by timing vulnerability vulnerability (General Security Weakness) affecting Paragonie/ecc libraries in the Packagist ecosystem. The issue involves mdanter/ecc affected by timing vulnerability in cryptographic side-channels. Remediation is available by upgrading affected packages to version 2.0.1.
CVE-2024-33851 at a Glance
Security Impact
CVSS: 4.3
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N).
How to Fix CVE-2024-33851
To remediate this vulnerability, upgrade all affected Paragonie/ecc dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade paragonie/ecc to 2.0.1
Upgrade mdanter/ecc to Latest secure release
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for paragonie/ecc
How to Check if You Are Affected
To determine whether your application is affected by CVE-2024-33851, inspect your project dependencies for Paragonie/ecc:
inspect dependencies for paragonie/ecc
Analyze the terminal output to locate any version of Paragonie/ecc in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.0.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Paragonie/ecc, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2024-33851 Affected Paragonie/ecc Versions
2 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
paragonie/ecc
|
Packagist |
< 2.0.1
|
2.0.1
|
|
mdanter/ecc
|
Packagist |
≤ 1.0.0
|
|
References
Frequently Asked Questions
What is CVE-2024-33851?
Which Paragonie/ecc versions are affected?
What version fixes CVE-2024-33851?
Is paragonie/ecc affected?
Is mdanter/ecc affected?
What is the CVSS score of CVE-2024-33851?
What CWE is associated with CVE-2024-33851?
How can I check Packagist dependencies for CVE-2024-33851?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-3494-cfwf-56hw",
"modified" : "2024-11-04T21:24:44Z",
"published" : "2024-04-28T00:30:22Z",
"aliases" : [ "CVE-2024-33851" ],
"summary" : "mdanter/ecc affected by timing vulnerability in cryptographic side-channels",
"details" : "phpecc, as used in **all versions** of mdanter/ecc, as well as paragonie/ecc before 2.0.1, has a branch-based timing leak in Point addition. (This Composer package is also known as phpecc/phpecc on GitHub, previously known as the Matyas Danter ECC library.)\n\nParagon Initiative Enterprises [hard-forked phpecc/phpecc](https://github.com/phpecc/phpecc/issues/289) and discovered the issue in the original code, then released v2.0.1 which fixes the vulnerability. [The upstream code](https://github.com/phpecc/phpecc) is no longer maintained and remains vulnerable for all versions.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:L/A:N"
}, {
"type" : "CVSS_V4",
"score" : "CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "Packagist",
"name" : "paragonie/ecc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"fixed" : "2.0.1"
} ]
} ]
}, {
"package" : {
"ecosystem" : "Packagist",
"name" : "mdanter/ecc"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "0"
}, {
"last_affected" : "1.0.0"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2024-33851"
}, {
"type" : "WEB",
"url" : "https://github.com/phpecc/phpecc/issues/289"
}, {
"type" : "WEB",
"url" : "https://github.com/FriendsOfPHP/security-advisories/blob/master/mdanter/ecc/CVE-2024-33851.yaml"
}, {
"type" : "WEB",
"url" : "https://github.com/paragonie/phpecc/releases/tag/v2.0.0"
}, {
"type" : "WEB",
"url" : "https://github.com/paragonie/phpecc/releases/tag/v2.0.1"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "MODERATE",
"github_reviewed" : true,
"github_reviewed_at" : "2024-05-10T21:49:12Z",
"nvd_published_at" : "2024-04-27T22:15:08Z"
}
}