Advisory

GHSA-2f25-pfq3-c7h8

Also known as: CVE-2023-49316

Summary

Phpseclib needs guardrails on large binaryfield integers

Details

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

Patches
https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f

Workarounds
No.

References
https://github.com/phpseclib/phpseclib/commit/964d78101a70305df33f442f5490f0adb3b7e77f
https://www.usenix.org/system/files/usenixsecurity25-shi-bing.pdf

Severity

High Basis: The source's own band: HIGH

Dates

Published
2026-05-08 23:06 UTC
Modified
2026-05-08 23:26 UTC

Affected packages and fixes

phpseclib/phpseclib

Packagist · All systems

Affected

  • introduced 3.0.0, fixed 3.0.34 (ecosystem)

Fixed versions

3.0.34

Fix

The export has no generic command for this ecosystem.

Fix commands are the export's own generic commands. Ojuju never runs them. Check them against your setup first.

Check your own computer: guard packages check

View this record on OSV.dev

Source

Source: GitHub Advisory Database (reviewed advisories) · CC BY 4.0

Sources & licences