Bug 2267500 (CVE-2024-27355)

Summary: CVE-2024-27355 php-phpseclib: denial of service
Product: [Other] Security Response Reporter: ybuenos
Component: vulnerabilityAssignee: Product Security <prodsec-ir-bot>
Status: NEW --- QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedKeywords: Security
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: php-phpseclib 1.0.23, php-phpseclib 2.0.47, php-phpseclib 3.0.36 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On: 2267502, 2267501    
Bug Blocks:    

Description ybuenos 2024-03-03 07:57:36 UTC
An 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).

https://gist.github.com/katzj/ee72f3c2a00590812b2ea3c0c8890e0b
https://github.com/phpseclib/phpseclib/blob/978d081fe50ff92879c50ff143c62a143edb0117/phpseclib/File/ASN1.php#L1129

Comment 1 ybuenos 2024-03-03 07:59:47 UTC
Created php-phpseclib tracking bugs for this issue:

Affects: epel-all [bug 2267502]
Affects: fedora-all [bug 2267501]