{
  "affected": [
    {
      "ranges": [
        {
          "database_specific": {
            "cpe": "cpe:2.3:a:pjsip:pjsip:*:*:*:*:*:*:*:*",
            "extracted_events": [
              {
                "introduced": "0"
              },
              {
                "fixed": "2.17"
              }
            ],
            "source": [
              "CPE_RANGE",
              "REFERENCES"
            ]
          },
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "5a457451fa2712ba18e12b01738e8ff3af2b26fd"
            },
            {
              "fixed": "c82123ea6f3c3652bbc9ebd5e9e658c301451687"
            }
          ],
          "repo": "https://github.com/pjsip/pjproject",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-2wcg-w3c4-48r7"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-121"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40892.json"
  },
  "details": "PJSIP is a free and open source multimedia communication library written in C. In 2.16 and earlier, a stack buffer overflow exists in pjsip_auth_create_digest2() in PJSIP when using pre-computed digest credentials (PJSIP_CRED_DATA_DIGEST). The function copies credential data using cred_info-\u003edata.slen as the length without an upper-bound check, which can overflow the fixed-size ha1 stack buffer (128 bytes) if data.slen exceeds the expected digest string length.",
  "id": "CVE-2026-40892",
  "modified": "2026-07-08T05:37:13.113604151Z",
  "published": "2026-04-21T19:55:26.876Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/40xxx/CVE-2026-40892.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/pjsip/pjproject/security/advisories/GHSA-2wcg-w3c4-48r7"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-40892"
    },
    {
      "type": "FIX",
      "url": "https://github.com/pjsip/pjproject/commit/c82123ea6f3c3652bbc9ebd5e9e658c301451687"
    }
  ],
  "schema_version": "1.7.5",
  "severity": [
    {
      "score": "CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U",
      "type": "CVSS_V4"
    }
  ],
  "summary": "PJSIP: Stack buffer overflow in pjsip_auth_create_digest2()"
}