cve.bz

CVE-2022-31031 Out-of-bounds Write

9.8 criticalEPSS 2.1%Fix available

Critical (9.8). EPSS 2.1% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

9.8 critical
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS
2.1% (unchanged from 2.1% a week ago; 2.0% 30 days ago) estimated probability of exploitation activity in the next 30 days; 82nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: total, assessed 2025-04-23. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWEs
CWE-787 Out-of-bounds Write
CWE-120 Buffer Copy without Checking Size of Input (Classic Buffer Overflow)
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2022-31031 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2022-31031?via=ask-ai-copy and https://cve.bz/cve/CVE-2022-31031?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2022-31031 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
teluu:pjsipthrough 2.12.1
debian:debian_linux10.0
debian:debian_linux11.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian10asterisk1:16.28.0~dfsg-0+deb10u2DLA-3335-1
Debian10ring20190215.1.f152c98~ds1-1+deb10u2DLA-3549-1
Debian11asterisk1:16.28.0~dfsg-0+deb11u2DSA-5358-1
Debian11ring20210112.2.b757bac~ds1-1+deb11u1DLA-3887-1
Debian12ring20230206.0~ds1-1DEBIAN-CVE-2022-31031
Ubuntu20.04:LTSring20190215.1.f152c98~ds1-1+deb10u2build0.20.04.1UBUNTU-CVE-2022-31031 USN-6422-1
UbuntuPro:16.04:LTS, Pro:18.04:LTSpjprojectno fix listedUBUNTU-CVE-2022-31031
UbuntuPro:18.04:LTSring20180228.1.503da2b~ds1-1ubuntu0.1~esm1UBUNTU-CVE-2022-31031 USN-6422-1
Alpinev3.18, v3.19, v3.20 and 4 morepjproject2.13-r0ALPINE-CVE-2022-31031

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; the Alpine secdb, CC BY-SA 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Alpine.

Attack patterns (CAPEC)

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits. More on the page of CWE-120 (13).

References

Check your stackJSON