Vulnerabilities / CVE-2022-31031

critical

CVE-2022-31031

PJSIP is a free and open source multimedia communication library writt ...

Published Modified CWE 120, 787
In the Trivy database since at least 24 Oct 2026, 07:11 UTCWhen it arrived before that build is not recorded.

Severity by source

NVD9.8CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by Ubuntu (medium).

Description

PJSIP is a free and open source multimedia communication library written in C language implementing standard based protocols such as SIP, SDP, RTP, STUN, TURN, and ICE. In versions prior to and including 2.12.1 a stack buffer overflow vulnerability affects PJSIP users that use STUN in their applications, either by: setting a STUN server in their account/media config in PJSUA/PJSUA2 level, or directly using `pjlib-util/stun_simple` API. A patch is available in commit 450baca which should be included in the next release. There are no known workarounds for this issue.

Affected packages and fixed versions

SourcePackageFixed in
alpine 3.18pjproject2.13-r0
alpine 3.19pjproject2.13-r0
alpine 3.20pjproject2.13-r0
alpine 3.21pjproject2.13-r0
alpine 3.22pjproject2.13-r0
alpine 3.23pjproject2.13-r0
alpine 3.24pjproject2.13-r0
alpine edgepjproject2.13-r0
debian 10asterisk, ring1:16.28.0~dfsg-0+deb10u2 and 1 more
debian 11asterisk, ring1:16.28.0~dfsg-0+deb11u2 and 1 more
debian 12ring20230206.0~ds1-1
debian 14asterisk1:20.0.1~dfsg+~cs6.12.40431414-1
Show all 19 entries from 16 sources
SourcePackageFixed in
alpine 3.18pjproject2.13-r0
alpine 3.19pjproject2.13-r0
alpine 3.20pjproject2.13-r0
alpine 3.21pjproject2.13-r0
alpine 3.22pjproject2.13-r0
alpine 3.23pjproject2.13-r0
alpine 3.24pjproject2.13-r0
alpine edgepjproject2.13-r0
debian 10asterisk1:16.28.0~dfsg-0+deb10u2
debian 10ring20190215.1.f152c98~ds1-1+deb10u2
debian 11asterisk1:16.28.0~dfsg-0+deb11u2
debian 11ring20210112.2.b757bac~ds1-1+deb11u1
debian 12ring20230206.0~ds1-1
debian 14asterisk1:20.0.1~dfsg+~cs6.12.40431414-1
echoring20230206.0~ds1-1
ubuntu 18.04-ESMpjprojectno fix listed
ubuntu 18.04-ESMring20180228.1.503da2b~ds1-1ubuntu0.1~esm1
ubuntu 20.04ring20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1
ubuntu 20.04-ESMring20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1

References

All 9 references

Vulnerability data compiled from the Trivy vulnerability database (trivy-db, Aqua Security, Apache License 2.0), which aggregates third-party advisories. CVE records are published by The MITRE Corporation under the CVE Terms of Use; CVE is a trademark of MITRE. This product uses data from the NVD API but is not endorsed or certified by the NVD. Severity, titles and advisory data from the GitHub Advisory Database (CC BY 4.0), Red Hat security data (CC BY 4.0) and the other sources linked on each entry. Entries may be summarised or re-formatted; the linked original is the authoritative record.