CVE-2026-57166

Source
https://cve.org/CVERecord?id=CVE-2026-57166
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57166.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2026-57166
Aliases
  • GHSA-9c8q-h38q-p85j
Downstream
Published
2026-09-04T17:12:10.146Z
Modified
2026-09-06T08:07:52.495682Z
Severity
  • 6.3 (Medium) CVSS_V4 - CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N CVSS Calculator
Summary
PJSIP: Pre-authentication overflow in the telnet CLI error
Details

PJSIP is a free and open source multimedia communication library written in C. Prior to commit 4472a31, a stack buffer overflow exists in the PJLIB-UTIL telnet CLI front-end when rendering feedback for an entered command line. Several command-line handling paths write an attacker-influenced amount of data into fixed-size buffers without sufficient bounds checking, so a long command line can overflow them. This affects only applications that enable the telnet CLI front-end (e.g. pjclitelnet_create() / --cli-telnet-port). The telnet CLI is an interactive administration interface with no authentication, so any client able to reach it can already issue arbitrary CLI commands. A malformed or overly long command line can overflow a fixed-size stack buffer while rendering command-line feedback, which may lead to application termination. Because reaching this code already requires access to the unauthenticated CLI, the impact beyond that existing access is limited. Applications that do not enable the telnet CLI front-end are not affected. This issue has been patched via commit 4472a31.

Database specific
{
    "cwe_ids": [
        "CWE-121"
    ],
    "cna_assigner": "GitHub_M",
    "unresolved_ranges": [
        {
            "source": "AFFECTED_FIELD",
            "extracted_events": [
                {
                    "fixed": "4472a31d77a7506ff175dad5abef490f4e31bed1"
                }
            ]
        }
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/57xxx/CVE-2026-57166.json"
}
References

Affected packages

Git / github.com/pjsip/pjproject

Affected ranges

Type
GIT
Repo
https://github.com/pjsip/pjproject
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Database specific
Show details
{
    "source": "REFERENCES"
}

Affected versions

2.*
2.10
2.11
2.12
2.13
2.14
2.15
2.16
2.17

Database specific

vanir_signatures
[
    {
        "target": {
            "file": "pjlib-util/src/pjlib-util/cli_telnet.c",
            "function": "handle_tab"
        },
        "deprecated": false,
        "id": "CVE-2026-57166-5e0b878e",
        "signature_version": "v1",
        "digest": {
            "function_hash": "331061287598716016881243975602423834092",
            "length": 1715.0
        },
        "signature_type": "Function",
        "source": "https://github.com/pjsip/pjproject/commit/4472a31d77a7506ff175dad5abef490f4e31bed1"
    },
    {
        "target": {
            "file": "pjlib-util/src/pjlib-util/cli_telnet.c",
            "function": "send_ambi_arg"
        },
        "deprecated": false,
        "id": "CVE-2026-57166-8e672aa2",
        "signature_version": "v1",
        "digest": {
            "function_hash": "235604079450498991093793557166512260914",
            "length": 2529.0
        },
        "signature_type": "Function",
        "source": "https://github.com/pjsip/pjproject/commit/4472a31d77a7506ff175dad5abef490f4e31bed1"
    },
    {
        "target": {
            "file": "pjlib-util/src/pjlib-util/cli_telnet.c"
        },
        "deprecated": false,
        "id": "CVE-2026-57166-a3247dd9",
        "signature_version": "v1",
        "digest": {
            "line_hashes": [
                "194349232392977960212423744766755536500",
                "257046103889233452659898097584110603061",
                "88073684314036143228161855252719532186",
                "6157173965712381130371226381807145398",
                "148082481387977201037066507975983512264",
                "338384223527831857268292021746624687891",
                "18499039181728143742684114221980908779",
                "173422865651058279955221980247496001724",
                "315448372687037025119977485402743438171",
                "14180393440805627630890410073057375487",
                "279422127121224058270094060745309303238",
                "1141087527036199405113878930766603413",
                "89636515602953334725431837708563476660",
                "223076937655355453342648901276635654753",
                "36646996366273975845028276656966876446",
                "314530518449579592861528700059404665164",
                "23611224265420345523597791965099239171",
                "263294664982617000828646588116485501741",
                "134685784164703590820805969343103640503",
                "123243886025411484656596039039476823948",
                "240835358102963161682688794766935034956",
                "291288966308933906410402524681180700902",
                "100106794399034641700545738726922598511",
                "320981674754305968045496299651428310181",
                "241152983007563623270197004914608508924",
                "158407764136762595295168959378234074772",
                "602277560625929220034906759155615169",
                "44299991556638389387848275573417763475",
                "135904823221960673236269615015158102313",
                "39786403671762647467536952139015684130",
                "270273402228961087795609623669095570967",
                "89636515602953334725431837708563476660",
                "223076937655355453342648901276635654753",
                "36646996366273975845028276656966876446",
                "314530518449579592861528700059404665164",
                "23611224265420345523597791965099239171",
                "226803786333984654889986284162338392340",
                "122728792630022605000289043822522191702",
                "268674178406877741101608658908030472621",
                "99964261530003183931577370401256833782",
                "272068737773270120867321607210826622335",
                "100106794399034641700545738726922598511",
                "320981674754305968045496299651428310181",
                "269885318694113525615369265664030806763",
                "8538533437561535100650638786128243346",
                "271819769876140245315147293830882208661",
                "274810733477777329605504899160184023827",
                "330678688954805013305869225055416365747",
                "178683700436449889577508713453186000418",
                "79848123975033709636379490298127314092",
                "282067990804341273501058320315997884390"
            ],
            "threshold": 0.9
        },
        "signature_type": "Line",
        "source": "https://github.com/pjsip/pjproject/commit/4472a31d77a7506ff175dad5abef490f4e31bed1"
    },
    {
        "target": {
            "file": "pjlib-util/src/pjlib-util/cli_telnet.c",
            "function": "send_err_arg"
        },
        "deprecated": false,
        "id": "CVE-2026-57166-a76c311c",
        "signature_version": "v1",
        "digest": {
            "function_hash": "205552184539411348943507277882173213858",
            "length": 666.0
        },
        "signature_type": "Function",
        "source": "https://github.com/pjsip/pjproject/commit/4472a31d77a7506ff175dad5abef490f4e31bed1"
    }
]
source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-57166.json"
vanir_signatures_modified
"2026-09-06T08:07:52Z"