GHSA-c7ph-f7jm-xv4w: Pgp RPGP's Integrity Protection Of Encrypted Vulnerability

MODERATE
CWE-354
Published
Advisory Summary

GHSA-c7ph-f7jm-xv4w is a MODERATE rpgp's integrity protection of encrypted vulnerability (CWE-354: Improper Validation of Integrity Check Value) affecting Pgp libraries in the crates.io ecosystem. The issue involves rpgp's integrity protection of encrypted data was not always checked. Remediation is available by upgrading affected packages to version 0.19.0.

GHSA-c7ph-f7jm-xv4w at a Glance

CVE Identifier N/A
GHSA Identifier GHSA-c7ph-f7jm-xv4w
Severity MODERATE
CVSS v3.1 Base Score N/A
CWE Classification CWE-354: Improper Validation of Integrity Check Value
Affected Product Pgp
Package Ecosystem crates.io
Published Date
Last Updated

How to Fix GHSA-c7ph-f7jm-xv4w

To remediate this vulnerability, upgrade all affected Pgp dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.

pgp fixed: 0.19.0
Upgrade pgp to 0.19.0
Verify Direct and Transitive Dependencies

Run the following command in your project directory to verify that all resolved dependencies use the patched release:

inspect dependencies for pgp

How to Check if You Are Affected

To determine whether your application is affected by GHSA-c7ph-f7jm-xv4w, inspect your project dependencies for Pgp:

inspect dependencies for pgp

Analyze the terminal output to locate any version of Pgp in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 0.19.0), your application is affected.

Note: Verify declared build manifests and deployed runtime container environments.

Technical Details

Vulnerability Mechanism & Technical Analysis

This vulnerability is classified under CWE-354: Improper Validation of Integrity Check Value, where the product does not validate or incorrectly validates the integrity check values or "checksums" of a message. this may prevent it from detecting if the data has been modified or corrupted in transmission. In Pgp, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.

Source Advisory Statement

### Summary For some messages, rPGP returned incorrectly decrypted data without signaling that integrity protection was invalid. ### Details When decrypting SEIPD (Symmetrically Encrypted and Integrity Protected Data Packet), rPGP previously did not under all circumstances report the absence of valid integrity protection to callers of the library. ### Impact While the resulting invalid decryption output is not attacker controlled, its contents may be a security concern if an attacker can gain access to it. ### Attribution Discovered internally in the course of rPGP development work.

GHSA-c7ph-f7jm-xv4w Affected Pgp Versions

1 component(s)
Fixed Versions:
0.19.0
Product / Package Ecosystem Affected Versions Fixed Version
pgp
crates.io
≥ 0.16.0-alpha.0
< 0.19.0
0.19.0

References

Frequently Asked Questions

What is GHSA-c7ph-f7jm-xv4w?
GHSA-c7ph-f7jm-xv4w is a security vulnerability in Pgp involving rPGP's integrity protection of encrypted data was not always checked under CWE-354: Improper Validation of Integrity Check Value.
Which Pgp versions are affected?
Affected versions include releases prior to 0.19.0 across affected packages: pgp.
What version fixes GHSA-c7ph-f7jm-xv4w?
Upgrading to 0.19.0 (or the latest patched release for your respective branch) resolves the vulnerability.
Is pgp affected?
Yes, pgp is affected in releases prior to 0.19.0. Upgrade your dependency to 0.19.0 or later.
What CWE is associated with GHSA-c7ph-f7jm-xv4w?
GHSA-c7ph-f7jm-xv4w is classified under CWE-354: Improper Validation of Integrity Check Value (The product does not validate or incorrectly validates the integrity check values or "checksums" of a message. This may prevent it from detecting if the data has been modified or corrupted in transmission.).
How can I check crates.io dependencies for GHSA-c7ph-f7jm-xv4w?
Run the dependency tree command: 'inspect dependencies for pgp'. This command lists direct and transitive dependencies in your build configuration so you can verify if a vulnerable version is resolved.
Machine-readable OSV JSON OSV v1.5 Schema
Normalized schema output
{
  "schema_version" : "1.4.0",
  "id" : "GHSA-c7ph-f7jm-xv4w",
  "modified" : "2026-02-13T20:55:20Z",
  "published" : "2026-02-13T20:55:20Z",
  "aliases" : [ ],
  "summary" : "rPGP's integrity protection of encrypted data was not always checked",
  "details" : "### Summary\nFor some messages, rPGP returned incorrectly decrypted data without signaling that integrity protection was invalid.\n\n### Details\nWhen decrypting SEIPD (Symmetrically Encrypted and Integrity Protected Data Packet), rPGP previously did not under all circumstances report the absence of valid integrity protection to callers of the library.\n\n### Impact\nWhile the resulting invalid decryption output is not attacker controlled, its contents may be a security concern if an attacker can gain access to it.\n\n### Attribution\nDiscovered internally in the course of rPGP development work.",
  "severity" : [ {
    "type" : "CVSS_V4",
    "score" : "CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:L/VI:L/VA:N/SC:N/SI:N/SA:N"
  } ],
  "affected" : [ {
    "package" : {
      "ecosystem" : "crates.io",
      "name" : "pgp"
    },
    "ranges" : [ {
      "type" : "ECOSYSTEM",
      "events" : [ {
        "introduced" : "0.16.0-alpha.0"
      }, {
        "fixed" : "0.19.0"
      } ]
    } ]
  } ],
  "references" : [ {
    "type" : "WEB",
    "url" : "https://github.com/rpgp/rpgp/security/advisories/GHSA-c7ph-f7jm-xv4w"
  }, {
    "type" : "PACKAGE",
    "url" : "https://github.com/rpgp/rpgp"
  } ],
  "database_specific" : {
    "cwe_ids" : [ "CWE-354" ],
    "severity" : "MODERATE",
    "github_reviewed" : true,
    "github_reviewed_at" : "2026-02-13T20:55:20Z",
    "nvd_published_at" : null
  }
}