{
  "schema_version": "1.6.7",
  "package": {
    "repo": "rnpgp/rnp",
    "name": "rnp",
    "tier": "A",
    "release_stream": "0.18.x",
    "ecosystem": "GIT",
    "purl": "pkg:github/rnpgp/rnp"
  },
  "vulns": [
    {
      "schema_version": "1.6.7",
      "id": "CVE-2025-13470",
      "modified": "2025-11-21T00:00:00Z",
      "published": "2025-11-21T00:00:00Z",
      "summary": "RNP 0.18.0 Vulnerable PKESK session keys",
      "details": "In RNP version 0.18.0 a refactoring regression causes the symmetric \nsession key used for Public-Key Encrypted Session Key (PKESK) packets to\n be left uninitialized except for zeroing, resulting in it always being \nan all-zero byte array.\n\nAny data encrypted using public-key encryption \nin this release can be decrypted trivially by supplying an all-zero \nsession key, fully compromising confidentiality.\n\nThe vulnerability affects only public key encryption (PKESK packets).  Passphrase-based encryption (SKESK packets) is not affected.\n\nRoot cause: Vulnerable session key buffer used in PKESK packet generation.\n\n\n\nThe defect was introduced in commit `7bd9a8dc356aae756b40755be76d36205b6b161a` where initialization \nlogic inside `encrypted_build_skesk()` only randomized the key for the \nSKESK path and omitted it for the PKESK path.",
      "affected": [
        {
          "package": {
            "ecosystem": "GIT",
            "name": "rnpgp/rnp",
            "purl": "pkg:github/rnpgp/rnp"
          },
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.18.0"
                },
                {
                  "last_affected": "0.18.0"
                }
              ]
            }
          ],
          "versions": [
            "0.18.0"
          ]
        }
      ],
      "references": [
        {
          "type": "WEB",
          "url": "https://github.com/rnpgp/rnp/commit/7bd9a8dc356aae756b40755be76d36205b6b161a"
        },
        {
          "type": "WEB",
          "url": "https://launchpad.net/ubuntu/+source/rnp"
        },
        {
          "type": "WEB",
          "url": "https://aur.archlinux.org/packages/rnp"
        },
        {
          "type": "WEB",
          "url": "https://packages.gentoo.org/packages/dev-util/librnp"
        },
        {
          "type": "REPORT",
          "url": "https://bugzilla.redhat.com/show_bug.cgi?id=2415863"
        },
        {
          "type": "ADVISORY",
          "url": "https://access.redhat.com/security/cve/cve-2025-13402"
        },
        {
          "type": "ADVISORY",
          "url": "https://cve.ribose.com/advisories/ra-2025-11-20/"
        },
        {
          "type": "ADVISORY",
          "url": "https://github.com/rnpgp/rnp/releases/tag/v0.18.1"
        }
      ],
      "related": [
        "RA-2025-11-20"
      ],
      "severity": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:P/AU:Y/RE:H/U:Red"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N"
        }
      ],
      "database_specific": {
        "severity": "HIGH",
        "cna_assigner": "Ribose",
        "cwe_ids": [
          "CWE-330"
        ],
        "advisory_ids": [
          "RA-2025-11-20"
        ]
      }
    },
    {
      "schema_version": "1.6.7",
      "id": "CVE-2023-29480",
      "modified": "2023-04-11T00:00:00Z",
      "published": "2023-04-11T00:00:00Z",
      "summary": "Secret keys remain unlocked after usage in certain cases",
      "details": "In certain cases, some secret keys remain unlocked after usage, due to the premature destruction of an unnamed KeyLocker before it was able to re-lock keys.",
      "affected": [
        {
          "package": {
            "ecosystem": "GIT",
            "name": "rnpgp/rnp",
            "purl": "pkg:github/rnpgp/rnp"
          },
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.16.1"
                },
                {
                  "last_affected": "0.16.2"
                }
              ]
            }
          ]
        }
      ],
      "references": [
        {
          "type": "WEB",
          "url": "https://www.rnpgp.org/blog/"
        },
        {
          "type": "ADVISORY",
          "url": "https://cve.ribose.com/advisories/ra-2023-04-11/"
        }
      ],
      "related": [
        "RA-2023-04-11"
      ],
      "severity": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:H/UI:R/S:C/C:H/I:N/A:N"
        }
      ],
      "database_specific": {
        "severity": "MEDIUM",
        "cna_assigner": "Ribose",
        "cwe_ids": [
          "CWE-922"
        ],
        "advisory_ids": [
          "RA-2023-04-11"
        ]
      }
    },
    {
      "schema_version": "1.6.7",
      "id": "CVE-2023-29479",
      "modified": "2023-04-11T00:00:00Z",
      "published": "2023-04-11T00:00:00Z",
      "summary": "Hang when processing certain OpenPGP messages",
      "details": "Certain malformed OpenPGP messages could trigger incorrect parsing of PKESK/SKESK packets causing the library to hang.=",
      "affected": [
        {
          "package": {
            "ecosystem": "GIT",
            "name": "rnpgp/rnp",
            "purl": "pkg:github/rnpgp/rnp"
          },
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0.16.1"
                },
                {
                  "last_affected": "0.16.2"
                }
              ]
            }
          ]
        }
      ],
      "references": [
        {
          "type": "WEB",
          "url": "https://www.rnpgp.org/blog/"
        },
        {
          "type": "ADVISORY",
          "url": "https://open.ribose.com/advisories/ra-2023-04-11/"
        },
        {
          "type": "ADVISORY",
          "url": "https://cve.ribose.com/advisories/ra-2023-04-11/"
        }
      ],
      "related": [
        "RA-2023-04-11"
      ],
      "severity": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H"
        }
      ],
      "database_specific": {
        "severity": "MEDIUM",
        "cna_assigner": "Ribose",
        "cwe_ids": [
          "CWE-400"
        ],
        "advisory_ids": [
          "RA-2023-04-11"
        ]
      }
    },
    {
      "schema_version": "1.6.7",
      "id": "CVE-2021-33589",
      "modified": "2021-05-30T00:00:00Z",
      "published": "2021-05-29T16:00:00Z",
      "summary": "Key protection settings not copied after unprotect action",
      "details": "A key decrypted through `rnp_key_unprotect` will remain unprotected after after a subsequent call of `rnp_key_protect`. \n\nThis issue affects RNP: before 0.15.1.",
      "affected": [
        {
          "package": {
            "ecosystem": "GIT",
            "name": "rnpgp/rnp",
            "purl": "pkg:github/rnpgp/rnp"
          },
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "0.15.1"
                }
              ]
            }
          ]
        }
      ],
      "references": [
        {
          "type": "REPORT",
          "url": "https://bugzilla.mozilla.org/show_bug.cgi?id=1710290#c0"
        },
        {
          "type": "ADVISORY",
          "url": "https://open.ribose.com/advisories/ra-2021-05-30/"
        },
        {
          "type": "ADVISORY",
          "url": "https://cve.ribose.com/advisories/ra-2021-05-30/"
        }
      ],
      "related": [
        "RA-2021-05-30"
      ],
      "severity": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:N/A:N"
        }
      ],
      "database_specific": {
        "severity": "LOW",
        "cna_assigner": "Ribose",
        "cwe_ids": [
          "CWE-522",
          "CWE-922"
        ],
        "advisory_ids": [
          "RA-2021-05-30"
        ]
      }
    }
  ]
}
