CVE-2024-27355
Official description Straight from the sourceThe vendor's or NVD's own wording, published unedited. Authoritative, but often terse — it says what broke, rarely what to do.
NVD · uneditedAn issue was discovered in phpseclib 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36. When processing the ASN.1 object identifier of a certificate, a sub identifier may be provided that leads to a denial of service (CPU consumption for decodeOID).
Technical summary Written by usOur analysis, written from the advisory, the CVSS vector and the affected-version data. It adds context the advisory leaves out, and never invents facts that are not in the source.
dbcve analysis · high confidenceA denial of service vulnerability exists in phpseclib's ASN.1 object identifier (OID) decoding function (decodeOID). When processing a certificate's ASN.1 OID, a specially crafted sub identifier can cause excessive CPU consumption, leading to service unavailability. The vulnerability affects versions 1.x before 1.0.23, 2.x before 2.0.47, and 3.x before 3.0.36.
Verify against the referenced sources before acting — the references below are authoritative for this CVE, this summary is not.
Affected products & versions What the vendor confirmedThe version ranges the vendor confirmed as vulnerable. If your version sits inside a range here, treat yourself as exposed until you have upgraded.
NVD · CPE data= 10.0>= 1.0.0, < 1.0.23>= 2.0.0, < 2.0.47>= 3.0.0, < 3.0.36CVSS breakdown How the score is builtThe industry scoring standard. It rates how the flaw is reached, what it takes to exploit, and what an attacker gains — the score is derived from those, not the other way round.
From the vector- Attack vector
- Network
- Complexity
- Low
- Privileges
- None
- User interaction
- None
- Scope
- Unchanged
- Confidentiality
- None
- Integrity
- None
- Availability
- High
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Am I affected? How to checkSteps we derive from the advisory and the affected-version data, so you can decide whether this CVE reaches your setup. They are a guide, not a scan — your own configuration is the authority.
dbcve checksWork through these to decide whether this CVE applies to you.
-
Locate phpseclib installationSearch for phpseclib files in the environment: check Composer vendor directory (vendor/phpseclib), PHP include paths, or Debian package system (dpkg -L phpseclib). Look for files containing 'phpseclib' in the filename.Affected if phpseclib files are found in the system
-
Determine installed phpseclib versionIf using Composer, check the version listed in vendor/composer/installed.json or composer.lock. If using Debian package, run 'dpkg -l phpseclib' to see the installed version. Alternatively, check the version.php file within the phpseclib library directory.Affected if The version found is 1.x < 1.0.23, 2.x < 2.0.47, or 3.x < 3.0.36
-
Identify ASN.1 OID decode functionality in useSearch source code for calls to decodeOID function or ASN1::decodeOID method. Look for code that parses X.509 certificates, public/private keys, or other ASN.1 DER encoded data. Search for 'decodeOID' or 'ASN1' class usage in application source files.Affected if The application code calls decodeOID or processes ASN.1 encoded certificates/keys from untrusted sources
-
Check Debian system package versionOn Debian 10 systems, run 'apt-cache policy phpseclib' to see available package versions, or 'dpkg-query -W phpseclib' to confirm if the package is installed and its version.Affected if The Debian phpseclib package version is below the fixed releases (1.0.23, 2.0.47, or 3.0.36)
-
Verify certificate processing from external sourcesReview application configuration and logs to determine if certificates from untrusted or external sources (such as client certificates, SAML assertions, or JWT tokens) are being processed using phpseclib.Affected if The application processes certificates or ASN.1 data originating from untrusted or external sources
A system is affected if phpseclib versions 1.x < 1.0.23, 2.x < 2.0.47, or 3.x < 3.0.36 are installed AND the decodeOID function is used to process ASN.1 OIDs from certificates, enabling a specially crafted OID to trigger excessive CPU consumption.
Generated from the published advisory. Verify against your own configuration.
Remediation Closing itWhat it takes to close this. Where a vendor fix exists we point at it; where none exists we say so plainly, and can build one. Effort estimates are scoped from the advisory, not from your codebase.
dbcve · scoped1.0.232.0.473.0.36
Upgrade phpseclib to version 1.0.23 or later (1.x), 2.0.47 or later (2.x), or 3.0.36 or later (3.x). If upgrading is not immediately feasible, consider rate limiting or restricting certificate processing from untrusted sources.
phpseclib 1.0.23 (for 1.x), 2.0.47 (for 2.x), or 3.0.36 (for 3.x)
- 1. Identify the phpseclib major version in use (1.x, 2.x, or 3.x) by checking your composer.json or vendor directory.
- 2. For phpseclib 1.x: Update to version 1.0.23 or later (e.g., composer require phpseclib/phpseclib:^1.0.23).
- 3. For phpseclib 2.x: Update to version 2.0.47 or later (e.g., composer require phpseclib/phpseclib:^2.0.47).
- 4. For phpseclib 3.x: Update to version 3.0.36 or later (e.g., composer require phpseclib/phpseclib:^3.0.36).
- 5. Run composer update to apply the changes.
- 6. Test the application to ensure the upgrade does not break functionality.
Generated from the published advisory — verify against the referenced sources before acting.
- Consultation2.0 h
- Implementation2.0 h
- Testing4.0 h
- Review / QA2.0 h
An estimate, not a bill — we confirm scope with you before any work starts. Need it this week? Rush from $2,752.
Scan for this in your stack
Free · runs locallyCheck whether your project pulls in CVE-2024-27355 — or any other known-vulnerable package — straight from your lock files. Free and open source; it runs locally and uploads nothing.
References Go to the primary sourcePrimary sources — vendor advisories, patches and trackers. Where our summary and a reference disagree, the reference wins.
Primary sourcesPractitioner notes
ContributedPeer-ranked notes from engineers who’ve handled CVE-2024-27355 in production — separate from our analysis above.
The advisory tells you what broke. It rarely tells you what actually worked. If you’ve dealt with this one, that detail is what the next engineer is searching for.
- The version that genuinely resolved it — not the one the vendor claimed
- A config change or rule that shut the vector down
- A gotcha in the upgrade path that cost you an afternoon
No notes yet
Be the first to add a field note for this CVE — a mitigation you’ve verified, a version caveat, or a link to a working fix. Sign in above to contribute.
A place for practitioners to share what actually worked: a mitigation you’ve tested, a configuration change, a version- or environment-specific caveat, or a link to a verified patch. The most useful notes rise to the top as peers upvote them, so the signal stays high.
- Verified mitigations, workarounds, and config changes
- Version or environment caveats, and links to real fixes
- No weaponised exploit code, or anything meant to cause harm
- No spam, self-promotion, credentials, or personal data