x509-validation does not enforce pathLenConstraint
Summary
HSEC-2023-0006: x509-validation does not enforce pathLenConstraint. Affects x509-validation versions >= 1.4.0, < 1.4.8. Fixed in 1.4.8. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The x509-validation package is a component of the Hackage ecosystem. It provides functionality for validating X.509 certificates. X.509 is a standard format for public key certificates used in various cryptographic applications. The x509-validation package is responsible for ensuring the validity and integrity of these certificates.
Vulnerability Detail
The x509-validation package, prior to version 1.4.8, suffers from a vulnerability where it does not enforce the pathLenConstraint value. This means that constrained Certification Authorities (CAs) could mistakenly or intentionally issue CAs below the maximum depth. As a result, x509-validation would accept certificates issued by these unauthorized intermediate CAs. This vulnerability poses a risk to the integrity and security of the certificate validation process, potentially allowing for the acceptance of invalid or compromised certificates.
How To Fix
Minimum fixed version
1.4.8
This is the first release that contains the fix.
Tip — Not sure which version your app runs? Vulert can match this fix to it. Scan free →
Workaround
There is no specific workaround mentioned for this vulnerability.
Conclusion
The x509-validation package prior to version 1.4.8 is vulnerable to a pathLenConstraint enforcement issue. This vulnerability allows for the acceptance of certificates issued by unauthorized intermediate CAs, potentially compromising the integrity and security of the certificate validation process. It is recommended to update the package to version 1.4.8 or later to mitigate this vulnerability. For further support on vulnerability remediation, please contact DevNack.com.
See every vulnerability recorded for x509-validation →
FAQ
The x509-validation package is a component of the Hackage ecosystem that provides functionality for validating X.509 certificates.
This vulnerability allows for the acceptance of certificates issued by unauthorized intermediate CAs, potentially compromising the integrity and security of the certificate validation process.
To fix this vulnerability, update the x509-validation package to version 1.4.8 or later.
No specific workarounds have been mentioned for this vulnerability.
For more information about this vulnerability, refer to the source link provided in the security advisory database.