High
Security advisory
An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
- Products
- Not specified
- Affected versions
- Not specified
- Fixed versions
- Not specified
- CVEs
- CVE-2019-16058
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 1 Nov 2026, 09:22 UTC · Revision 1
Source evidence
An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.
osv:CVE-2019-16058
Complete source record
{
"id": "5abf5bde08a28b96daa4db716d5d8e884898f6bba50adf89c90e8907cb19019e",
"url": "https://osv.dev/vulnerability/CVE-2019-16058",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "CVE-2019-16058",
"summary": "An issue was discovered in the pam_p11 component 0.2.0 and 0.3.0 for OpenSC. If a smart card creates a signature with a length longer than 256 bytes, this triggers a buffer overflow. This may be the case for RSA keys with 4096 bits depending on the signature scheme.",
"evidence": "osv:CVE-2019-16058",
"products": [],
"severity": "high",
"structured": {
"id": "CVE-2019-16058",
"aliases": [
"CVE-2019-16058"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://github.com/opensc/pam_p11",
"type": "GIT",
"events": [
{
"introduced": "0"
},
{
"fixed": "d150b60e1e14c261b113f55681419ad1dfa8a76c"
}
],
"database_specific": {
"extracted_events": [
{
"range": [
{
"fixed": "d150b60e1e14c261b113f55681419ad1dfa8a76c"
}
],
"source": "REFERENCES_COMMIT"
}
]
}
}
],
"versions": [
"pam_p11-0.3.0",
"pam_p11-0.2.0",
"pam_p11-0.1.6"
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2019-16058.json",
"vanir_signatures": [
{
"id": "CVE-2019-16058-53eb61f9",
"digest": {
"threshold": 0.9,
"line_hashes": [
"162363753212461777081824812064729144627",
"216045659055189613445803810482430021434",
"70950728248496190425375449447116115015",
"154127084794894806416625549598014099001",
"226066714158580332592104571146303775909",
"236984839242435769405116835167087037706",
"168045242271497000429826848660957892415",
"103765529676600892212743505482397224936",
"113426758573064634728824859227545768477",
"74225506179505323341328657517246753981",
"249562561133291893300204519156253586322",
"75083263486971359263281513938742561136",
"184851543072915211469331104093339297418",
"31278750119548292869372104776925210947",
"1075937932852327229820200513082884387",
"115209400729526934431880045001090369921",
"77470968049125389952613629853199375656"
]
},
"source": "https://github.com/opensc/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c",
"target": {
"file": "src/pam_p11.c"
},
"deprecated": false,
"signature_type": "Line",
"signature_version": "v1"
},
{
"id": "CVE-2019-16058-8bee1f41",
"digest": {
"length": 1030,
"function_hash": "78493869453006783845009778640752102668"
},
"source": "https://github.com/opensc/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c",
"target": {
"file": "src/pam_p11.c",
"function": "key_verify"
},
"deprecated": false,
"signature_type": "Function",
"signature_version": "v1"
}
],
"vanir_signatures_modified": "2026-10-24T14:19:55Z"
}
}
],
"modified": "2026-10-24T14:19:55.679318551Z",
"provider": "osv",
"references": [
"https://github.com/OpenSC/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c"
],
"provider_metadata": {
"unresolved_ranges": [
{
"cpes": [
"cpe:2.3:a:opensc_project:opensc:0.2.0:*:*:*:*:*:*:*",
"cpe:2.3:a:opensc_project:opensc:0.3.0:*:*:*:*:*:*:*"
],
"vendor_product": "opensc_project:opensc",
"extracted_events": [
{
"range": [
{
"introduced": "0.2.0"
},
{
"last_affected": "0.2.0"
},
{
"introduced": "0.3.0"
},
{
"last_affected": "0.3.0"
}
],
"source": "CPE_STRING"
}
]
}
]
}
},
"related_cves": [
{
"value": "CVE-2019-16058",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 443505,
"published_at": "2019-09-06T18:15:15.507+00:00"
}