spomky-labs/pki-framework is vulnerable to Regular Expression Denial of Service (ReDoS)
53
Medium Risk
PEM_REGEX in PEM.php uses unanchored lazy groups, so repeated -----BEGIN lines with no matching -----END marker cause cubic backtracking. PEM::fromString() and PEMBundle::fromString() run this regex on user supplied certificate or bundle text. A few kilobytes of this text use far more CPU than parsing thousands of real certificates. The fix anchors the pattern and allows only base64 content on single line labels.
You are affected if you are using a version that falls within the vulnerable range and you parse PEM certificate or bundle text from an untrusted source.
spomky-labs/pki-framework is vulnerable to Regular Expression Denial of Service (ReDoS) in versions 0.0.1 - 1.6.1.
Upgrade the spomky-labs/pki-framework library to the patch version.
Connect your repositories to instantly see whether vulnerable or malicious packages exist in your codebase.
Free. No credit card required.

I consent to receiving marketing communications based on Aikido’s Privacy Policy.
SOC 2Compliant
ISO 27001Compliant
ISO 42001Compliant© All Intel data is openly available and commercially licensed.