{
  "id": "CVE-2026-30909",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-30909",
  "published_at": "2026-03-08T00:46:12.862Z",
  "title": "Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows",
  "vendor": "TIMLEGGE",
  "product": "Crypt::NaCl::Sodium",
  "cvss": {
    "score": 9.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "Crypt::NaCl::Sodium versions through 2.002 for Perl has potential integer overflows.\n\nbin2hex, encrypt, aes256gcm_encrypt_afternm and seal functions do not check that output size will be less than SIZE_MAX, which could lead to integer wraparound causing an undersized output buffer.\n\nEncountering this issue is unlikely as the message length would need to be very large.\n\nFor bin2hex() the bin_len would have to be \u003e SIZE_MAX / 2 For encrypt() the msg_len would need to be \u003e SIZE_MAX - 16U For aes256gcm_encrypt_afternm() the msg_len would need to be \u003e SIZE_MAX - 16U For seal() the enc_len would need to be \u003e SIZE_MAX - 64U",
  "cwe": "CWE-190",
  "cpes": [
    "cpe:2.3:a:timlegge:crypt\\:\\:nacl\\:\\:sodium:*:*:*:*:*:perl:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 9.8,
    "nvd": 9.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "TIMLEGGE",
        "product": "Crypt::NaCl::Sodium",
        "ranges": [
          "\u003c= 2.002"
        ],
        "fixed_in": null
      }
    ],
    "solutions": [
      "Upgrade to version 2.003"
    ],
    "references": [
      {
        "kind": "Patch",
        "url": "https://github.com/cpan-authors/crypt-nacl-sodium/pull/24.patch"
      },
      {
        "kind": "Release notes",
        "url": "https://metacpan.org/release/TIMLEGGE/Crypt-NaCl-Sodium-2.003/source/Changes"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
