CWE
122 787
Advisory Published
Updated

CVE-2022-31003: Heap-based Buffer Overflow and Out-of-bounds Write in Sofia-SIP

First published: Tue May 31 2022(Updated: )

Sofia-SIP is an open-source Session Initiation Protocol (SIP) User-Agent library. Prior to version 1.13.8, when parsing each line of a sdp message, `rest = record + 2` will access the memory behind `\0` and cause an out-of-bounds write. An attacker can send a message with evil sdp to FreeSWITCH, causing a crash or more serious consequence, such as remote code execution. Version 1.13.8 contains a patch for this issue.

Credit: security-advisories@github.com

Affected SoftwareAffected VersionHow to fix
debian/sofia-sip<=1.12.11+20110422.1-2.1
1.12.11+20110422.1-2.1+deb10u4
1.12.11+20110422.1-2.1+deb11u2
1.12.11+20110422.1+1e14eea~dfsg-6
SignalWire Sofia-SIP<1.13.8
Debian Debian Linux=10.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is CVE-2022-31003?

    CVE-2022-31003 is a vulnerability in the Sofia-SIP open-source Session Initiation Protocol (SIP) User-Agent library.

  • What is the severity of CVE-2022-31003?

    CVE-2022-31003 has a severity rating of 9.8 (Critical).

  • How does CVE-2022-31003 impact Sofia-SIP?

    CVE-2022-31003 allows an attacker to send a malicious sdp message to FreeSWITCH, causing an out-of-bounds write vulnerability in Sofia-SIP.

  • Which versions of Sofia-SIP are affected by CVE-2022-31003?

    Sofia-SIP versions up to and including 1.12.11+20110422.1 are affected by CVE-2022-31003.

  • How can I fix CVE-2022-31003 in Sofia-SIP?

    To fix CVE-2022-31003, it is recommended to upgrade to version 1.13.8 or later of Sofia-SIP.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203