title: BER/CER/DER decoder panics on invalid input
description: NLnet Labs’ bcder library up to and including version 0.7.2 panics while decoding certain invalid input data rather than rejecting the data with an error. This can affect both the actual decoding stage as well as accessing content of types that utilized delayed decoding.
problem types: CWE-228: Improper Handling of Syntactically Invalid Structure
affected:
{
vendor: NLnet Labs
product: bcder
versions:
version: *, status: affected, lessThan: 0.7.3, versionType: semver
version: 0.7.3, status: unaffected, lessThan: *, versionType: semver
defaultStatus: unaffected
}
metrics:
format: CVSS
scenarios: GENERAL
cvssV3_1: [
version: 3.1
baseScore: 7.5
baseSeverity: HIGH
vectorString: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
]
solutions: This issue is fixed in 0.7.3 and all later versions.