Skip to content

CWE-354: Improper Validation of Integrity Check Value

BaseLikelihood of exploit: Medium

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.

Improper validation of checksums before use results in an unnecessary risk that can easily be mitigated. The protocol specification describes the algorithm used for calculating the checksum. It is then a simple matter of implementing the calculation and verifying that the calculated checksum and the received checksum match. Improper verification of the calculated checksum and the received checksum can lead to far greater consequences.

Consequences

  • Integrity, Other: Modify Application Data, Other
  • Integrity, Other: Other
  • Non-Repudiation, Other: Hide Activities, Other

How to prevent it

  • Implementation: Ensure that the checksums present in messages are properly checked in accordance with the protocol specification before they are parsed and used.

Recent advisories

  • GHSA-5cwg-6vw7-rj6p — Forge: AES-GCM authentication bypass via unvalidated tagLength option
  • GHSA-jc66-7q78-782g — Forge: PKCS#12 MAC forgery and constant-key PBE via zero iteration count
  • EEF-CVE-2026-65625 — Attacker-controlled AES-GCM authentication tag length allows tag forgery in jose
  • GHSA-8hxf-qr8p-62x4 — zip: AES Entry HMAC Authentication Bypass on Premature EOF
  • GHSA-q6j5-fjx5-2mc3 — pnpm Has an Integrity Check Bypass via Missing Lockfile Integrity Field
  • CVE-2026-50128 — Mastodon is a free, open-source social network server based on ActivityPub.
  • GHSA-pvmv-cwg8-v6c8 — Zebra v4.4.0 still accepts V5 SIGHASH_SINGLE without a corresponding output
  • GHSA-cwfq-rfcr-8hmp — Zebra's Transparent SIGHASH_SINGLE Handling Diverges from zcashd for Corresponding Outputs
  • GHSA-fhh2-gg7w-gwpq — nginx-ui Backup Restore Allows Tampering with Encrypted Backups
  • GO-2026-4882 — Incus does not verify combined fingerprint when downloading images from simplestreams servers
  • GHSA-r6ph-v2qm-q3c2 — cryptography Vulnerable to a Subgroup Attack Due to Missing Subgroup Validation for SECT Curves
  • GHSA-q747-c74m-69pr — MantisBT lacks verification when changing a user's email address
  • GHSA-xw5q-g62x-2qjc — electron ASAR Integrity bypass by just modifying the content
  • GHSA-rm76-4mrf-v9r8 — vLLM uses Python 3.12 built-in hash() which leads to predictable hash collisions in prefix cache
  • GHSA-45x7-px36-x8w8 — Prefix Truncation Attack against ChaCha20-Poly1305 and Encrypt-then-MAC aka Terrapin

All advisories for CWE-354

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor