x509-validation prior to version 1.4.8 did not enforce the pathLenConstraint value. Constrained CAs could accidentally (or deliberately) issue CAs below the maximum depth and x509-validation would accept certificates issued by the unauthorised intermediate CAs.
{
"osvs": "https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export",
"repository": "https://github.com/haskell/security-advisories",
"home": "https://github.com/haskell/security-advisories"
}"https://github.com/haskell/security-advisories/tree/main/advisories/published/2023/HSEC-2023-0006.md"
"https://github.com/haskell/security-advisories/blob/generated/osv-export/2023/HSEC-2023-0006.json"
"https://raw.githubusercontent.com/haskell/security-advisories/refs/heads/generated/osv-export/2023/HSEC-2023-0006.json"