{
  "affected": [
    {
      "database_specific": {
        "unresolved_ranges": [
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.2.0"
              }
            ]
          },
          {
            "events": [
              {
                "introduced": "0"
              },
              {
                "last_affected": "0.3.0"
              }
            ]
          }
        ]
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d150b60e1e14c261b113f55681419ad1dfa8a76c"
            }
          ],
          "repo": "https://github.com/opensc/pam_p11",
          "type": "GIT"
        },
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "d150b60e1e14c261b113f55681419ad1dfa8a76c"
            }
          ],
          "repo": "https://github.com/opensc/pam_p11",
          "type": "GIT"
        }
      ]
    }
  ],
  "details": "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.",
  "id": "CVE-2019-16058",
  "modified": "2026-03-13T21:53:13.263296420Z",
  "published": "2019-09-06T18:15:15.507Z",
  "references": [
    {
      "type": "WEB",
      "url": "http://www.openwall.com/lists/oss-security/2019/09/12/1"
    },
    {
      "type": "FIX",
      "url": "https://github.com/OpenSC/pam_p11/commit/d150b60e1e14c261b113f55681419ad1dfa8a76c"
    }
  ],
  "severity": [
    {
      "score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H",
      "type": "CVSS_V3"
    }
  ]
}