Bug 2294673 (CVE-2023-52892)

Summary: CVE-2023-52892 php-seclib: Incorrect allowed input via Subject Alternative Name fields
Product: [Other] Security Response Reporter: Patrick Del Bello <pdelbell>
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: 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: 2294675, 2294674    
Bug Blocks:    

Description Patrick Del Bello 2024-06-28 02:48:54 UTC
In phpseclib before 1.0.22, 2.x before 2.0.46, and 3.x before 3.0.33, some characters in Subject Alternative Name fields in TLS certificates are incorrectly allowed to have a special meaning in regular expressions (such as a + wildcard), leading to name confusion in X.509 certificate host verification.

https://github.com/phpseclib/phpseclib/commit/6cd6e8ceab9f2b55c8cd81d2192bf98cbeaf4627
https://github.com/phpseclib/phpseclib/issues/1943
https://github.com/phpseclib/phpseclib/releases/tag/3.0.33
https://github.com/x509-name-testing/name_testing_artifacts

Comment 1 Patrick Del Bello 2024-06-28 02:49:24 UTC
Created php-phpseclib tracking bugs for this issue:

Affects: epel-all [bug 2294675]
Affects: fedora-all [bug 2294674]