CVE-2022-31003
NixOS vulnerability analysis and mitigation

Overview

CVE-2022-31003 is a heap buffer overflow vulnerability discovered in Sofia-SIP, an open-source Session Initiation Protocol (SIP) User-Agent library. The vulnerability was disclosed on May 31, 2022, affecting versions prior to 1.13.8. The issue occurs in the SDP message parsing functionality (GitHub Advisory).

Technical details

The vulnerability exists in the SDP message parsing functionality where rest = record + 2 will access the memory behind \0 and cause an out-of-bounds write. This occurs when parsing each line of an SDP message, specifically when handling the last line termination. The issue has been assigned CWE-122 (Heap-based Buffer Overflow) and CWE-787 (Out-of-bounds Write) classifications (NVD CNA Status).

Impact

An attacker can exploit this vulnerability by sending a specially crafted SDP message to systems using Sofia-SIP, potentially causing a system crash or, in more severe cases, achieving remote code execution (GitHub Advisory, Gentoo Security).

Mitigation and workarounds

The vulnerability has been fixed in Sofia-SIP version 1.13.8. Users are strongly recommended to upgrade to this version or later. The fix includes additional length checks before processing SDP messages (GitHub Commit).

Community reactions

Multiple Linux distributions have issued security advisories and patches for this vulnerability, including Debian, Ubuntu, and Gentoo. Debian classified this as a high-severity issue and released updates through DLA-3091-1 (Debian LTS).

Additional resources


SourceThis report was generated using AI

Related NixOS vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-12819HIGH8.1
  • NixOSNixOS
  • pgbouncer
NoYesDec 03, 2025
CVE-2025-20777MEDIUM6.7
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-65105MEDIUM5.3
  • NixOSNixOS
  • apptainer
NoYesDec 02, 2025
CVE-2025-20789MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025
CVE-2025-20788MEDIUM4.4
  • NixOSNixOS
  • android
NoNoDec 02, 2025

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management