Am I affected?

type your erlang.org/otp version to check

Description

Improper Enforcement of Message Integrity During Transmission in a Communication Channel vulnerability in Erlang/OTP ssl (tls_gen_connection module) allows a network-positioned attacker to inject unauthenticated plaintext that the TLS client application later treats as authenticated server data.

The function tls_gen_connection:handle_protocol_record/3 rejects APPLICATION_DATA records that arrive in pre-handshake states when the TLS endpoint acts as a server, but does not apply the same check when the endpoint acts as a client. A network-positioned attacker can send plaintext APPLICATION_DATA records to the client during the handshake. The records are buffered and, once the handshake completes successfully, delivered to the application as if they were authenticated post-handshake data. The attacker cannot observe the client's response or steer the connection, so the impact is limited to blind injection of unauthenticated bytes. The injection window is wider for TLS versions prior to TLS 1.3 than for TLS 1.3.

This vulnerability is associated with program file lib/ssl/src/tls_gen_connection.erl.

TLS 1.3 is affected starting with OTP 22.0, when TLS 1.3 support was added.

This issue affects OTP from OTP R13B03 before OTP 27.3.4.14, from OTP 28.0 before OTP 28.5.0.3, and from OTP 29.0 before OTP 29.0.3, corresponding to ssl from 3.10.7 before 11.2.12.10, from 11.3 before 11.6.0.3, and from 11.7 before 11.7.3. Whether OTP before OTP R13B03, corresponding to ssl before 3.10.7, is affected is unknown.

Weaknesses & attack patterns

Weakness

CWE-924 · Improper Enforcement of Message Integrity During Transmission in a Communication Channel in catalog → MITRE ↗

Attack patterns

CAPEC-94 · Adversary in the Middle (AiTM) MITRE ↗

Affected — Erlang

< R13B03 status unknown
R13B03 < 27.3.4.14 affected
maint-28 28.0 < 28.5.0.3 affected
maint-29 29.0 < 29.0.3 affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules tls_gen_connection
source files lib/ssl/src/tls_gen_connection.erl
routines tls_gen_connection:handle_protocol_record/3

Affected — Erlang / ssl Repository ↗

< 3.10.7 status unknown
3.10.7 < 11.2.12.10 affected
11.3 < 11.6.0.3 affected
11.7 < 11.7.3 affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules tls_gen_connection
source files src/tls_gen_connection.erl
routines tls_gen_connection:handle_protocol_record/3

Affected — GitHub / erlang/otp Repository ↗

84adefa < 07d2d0e affected
every other version: unaffected
default status unaffected
cpe cpe:2.3:a:erlang:erlang/otp:*:*:*:*:*:*:*:*
modules · source files · routines
modules tls_gen_connection
source files lib/ssl/src/tls_gen_connection.erl
routines tls_gen_connection:handle_protocol_record/3

References

Credits

Lukas Backström Finder
Ingela Anderton Andin Remediation developer
Dan Gudmundsson Remediation reviewer
Jakub Witczak Remediation reviewer

CVSS breakdown

CVSS:4.0/AV:N/AC:H/AT:P/PR:N/UI:N/VC:N/VI:L/VA:N/SC:N/SI:N/SA:N
« All CVEs