{
  "id": "CVE-2026-40614",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-40614",
  "published_at": "2026-04-21T18:04:15.159Z",
  "title": "PJSIP: Heap buffer overflow in Opus codec decoding",
  "vendor": "pjsip",
  "product": "pjproject",
  "cvss": {
    "score": 8.8,
    "source": "nvd",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:R/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": "PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, there is a buffer overflow when decoding Opus audio frames due to insufficient buffer size validation in the Opus codec decode path. The FEC decode buffers (dec_frame[].buf) were allocated based on a PCM-derived formula: (sample_rate/1000) * 60 * channel_cnt * 2. At 8 kHz mono this yields only 960 bytes, but codec_parse() can output encoded frames up to MAX_ENCODED_PACKET_SIZE (1280) bytes via opus_repacketizer_out_range(). The three pj_memcpy() calls in codec_decode() copied input-\u003esize bytes without bounds checking, causing a heap buffer overflow.",
  "cwe": "CWE-122",
  "cpes": [
    "cpe:2.3:a:pjsip:pjsip:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 8.5,
    "nvd": 8.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "pjsip",
        "product": "pjproject",
        "ranges": [
          "\u003c= 2.16"
        ],
        "fixed_in": null
      }
    ],
    "references": [
      {
        "kind": "Vendor advisory",
        "url": "https://github.com/pjsip/pjproject/security/advisories/GHSA-j59p-4xrr-fp8g"
      },
      {
        "kind": "Patch",
        "url": "https://github.com/pjsip/pjproject/commit/17897e835818f8ee03b1806ddcd7b95ea16d2c0e"
      }
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
