| 1 | <html><head><title>ChangeLog for asterisk-22.10.1</title></head><body> |
| 2 | <h2>Change Log for Release asterisk-22.10.1</h2> |
| 3 | <h3>Links:</h3> |
| 4 | <ul> |
| 5 | <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/releases/ChangeLog-22.10.1.html">Full ChangeLog</a> </li> |
| 6 | <li><a href="https://github.com/asterisk/asterisk/compare/22.10.0...22.10.1">GitHub Diff</a> </li> |
| 7 | <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk/asterisk-22.10.1.tar.gz">Tarball</a> </li> |
| 8 | <li><a href="https://downloads.asterisk.org/pub/telephony/asterisk">Downloads</a> </li> |
| 9 | </ul> |
| 10 | <h3>Summary:</h3> |
| 11 | <ul> |
| 12 | <li>Commits: 19</li> |
| 13 | <li>Commit Authors: 6</li> |
| 14 | <li>Issues Resolved: 0</li> |
| 15 | <li>Security Advisories Resolved: 20</li> |
| 16 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-3g56-cgrh-95p5">GHSA-3g56-cgrh-95p5</a>: chan_unistim DIALPAGE digit handling can overflow phone_number and crash Asterisk</li> |
| 17 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-3rhj-hhw7-m6fw">GHSA-3rhj-hhw7-m6fw</a>: NULL Pointer Dereference in HTTP AMI Digest Authentication</li> |
| 18 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-4pgv-j3mr-3rcp">GHSA-4pgv-j3mr-3rcp</a>: Reflected XSS in Phone Provisioning HTTP Error Pages</li> |
| 19 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-589g-qgf8-m6mx">GHSA-589g-qgf8-m6mx</a>: Stack buffer overflow in MWI NOTIFY Message-Account parsing</li> |
| 20 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-746q-794h-cc7f">GHSA-746q-794h-cc7f</a>: Out-of-Bounds Read in Q.931 Information Element Parser (H.323 Addon)</li> |
| 21 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-8jhw-m2hg-vp3h">GHSA-8jhw-m2hg-vp3h</a>: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)</li> |
| 22 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-8jw3-ccr9-xrmf">GHSA-8jw3-ccr9-xrmf</a>: Buffer over-read in Asterisk PJSIP MWI body parser</li> |
| 23 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-g8q2-p36q-94f6">GHSA-g8q2-p36q-94f6</a>: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing</li> |
| 24 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-h5hv-jmgj-92q2">GHSA-h5hv-jmgj-92q2</a>: CVE-2022-37325 fix is absent from current chan_ooh323 Q.931 party-number parser</li> |
| 25 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-j2mm-57pq-jh94">GHSA-j2mm-57pq-jh94</a>: Possible RED T.140 Generation Accumulation OOB Write</li> |
| 26 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-mxgm-8c6f-5p8f">GHSA-mxgm-8c6f-5p8f</a>: Stack buffer overflow in res_xmpp XMPP namespace prefix handling</li> |
| 27 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-ph27-3m5q-mj5m">GHSA-ph27-3m5q-mj5m</a>: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field</li> |
| 28 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-q9fr-m7g8-6ph5">GHSA-q9fr-m7g8-6ph5</a>: Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers</li> |
| 29 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-qf8j-jp7h-c5hx">GHSA-qf8j-jp7h-c5hx</a>: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch</li> |
| 30 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-r6c2-hwc2-j4mp">GHSA-r6c2-hwc2-j4mp</a>: LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure)</li> |
| 31 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-vfhr-r9x9-c687">GHSA-vfhr-r9x9-c687</a>: Possible RED T.140 Heap Buffer Overflow</li> |
| 32 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-vrfp-mg3q-3959">GHSA-vrfp-mg3q-3959</a>: ARI setChannelVar bypasses live_dangerously and permits FILE() writes</li> |
| 33 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-wcvv-g26m-wx5c">GHSA-wcvv-g26m-wx5c</a>: ARI REST-over-WebSocket read-only bypass allows arbitrary module path load and conditional RCE</li> |
| 34 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-x348-j6c9-77f3">GHSA-x348-j6c9-77f3</a>: Stack Buffer Overflow in H.323 ooTrace() via Unbounded vsprintf into Fixed 2048-byte Buffer</li> |
| 35 | <li><a href="https://github.com/asterisk/asterisk/security/advisories/GHSA-xgj6-2gc5-5x9c">GHSA-xgj6-2gc5-5x9c</a>: ast_loggrabber executes python script in world writable directory(<code>/tmp</code>) leading to potential privilege escalation And RCE</li> |
| 36 | </ul> |
| 37 | <h3>User Notes:</h3> |
| 38 | <h3>Upgrade Notes:</h3> |
| 39 | <h3>Developer Notes:</h3> |
| 40 | <ul> |
| 41 | <li> |
| 42 | <h4>ARI: Make ARI applications respect live_dangerously.</h4> |
| 43 | ARI applications can no longer call "dangerous" dialplan |
| 44 | functions like DB(), FILE(), SHELL(), CURL(), STAT(), etc. without |
| 45 | enabling "live_dangerously" in asterisk.conf. |
| 46 | Resolves: #GHSA-vrfp-mg3q-3959</li> |
| 47 | </ul> |
| 48 | <h3>Commit Authors:</h3> |
| 49 | <ul> |
| 50 | <li>George Joseph: (6)</li> |
| 51 | <li>Mike Bradeen: (3)</li> |
| 52 | <li>Milan Kyselica: (7)</li> |
| 53 | <li>Pengpeng Hou: (1)</li> |
| 54 | <li>Roberto Paleari: (1)</li> |
| 55 | <li>ThatTotallyRealMyth: (1)</li> |
| 56 | </ul> |
| 57 | <h2>Issue and Commit Detail:</h2> |
| 58 | <h3>Closed Issues:</h3> |
| 59 | <ul> |
| 60 | <li>!GHSA-3g56-cgrh-95p5: chan_unistim DIALPAGE digit handling can overflow phone_number and crash Asterisk</li> |
| 61 | <li>!GHSA-3rhj-hhw7-m6fw: NULL Pointer Dereference in HTTP AMI Digest Authentication</li> |
| 62 | <li>!GHSA-4pgv-j3mr-3rcp: Reflected XSS in Phone Provisioning HTTP Error Pages</li> |
| 63 | <li>!GHSA-589g-qgf8-m6mx: Stack buffer overflow in MWI NOTIFY Message-Account parsing</li> |
| 64 | <li>!GHSA-746q-794h-cc7f: Out-of-Bounds Read in Q.931 Information Element Parser (H.323 Addon)</li> |
| 65 | <li>!GHSA-8jhw-m2hg-vp3h: Heap Buffer Overflow in OGG/Speex File Playback (format_ogg_speex)</li> |
| 66 | <li>!GHSA-8jw3-ccr9-xrmf: Buffer over-read in Asterisk PJSIP MWI body parser</li> |
| 67 | <li>!GHSA-g8q2-p36q-94f6: Heap-use-after-free in Asterisk PJSIP TCP/SDP handling when TCP connection closes during SDP processing</li> |
| 68 | <li>!GHSA-h5hv-jmgj-92q2: CVE-2022-37325 fix is absent from current chan_ooh323 Q.931 party-number parser</li> |
| 69 | <li>!GHSA-j2mm-57pq-jh94: Possible RED T.140 Generation Accumulation OOB Write</li> |
| 70 | <li>!GHSA-mxgm-8c6f-5p8f: Stack buffer overflow in res_xmpp XMPP namespace prefix handling</li> |
| 71 | <li>!GHSA-ph27-3m5q-mj5m: SQL Injection in cel_pgsql and cel_tds via CELGenUserEvent eventtype Field</li> |
| 72 | <li>!GHSA-q9fr-m7g8-6ph5: Asterisk app_sms.c copies externally controlled SMS lengths into fixed in-struct buffers</li> |
| 73 | <li>!GHSA-qf8j-jp7h-c5hx: Out-of-Bounds Write in Codec2 Decoder Due to Floor/Ceil Sample Count Mismatch</li> |
| 74 | <li>!GHSA-r6c2-hwc2-j4mp: LDAP Filter Injection in res_config_ldap via SIP Username (Unauthenticated Information Disclosure)</li> |
| 75 | <li>!GHSA-vfhr-r9x9-c687: Possible RED T.140 Heap Buffer Overflow</li> |
| 76 | <li>!GHSA-vrfp-mg3q-3959: ARI setChannelVar bypasses live_dangerously and permits FILE() writes</li> |
| 77 | <li>!GHSA-wcvv-g26m-wx5c: ARI REST-over-WebSocket read-only bypass allows arbitrary module path load and conditional RCE</li> |
| 78 | <li>!GHSA-x348-j6c9-77f3: Stack Buffer Overflow in H.323 ooTrace() via Unbounded vsprintf into Fixed 2048-byte Buffer</li> |
| 79 | <li>!GHSA-xgj6-2gc5-5x9c: ast_loggrabber executes python script in world writable directory(<code>/tmp</code>) leading to potential privilege escalation And RCE</li> |
| 80 | </ul> |
| 81 | <h3>Commits By Author:</h3> |
| 82 | <ul> |
| 83 | <li> |
| 84 | <h4>George Joseph (6):</h4> |
| 85 | </li> |
| 86 | <li>chan_unistim.c: Prevent overrun of phone_number field.</li> |
| 87 | <li>res_ari: Ensure read-only users are properly authorized via REST Over WebSocket.</li> |
| 88 | <li>pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address.</li> |
| 89 | <li>ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds.</li> |
| 90 | <li>ARI: Make ARI applications respect live_dangerously.</li> |
| 91 | <li> |
| 92 | <p>res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns.</p> |
| 93 | </li> |
| 94 | <li> |
| 95 | <h4>Mike Bradeen (3):</h4> |
| 96 | </li> |
| 97 | <li>ooh323c: not checking for IE minimum length</li> |
| 98 | <li>manager: Use remote address in user error logging</li> |
| 99 | <li> |
| 100 | <p>ooh323: Prevent potential buffer overflow in trace logging</p> |
| 101 | </li> |
| 102 | <li> |
| 103 | <h4>Milan Kyselica (7):</h4> |
| 104 | </li> |
| 105 | <li>res_xmpp: Fix stack buffer overflow in namespace prefix handling</li> |
| 106 | <li>res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser</li> |
| 107 | <li>res_config_ldap: Escape LDAP filter values per RFC 4515</li> |
| 108 | <li>cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection</li> |
| 109 | <li>http: Escape error page text to prevent reflected XSS</li> |
| 110 | <li>codec_codec2: Only process complete Codec2 frames in decoder</li> |
| 111 | <li> |
| 112 | <p>format_ogg_speex: Add bounds check to prevent heap buffer overflow</p> |
| 113 | </li> |
| 114 | <li> |
| 115 | <h4>Pengpeng Hou (1):</h4> |
| 116 | </li> |
| 117 | <li> |
| 118 | <p>app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers</p> |
| 119 | </li> |
| 120 | <li> |
| 121 | <h4>Roberto Paleari (1):</h4> |
| 122 | </li> |
| 123 | <li> |
| 124 | <p>res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser</p> |
| 125 | </li> |
| 126 | <li> |
| 127 | <h4>ThatTotallyRealMyth (1):</h4> |
| 128 | </li> |
| 129 | <li>ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory.</li> |
| 130 | </ul> |
| 131 | <h3>Commit List:</h3> |
| 132 | <ul> |
| 133 | <li>ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory.</li> |
| 134 | <li>chan_unistim.c: Prevent overrun of phone_number field.</li> |
| 135 | <li>ooh323c: not checking for IE minimum length</li> |
| 136 | <li>res_ari: Ensure read-only users are properly authorized via REST Over WebSocket.</li> |
| 137 | <li>pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address.</li> |
| 138 | <li>ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds.</li> |
| 139 | <li>ARI: Make ARI applications respect live_dangerously.</li> |
| 140 | <li>res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns.</li> |
| 141 | <li>res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser</li> |
| 142 | <li>manager: Use remote address in user error logging</li> |
| 143 | <li>ooh323: Prevent potential buffer overflow in trace logging</li> |
| 144 | <li>app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers</li> |
| 145 | <li>res_xmpp: Fix stack buffer overflow in namespace prefix handling</li> |
| 146 | <li>res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser</li> |
| 147 | <li>res_config_ldap: Escape LDAP filter values per RFC 4515</li> |
| 148 | <li>cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection</li> |
| 149 | <li>http: Escape error page text to prevent reflected XSS</li> |
| 150 | <li>codec_codec2: Only process complete Codec2 frames in decoder</li> |
| 151 | <li>format_ogg_speex: Add bounds check to prevent heap buffer overflow</li> |
| 152 | </ul> |
| 153 | <h3>Commit Details:</h3> |
| 154 | <h4>ast_loggrabber: Install the ast_tsconvert.py script to a secure temp directory.</h4> |
| 155 | <p>Author: ThatTotallyRealMyth |
| 156 | Date: 2026-03-19</p> |
| 157 | <p>The ast_tsconvert.py script called by ast_loggrabber is now installed in a |
| 158 | temporary directory that isn't world readable or writable.</p> |
| 159 | <p>Resolves: #GHSA-xgj6-2gc5-5x9c</p> |
| 160 | <h4>chan_unistim.c: Prevent overrun of phone_number field.</h4> |
| 161 | <p>Author: George Joseph |
| 162 | Date: 2026-06-15</p> |
| 163 | <p>Add a check to key_dial_page() to ensure that dialed digits won't overrun |
| 164 | the phone_number field.</p> |
| 165 | <p>Resolves: #GHSA-3g56-cgrh-95p5</p> |
| 166 | <h4>ooh323c: not checking for IE minimum length</h4> |
| 167 | <p>Author: Mike Bradeen |
| 168 | Date: 2022-06-06</p> |
| 169 | <p>When decoding q.931 encoded calling/called number |
| 170 | now checking for length being less than minimum required.</p> |
| 171 | <p>Resolves: #GHSA-h5hv-jmgj-92q2</p> |
| 172 | <h4>res_ari: Ensure read-only users are properly authorized via REST Over WebSocket.</h4> |
| 173 | <p>Author: George Joseph |
| 174 | Date: 2026-06-12</p> |
| 175 | <p>The REST over WebSocket path now properly prevents non-GET methods from |
| 176 | being executed on inbound WebSockets.</p> |
| 177 | <ul> |
| 178 | <li> |
| 179 | <p>The query parameters from the original incoming GET request that caused the |
| 180 | upgrade to WebSocket are now passed to all REST requests that come from the |
| 181 | client. This ensures that if the client authenticated with a read-only |
| 182 | userid using the "api_key" query_string parameter, REST requests coming |
| 183 | in over the WebSocket will only be able to execute GETs on resources. |
| 184 | The HTTP headers were already passed to the REST requests so if the |
| 185 | client had authenticated via an "Authorization" it was properly handled.</p> |
| 186 | </li> |
| 187 | <li> |
| 188 | <p>New tests have been added to test_ari.c to check that read-only users |
| 189 | are properly denied access to resources using non-GET methods. Several |
| 190 | memory leaks were also squashed.</p> |
| 191 | </li> |
| 192 | </ul> |
| 193 | <p>Resolves: #GHSA-wcvv-g26m-wx5c</p> |
| 194 | <h4>pjsip_message_filter: Use pj_strdup instead of pj_strassign to save local address.</h4> |
| 195 | <p>Author: George Joseph |
| 196 | Date: 2026-06-10</p> |
| 197 | <p>The filter_on_tx_message() function was using pj_strassign() to save the pointer |
| 198 | of the pjproject transport local address to a local pj_str_t variable. That |
| 199 | variable was ultimately used to set the Contact header's uri->host and the SDP |
| 200 | connection attribute's address again using pj_strassign. pj_strassign() doesn't |
| 201 | copy the actual value of the pj_str_t however, it just copies the pointer so |
| 202 | if a connection-oriented transport is disconnected before the 200 OK with the |
| 203 | SDP is sent, those pointers will be invalid which can cause use-after-free |
| 204 | issues. To prevent this, filter_on_tx_message() now uses pj_strdup with the |
| 205 | tdata->pool as the backing store to save the local IP address to the local |
| 206 | variable. pj_strassign() can then be used safely later on since the tdata |
| 207 | will be available for the life of the transaction.</p> |
| 208 | <p>Resolves: #GHSA-g8q2-p36q-94f6</p> |
| 209 | <h4>ooh323c/ooq931.c: Ensure ooQ931Decode doesn't run out-of-bounds.</h4> |
| 210 | <p>Author: George Joseph |
| 211 | Date: 2026-06-02</p> |
| 212 | <p>Several bounds checks have been edded to ooQ931Decode to prevent it from |
| 213 | running past the end of the data buffer when parsing information elements.</p> |
| 214 | <p>Resolves: #GHSA-746q-794h-cc7f</p> |
| 215 | <h4>ARI: Make ARI applications respect live_dangerously.</h4> |
| 216 | <p>Author: George Joseph |
| 217 | Date: 2026-05-21</p> |
| 218 | <p>DeveloperNote: ARI applications can no longer call "dangerous" dialplan |
| 219 | functions like DB(), FILE(), SHELL(), CURL(), STAT(), etc. without |
| 220 | enabling "live_dangerously" in asterisk.conf.</p> |
| 221 | <p>Resolves: #GHSA-vrfp-mg3q-3959</p> |
| 222 | <h4>res_rtp_asterisk.c: Address 2 potential T.140 RED buffer overruns.</h4> |
| 223 | <p>Author: George Joseph |
| 224 | Date: 2026-04-27</p> |
| 225 | <ul> |
| 226 | <li> |
| 227 | <p>Add check to red_t140_to_red() to ensure that the new primary payload |
| 228 | can't cause the rtp_red->len array items to wrap or cause an overrun of |
| 229 | the rtp_red->t140red_data buffer.</p> |
| 230 | </li> |
| 231 | <li> |
| 232 | <p>Add check to rtp_red_buffer() to ensure that a T.140 frame to be sent |
| 233 | can't cause rtp_red->len array items to wrap or cause an overrun of |
| 234 | the rtp_red->buf_data buffer.</p> |
| 235 | </li> |
| 236 | </ul> |
| 237 | <p>Resolves: #GHSA-vfhr-r9x9-c687 |
| 238 | Resolves: #GHSA-j2mm-57pq-jh94</p> |
| 239 | <h4>res/res_pjsip_pubsub.c: Fix buffer over-read in MWI body parser</h4> |
| 240 | <p>Author: Roberto Paleari |
| 241 | Date: 2026-04-29</p> |
| 242 | <p>Add constraint checks to prevent unauthenticated users from crashing Asterisk |
| 243 | instance by sending a crafted inbound SIP NOTIFY request with "Content-Type: |
| 244 | application/simple-message-summary".</p> |
| 245 | <p>Resolves: #GHSA-8jw3-ccr9-xrmf</p> |
| 246 | <h4>manager: Use remote address in user error logging</h4> |
| 247 | <p>Author: Mike Bradeen |
| 248 | Date: 2026-03-30</p> |
| 249 | <p>To avoid a potential null dereference use the remote address |
| 250 | in error logging when there is no user or the user acl fails.</p> |
| 251 | <p>Resolves: #GHSA-3rhj-hhw7-m6fw</p> |
| 252 | <h4>ooh323: Prevent potential buffer overflow in trace logging</h4> |
| 253 | <p>Author: Mike Bradeen |
| 254 | Date: 2026-03-31</p> |
| 255 | <p>Replace a call to vsprintf with a call to ast_vasprintf to |
| 256 | prevent a possible buffer overflow.</p> |
| 257 | <p>Resolves: #GHSA-x348-j6c9-77f3</p> |
| 258 | <h4>app_sms: Bound protocol 1 SMS unpacking to fixed-size buffers</h4> |
| 259 | <p>Author: Pengpeng Hou |
| 260 | Date: 2026-04-01</p> |
| 261 | <p>The protocol 1 unpack helpers trusted externally controlled lengths and wrote |
| 262 | them directly into fixed-size buffers in sms_t. Clamp the address, header, |
| 263 | and body copies to the destination array sizes so malformed messages cannot |
| 264 | overwrite adjacent state.</p> |
| 265 | <p>Resolves: #GHSA-q9fr-m7g8-6ph5</p> |
| 266 | <h4>res_xmpp: Fix stack buffer overflow in namespace prefix handling</h4> |
| 267 | <p>Author: Milan Kyselica |
| 268 | Date: 2026-03-26</p> |
| 269 | <p>The snprintf size parameter in xmpp_action_hook() is computed from |
| 270 | the attacker-controlled namespace prefix length and is not bounded |
| 271 | by the 256-byte stack buffer size. When a remote XMPP peer sends a |
| 272 | stanza with a child element whose namespace prefix exceeds 249 |
| 273 | characters, snprintf writes past the buffer boundary.</p> |
| 274 | <p>Use sizeof(attr) as the snprintf size limit and %.*s precision to |
| 275 | extract only the prefix portion of the element name, preserving |
| 276 | the original truncation behavior for valid inputs.</p> |
| 277 | <p>Resolves: #GHSA-mxgm-8c6f-5p8f</p> |
| 278 | <h4>res_pjsip_pubsub: Add width limit to sscanf in MWI NOTIFY parser</h4> |
| 279 | <p>Author: Milan Kyselica |
| 280 | Date: 2026-03-24</p> |
| 281 | <p>The parse_simple_message_summary() function uses sscanf with an |
| 282 | unbounded %s format specifier to parse the Message-Account field |
| 283 | from incoming SIP NOTIFY bodies into a fixed-size 512-byte stack |
| 284 | buffer (PJSIP_MAX_URL_SIZE). A single unauthenticated SIP NOTIFY |
| 285 | with a Message-Account value exceeding 512 bytes overflows the |
| 286 | buffer, corrupting adjacent stack data and permanently disabling |
| 287 | the PJSIP transport layer without crashing the process.</p> |
| 288 | <p>Add a width specifier (%511s) to limit the sscanf write to |
| 289 | PJSIP_MAX_URL_SIZE - 1 bytes plus the NUL terminator, matching |
| 290 | the destination buffer size.</p> |
| 291 | <p>Resolves: #GHSA-589g-qgf8-m6mx</p> |
| 292 | <h4>res_config_ldap: Escape LDAP filter values per RFC 4515</h4> |
| 293 | <p>Author: Milan Kyselica |
| 294 | Date: 2026-03-23</p> |
| 295 | <p>The LDAP realtime driver constructs search filters by directly |
| 296 | concatenating user-supplied values without RFC 4515 escaping. |
| 297 | When LDAP is used as a realtime backend for endpoint |
| 298 | identification, characters with special meaning in LDAP filters |
| 299 | (*, (, ), ) can be injected via the SIP From header username.</p> |
| 300 | <p>Add ldap_filter_escape_value() that escapes RFC 4515 special |
| 301 | characters to their \HH hex representation, and apply it to |
| 302 | non-LIKE query values. The LIKE query path preserves the existing |
| 303 | wildcard conversion behavior with a note for maintainers.</p> |
| 304 | <p>Resolves: #GHSA-r6c2-hwc2-j4mp</p> |
| 305 | <h4>cel_pgsql, cel_tds: Escape eventtype field to prevent SQL injection</h4> |
| 306 | <p>Author: Milan Kyselica |
| 307 | Date: 2026-03-23</p> |
| 308 | <p>The eventtype column handler in cel_pgsql.c inserts |
| 309 | record.user_defined_name directly into the SQL query without |
| 310 | calling PQescapeStringConn(), while all other string fields in |
| 311 | the same function are properly escaped. Similarly, cel_tds.c |
| 312 | passes the raw user_defined_name into the SQL INSERT without |
| 313 | routing it through anti_injection(), while all other fields are |
| 314 | processed through that function.</p> |
| 315 | <p>For cel_pgsql.c, escape the eventtype value using |
| 316 | PQescapeStringConn(), matching the existing pattern used for all |
| 317 | other string fields at lines 308-331 of the same function.</p> |
| 318 | <p>For cel_tds.c, route the eventtype value through |
| 319 | anti_injection() consistent with how all other fields are handled |
| 320 | in the same function.</p> |
| 321 | <p>Resolves: #GHSA-ph27-3m5q-mj5m</p> |
| 322 | <h4>http: Escape error page text to prevent reflected XSS</h4> |
| 323 | <p>Author: Milan Kyselica |
| 324 | Date: 2026-04-08</p> |
| 325 | <p>The text parameter in ast_http_create_response() is inserted into |
| 326 | the HTML body without escaping, while the server name on the same |
| 327 | page is properly escaped via ast_xml_escape(). When res_phoneprov |
| 328 | passes the decoded request URI as the text of a 404 response, HTML |
| 329 | metacharacters in the URI are rendered by the browser.</p> |
| 330 | <p>Apply ast_xml_escape() to the text parameter before inserting it |
| 331 | into the HTML template, using the same function already used for |
| 332 | the server name.</p> |
| 333 | <p>Resolves: #GHSA-4pgv-j3mr-3rcp</p> |
| 334 | <h4>codec_codec2: Only process complete Codec2 frames in decoder</h4> |
| 335 | <p>Author: Milan Kyselica |
| 336 | Date: 2026-04-08</p> |
| 337 | <p>The codec2_samples() function uses floor division (160 * datalen/6) |
| 338 | to compute expected output samples, but the decode loop condition |
| 339 | (x < datalen) iterates with ceiling behavior when datalen is not a |
| 340 | multiple of CODEC2_FRAME_LEN. This mismatch causes the loop to |
| 341 | decode one extra frame beyond what the framework bounds check |
| 342 | budgeted for, leading to an out-of-bounds write on the output buffer.</p> |
| 343 | <p>Change the loop condition to only process complete frames, matching |
| 344 | the floor-division behavior of codec2_samples(). This also prevents |
| 345 | an out-of-bounds read on the input side when fewer than |
| 346 | CODEC2_FRAME_LEN bytes remain.</p> |
| 347 | <p>Resolves: #GHSA-qf8j-jp7h-c5hx</p> |
| 348 | <h4>format_ogg_speex: Add bounds check to prevent heap buffer overflow</h4> |
| 349 | <p>Author: Milan Kyselica |
| 350 | Date: 2026-03-23</p> |
| 351 | <p>The ogg_speex_read() function copies OGG packet data via memcpy() |
| 352 | without validating the packet size against the destination buffer |
| 353 | (BUF_SIZE = 200 bytes). A crafted .spx file with an oversized OGG |
| 354 | audio packet causes a heap buffer overflow that corrupts the |
| 355 | adjacent speex_desc structure containing libogg heap pointers, |
| 356 | leading to a crash (SIGSEGV) on playback.</p> |
| 357 | <p>Add a bounds check for both negative and oversized values before |
| 358 | the memcpy, consistent with how format_ogg_vorbis bounds its reads |
| 359 | via ov_read().</p> |
| 360 | <p>Resolves: #GHSA-8jhw-m2hg-vp3h</p> |
| 361 | </body></html> |