Vulnerability DatabaseGHSA-346h-749j-r28w

GHSA-346h-749j-r28w
PHP vulnerability analysis and mitigation

Overview

PHPECC (mdanter/ecc) was found to be vulnerable to multiple cryptographic side-channel attacks. The vulnerability was disclosed on April 25, 2024, and affects all versions from 0.x to 1.0.0. This critical severity vulnerability (CVSS score 9.1) impacts the cryptographic operations of the library, particularly in its ECDSA signature and EcDH implementations (GitHub Advisory).

Technical details

The vulnerability encompasses three main technical issues: First, the library is vulnerable to malleable ECDSA signature attacks due to improper signature canonicalization. Second, the GMPMath adapter implementation for ECDSA signatures uses the GNU Multiple Precision arithmetic library (GMP), which lacks constant-time implementations. Third, the EcDH implementation contains timing leaks in the scalar-point multiplication operations, despite using a Montgomery ladder, as the add(), mul(), and getDouble() methods on the Point class are not constant-time (GitHub Release).

Impact

The vulnerabilities can lead to serious security breaches. An attacker could potentially leak secret numbers and private keys through timing analysis. For ECDSA signatures, studying operation timing could reveal the secret number 'k' and subsequently the private key. In the case of ECDH, private keys can leak information about each bit through timing side-channels. This is particularly critical for cryptocurrency-related projects, which are among the primary users of this library (GitHub Advisory).

Exploitability

The vulnerability can be exploited remotely with low attack complexity and requires no privileges or user interaction. The CVSS base metrics indicate a Network attack vector with low complexity, making it particularly dangerous. The vulnerability has received a Critical severity rating with a CVSS score of 9.1, indicating its serious nature and ease of exploitation (GitHub Advisory).

Mitigation and workarounds

Users are advised to upgrade to version 2.0.0 of paragonie/ecc, which implements several security fixes. The new version introduces a mechanism for mitigating malleable ECDSA signatures, implements constant-time arithmetic operations, and fixes EcDH timing leaks through a ConstantTimeMath implementation. For migration, users should replace mdanter/ecc or phpecc/phpecc in their composer.json with paragonie/ecc:^2 and ensure that any Signer object instantiation includes the second constructor argument set to true (GitHub Release).

Additional resources


SourceThis report was generated using AI

Related PHP vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2026-44741HIGH8.8
  • PHP logoPHP
  • pimcore/admin-ui-classic-bundle
NoYesAug 12, 2026
CVE-2026-47233MEDIUM6.5
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-47132MEDIUM5.4
  • PHP logoPHP
  • thorsten/phpmyfaq
NoYesAug 12, 2026
CVE-2026-47234MEDIUM4.4
  • PHP logoPHP
  • admidio/admidio
NoYesAug 12, 2026
CVE-2026-49262LOW3
  • PHP logoPHP
  • aimeos/pagible
NoYesAug 12, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management