GHSA-2528-jw5q-ww88

    Dashboard / Vulnerabilities / GHSA-2528-jw5q-ww88

    GHSA-2528-jw5q-ww88

    Published: 6 May 2026Last Modified: 6 May 2026

    Summary: phpseclib: guardrails needed on isPrime and randomPrime

    Details: ### Impact Anyone trying to generate a prime and testing the primality of a number. ### Patches https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575 ### Workarounds Using the GMP extension would probably help, assuming that one has its own guardrails. ### Resources https://github.com/phpseclib/phpseclib/commit/ad5dbdf2129f5e0fb644637770b7f33de8ca8575 https://www.usenix.org/system/files/conference/usenixsecurity25/sec25cycle1-prepub-599-shi-bing.pdf

    Affected packages

    Package

    Name: phpseclib/phpseclib

    Purl: pkg:composer/phpseclib/phpseclib

    Affected ranges

    Type: ECOSYSTEM

    Events:

    Introduced- 0.1.1
    Fixed -1.0.23

    Affected versions

    0.3.0
    0.3.1
    0.3.10
    0.3.5
    0.3.6
    0.3.7
    0.3.8
    0.3.9

    Common Vulnerability Scoring System

    Attack Vector
    Network
    Adjacent
    Local
    Physical
    Privileges Required
    None
    Low
    High
    User Interaction
    None
    Required
    Scope
    Unchanged
    Changed
    Confidentiality
    None
    Low
    High
    Integrity
    None
    Low
    High
    Availability
    None
    Low
    High