CVE-2026-57192

Source
https://cve.org/CVERecord?id=CVE-2026-57192
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57192.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-57192
Aliases
  • GHSA-qf8j-jp7h-c5hx
Downstream
Published
2026-10-27T21:25:40Z
Modified
2026-11-11T13:30:23Z
Severity
  • 6.0 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N CVSS Calculator
Summary
Asterisk: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch
Details

Asterisk is an open source private branch exchange and telephony toolkit. Prior to Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3, an authenticated attacker may cause a heap buffer overflow through an out-of-bounds write in the Codec2 decoder caused by a floor/ceil sample-count mismatch. The codec_codec2 module must be loaded and Codec2 must be configured on the attacked endpoint. The attacker must pass SIP authentication by username/password or source IP address matching, establish a call using Codec2, and send carefully crafted Codec2 audio packets. This issue is fixed in Asterisk 20.20.1, 21.12.3, 22.10.1, 23.4.1 and Certified Asterisk 20.7-cert11, 22.8-cert3.

Database specific
{
    "cna_assigner":  "GitHub_M",
    "cwe_ids":  [
        "CWE-125",
        "CWE-131",
        "CWE-787"
    ],
    "osv_generated_from":  "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57192.json"
}
References

Affected packages

Git / github.com/asterisk/asterisk

Affected ranges

