CVE-2023-37457

Source
https://cve.org/CVERecord?id=CVE-2023-37457
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-37457.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2023-37457
Aliases
  • GHSA-98rc-4j27-74hh
Downstream
Published
2023-12-14T19:43:30Z
Modified
2026-10-28T10:38:47Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
Asterisk's PJSIP_HEADER dialplan function can overwrite memory/cause crash when using 'update'
Details

Asterisk is an open source private branch exchange and telephony toolkit. In Asterisk versions 18.20.0 and prior, 20.5.0 and prior, and 21.0.0; as well as ceritifed-asterisk 18.9-cert5 and prior, the 'update' functionality of the PJSIP_HEADER dialplan function can exceed the available buffer space for storing the new value of a header. By doing so this can overwrite memory or cause a crash. This is not externally exploitable, unless dialplan is explicitly written to update a header based on data from an outside source. If the 'update' functionality is not used the vulnerability does not occur. A patch is available at commit a1ca0268254374b515fa5992f01340f7717113fa.

Database specific
{
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
        "CWE-120"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/37xxx/CVE-2023-37457.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": [
        {
            "cpe": "cpe:2.3:a:digium:asterisk:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "0"
                },
                {
                    "last_affected": "18.20.0"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:digium:asterisk:*:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "19.0.0"
                },
                {
                    "last_affected": "20.5.0"
                }
            ],
            "source": "CPE_RANGE"
        },
        {
            "cpe": "cpe:2.3:a:digium:asterisk:21.0.0:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "21.0.0"
                },
                {
                    "last_affected": "21.0.0"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:13.13.0:*:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "13.13.0"
                },
                {
                    "last_affected": "13.13.0"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:13.13.0:rc1:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "13.13.0-rc1"
                },
                {
                    "last_affected": "13.13.0-rc1"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:13.13.0:rc2:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "13.13.0-rc2"
                },
                {
                    "last_affected": "13.13.0-rc2"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:16.8.0:-:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "16.8.0-NA"
                },
                {
                    "last_affected": "16.8.0-NA"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:18.9:cert1:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "18.9-cert1"
                },
                {
                    "last_affected": "18.9-cert1"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:18.9:cert2:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "18.9-cert2"
                },
                {
                    "last_affected": "18.9-cert2"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:18.9:cert3:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "18.9-cert3"
                },
                {
                    "last_affected": "18.9-cert3"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:18.9:cert4:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "18.9-cert4"
                },
                {
                    "last_affected": "18.9-cert4"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "cpe": "cpe:2.3:a:sangoma:certified_asterisk:18.9:cert5:*:*:*:*:*:*",
            "range": [
                {
                    "introduced": "18.9-cert5"
                },
                {
                    "last_affected": "18.9-cert5"
                }
            ],
            "source": "CPE_STRING"
        },
        {
            "range": [
                {
                    "fixed": "a1ca0268254374b515fa5992f01340f7717113fa"
                }
            ],
            "source": "REFERENCES_COMMIT"
        }
    ]
}

Affected versions

13.*
13.13.0
13.13.0-rc1
13.13.0-rc2
16.*
16.8.0-NA
18.*
18.17.0
18.17.0-rc1
18.17.1
18.18.0
18.18.0-rc1
18.18.1
18.19.0
18.19.0-rc1
18.19.0-rc2
18.20.0
18.20.0-rc1
18.9-cert1
18.9-cert2
18.9-cert3
18.9-cert4
18.9-cert5
20.*
20.2.0
20.2.0-rc1
20.2.1
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
21.*
21.0.0
= 21.*
= 21.0.0

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-37457.json"
vanir_signatures
[
    {
        "deprecated": false,
        "digest": {
            "line_hashes": [
                "159548957906824277854538295288850676053",
                "239929051654971719448622866075717330742",
                "327544480914766547304774939153046282095",
                "22037373518915781682818387149426104403",
                "52582478101052646613052143770202268734",
                "13260270649188225194790817830413265206",
                "155712923347818368736013152122905932088",
                "122054581060142298997311705906553735862"
            ],
            "threshold": 0.9
        },
        "id": "CVE-2023-37457-d5969b49",
        "signature_type": "Line",
        "signature_version": "v1",
        "source": "https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa",
        "target": {
            "file": "res/res_pjsip_header_funcs.c"
        }
    },
    {
        "deprecated": false,
        "digest": {
            "function_hash": "35050234152473757146456454412151458523",
            "length": 683
        },
        "id": "CVE-2023-37457-f3766f08",
        "signature_type": "Function",
        "signature_version": "v1",
        "source": "https://github.com/asterisk/asterisk/commit/a1ca0268254374b515fa5992f01340f7717113fa",
        "target": {
            "file": "res/res_pjsip_header_funcs.c",
            "function": "update_header"
        }
    }
]
vanir_signatures_modified
"2026-10-28T10:38:47Z"