Skip to content
OpenAdvisories
Medium · 6.8 CVE-2020-15260 EUVD-2020-7269

Existing TLS connections can be reused without checking remote hostname

Published Mar 10, 2021 · Updated Aug 4, 2024 · Assigned by GitHub_M

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 version 2.10 and earlier, PJSIP transport can be reused if they have the same IP address + port + protocol. However, this is insufficient for secure transport since it lacks remote hostname authentication. Suppose we have created a TLS connection to `sip.foo.com`, which has an IP address `100.1.1.1`. If we want to create a TLS connection to another hostname, say `sip.bar.com`, which has the same IP address, then it will reuse that existing connection, even though `100.1.1.1` does not have certificate to authenticate as `sip.bar.com`. The vulnerability allows for an insecure interaction without user awareness. It affects users who need access to connections to different destinations that translate to the same address, and allows man-in-the-middle attack if attacker can route a connection to another destination such as in the case of DNS spoofing.

Affected products

VendorProductAffectedFixed
pjsip pjproject <= 2.10 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 12 ring 20210112.2.b757bac~ds1-1 —
ReleasePackageFixed inAdvisory
Ubuntu Pro 18.04 LTS pjproject 2.7.2~dfsg-1ubuntu0.1~esm1 —
Ubuntu Pro 16.04 LTS pjproject 2.1.0.0.ast20130823-1+deb8u1ubuntu0.1~esm1 —
ReleasePackageFixed inAdvisory
Alpine v3.24 pjproject 2.11-r0 —
Alpine v3.23 pjproject 2.11-r0 —
Alpine v3.22 pjproject 2.11-r0 —
Alpine v3.21 pjproject 2.11-r0 —
Alpine v3.20 pjproject 2.11-r0 —
Show 6 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Alpine v3.19 pjproject 2.11-r0 —
Alpine v3.18 pjproject 2.11-r0 —
Alpine v3.17 pjproject 2.11-r0 —
Alpine v3.16 pjproject 2.11-r0 —
Alpine v3.15 pjproject 2.11-r0 —
Alpine v3.14 pjproject 2.11-r0 —

References