Type
GIT
Repo
https://github.com/asterisk/asterisk
Events
Database specific
Show details
{
    "extracted_events":  [
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "20.20.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "0"
                },
                {
                    "fixed":  "20.7-cert11"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "21.0.0-pre1"
                },
                {
                    "fixed":  "21.12.3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "22.0.0-pre1"
                },
                {
                    "fixed":  "22.10.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "23.0.0-pre1"
                },
                {
                    "fixed":  "23.4.1"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "introduced":  "22.8-cert1-pre1"
                },
                {
                    "fixed":  "22.8-cert3"
                }
            ],
            "source":  "AFFECTED_FIELD",
            "strategy":  "StringRangeExpression"
        },
        {
            "range":  [
                {
                    "fixed":  "02e2d8d51efe1f811f2929224339cb1a35ffc079"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "4f5cad0611c67638a0a61cfedbe645045da8dd56"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "9b085d48fb66e90a0740ea59e26840421fd07acb"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "a0bc717b2261f4df7cdecc22b58a5fffbd1aa398"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "a2f1cc611f7d0f21faa03e8535009df3041c434c"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "aa40bc599a8e628859ef1c4fc944261423ceac0d"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "range":  [
                {
                    "fixed":  "d4ccfd55ffd7cf6d73a6e5cde347a7464c301006"
                }
            ],
            "source":  "REFERENCES_COMMIT"
        },
        {
            "original_tag":  "20.20.1",
            "range":  [
                {
                    "fixed":  "1f072600089c8321b8c4141f431742b06cae1c66"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "21.12.3",
            "range":  [
                {
                    "fixed":  "b9fda9d45703e9dbae5542300bb1f11a1abe2f37"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "22.10.1",
            "range":  [
                {
                    "fixed":  "f0e408a7b0d829c85bf15fa4b487870a50cb3000"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "23.4.1",
            "range":  [
                {
                    "fixed":  "9c6d578ea138e2a5df3bbc261b82a94424d6ce53"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "certified-20.7-cert11",
            "range":  [
                {
                    "fixed":  "19ea385cecb1b9403e3d924bcb3d770a04d50b49"
                }
            ],
            "source":  "REFERENCES_TAG"
        },
        {
            "original_tag":  "certified-22.8-cert3",
            "range":  [
                {
                    "fixed":  "3c1105ea3c80209b5420565d125dc2163eba436a"
                }
            ],
            "source":  "REFERENCES_TAG"
        }
    ]
}

Affected versions

20.*
20.10.0
20.10.0-rc1
20.10.0-rc2
20.11.0
20.11.0-rc1
20.11.1
20.12.0
20.12.0-rc1
20.12.0-rc2
20.13.0
20.13.0-rc1
20.14.0
20.14.0-rc1
20.15.0
20.15.0-rc1
20.15.0-rc2
20.15.0-rc3
20.15.1
20.15.2
20.16.0
20.16.0-rc1
20.16.0-rc2
20.17.0
20.17.0-rc1
20.17.0-rc2
20.18.0
20.18.0-rc1
20.18.1
20.18.2
20.19.0
20.19.0-rc1
20.19.0-rc2
20.2.0
20.2.0-rc1
20.2.1
20.20.0
20.20.0-rc1
20.3.0
20.3.0-rc1
20.3.1
20.4.0
20.4.0-rc1
20.4.0-rc2
20.5.0
20.5.0-rc1
20.5.1
20.5.2
20.6.0
20.6.0-rc1
20.6.0-rc2
20.7.0
20.7.0-rc1
20.7.0-rc2
20.8.0
20.8.0-rc1
20.8.1
20.9.0
20.9.0-rc1
20.9.1
20.9.2
20.9.3
21.*
21.0.0
21.0.0-pre1
21.0.0-rc1
21.0.1
21.0.2
21.1.0
21.1.0-rc1
21.1.0-rc2
21.10.0
21.10.0-rc1
21.10.0-rc2
21.10.0-rc3
21.10.1
21.10.2
21.11.0
21.11.0-rc1
21.11.0-rc2
21.12.0
21.12.0-rc1
21.12.0-rc2
21.12.1
21.12.2
21.2.0
21.2.0-rc1
21.2.0-rc2
21.3.0
21.3.0-rc1
21.3.1
21.4.0
21.4.0-rc1
21.4.1
21.4.2
21.4.3
21.5.0
21.5.0-rc1
21.5.0-rc2
21.6.0
21.6.0-rc1
21.6.1
21.7.0
21.7.0-rc1
21.7.0-rc2
21.8.0
21.8.0-rc1
21.9.0
21.9.0-rc1
22.*
22.10.0
22.10.0-rc1
22.8.2
22.9.0
22.9.0-rc1
22.9.0-rc2
23.*
23.0.0
23.0.0-pre1
23.0.0-rc1
23.0.0-rc2
23.1.0
23.1.0-rc1
23.1.0-rc2
23.2.0
23.2.0-rc1
23.2.1
23.2.2
23.3.0
23.3.0-rc1
23.3.0-rc2
23.4.0
23.4.0-rc1
certified-20.*
certified-20.7-cert1
certified-20.7-cert1-pre1
certified-20.7-cert1-rc1
certified-20.7-cert1-rc2
certified-20.7-cert10
certified-20.7-cert2
certified-20.7-cert3
certified-20.7-cert4
certified-20.7-cert5
certified-20.7-cert6
certified-20.7-cert7
certified-20.7-cert8
certified-20.7-cert9
certified-22.*
certified-22.8-cert1
certified-22.8-cert1-pre1
certified-22.8-cert1-rc1
certified-22.8-cert2

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57192.json"
vanir_signatures
[
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-427436af",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/9b085d48fb66e90a0740ea59e26840421fd07acb",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-4dbb4da3",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/4f5cad0611c67638a0a61cfedbe645045da8dd56",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-50a9f5f7",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/aa40bc599a8e628859ef1c4fc944261423ceac0d",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-64a56416",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/4f5cad0611c67638a0a61cfedbe645045da8dd56",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-8ff273eb",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/aa40bc599a8e628859ef1c4fc944261423ceac0d",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-9bd57485",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/d4ccfd55ffd7cf6d73a6e5cde347a7464c301006",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-a209d0dc",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/a2f1cc611f7d0f21faa03e8535009df3041c434c",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-a2fcbcde",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/a2f1cc611f7d0f21faa03e8535009df3041c434c",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-ab78d8b2",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/02e2d8d51efe1f811f2929224339cb1a35ffc079",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-ab9d6d88",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/d4ccfd55ffd7cf6d73a6e5cde347a7464c301006",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-acaeb466",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/a0bc717b2261f4df7cdecc22b58a5fffbd1aa398",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-c333b41b",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/a0bc717b2261f4df7cdecc22b58a5fffbd1aa398",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "function_hash":  "100468562760263957767580040956841261409",
            "length":  410
        },
        "id":  "CVE-2026-57192-cfa11354",
        "signature_type":  "Function",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/02e2d8d51efe1f811f2929224339cb1a35ffc079",
        "target":  {
            "file":  "codecs/codec_codec2.c",
            "function":  "codec2tolin_framein"
        }
    },
    {
        "deprecated":  false,
        "digest":  {
            "line_hashes":  [
                "329860350187942373081218824996371316123",
                "216982952069914286208973702062732329682",
                "312907261644729589469984353206453403896",
                "286570764247746309526474507985813116076"
            ],
            "threshold":  0.9
        },
        "id":  "CVE-2026-57192-d904a377",
        "signature_type":  "Line",
        "signature_version":  "v1",
        "source":  "https://github.com/asterisk/asterisk/commit/9b085d48fb66e90a0740ea59e26840421fd07acb",
        "target":  {
            "file":  "codecs/codec_codec2.c"
        }
    }
]
vanir_signatures_modified
"2026-11-11T13:30:23Z"