Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. phpseclib/phpseclib
  4. ›
  5. CVE-2023-49316

CVE-2023-49316: Phpseclib needs guardrails on large binaryfield integers

May 8, 2026

Anyone loading untrusted ASN1 files (eg. X509 certificates, RSA PKCS8 private or public keys, etc)

References

  • github.com/FriendsOfPHP/security-advisories/blob/master/phpseclib/phpseclib/CVE-2023-49316.yaml
  • github.com/advisories/GHSA-2f25-pfq3-c7h8
  • github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f
  • github.com/phpseclib/phpseclib/releases/tag/3.0.34
  • github.com/phpseclib/phpseclib/security/advisories/GHSA-2f25-pfq3-c7h8
  • nvd.nist.gov/vuln/detail/CVE-2023-49316

Code Behaviors & Features

Detect and mitigate CVE-2023-49316 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.0.0 before 3.0.34

Fixed versions

  • 3.0.34

Solution

Upgrade to version 3.0.34 or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption
  • CWE-834: Excessive Iteration

Source file

packagist/phpseclib/phpseclib/CVE-2023-49316.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Fri, 15 May 2026 12:19:38 +0000.