CVE-2020-15134 json
Missing TLS certificate verification in Faye
published 2020-07-31 6 y ago modified 2026-07-08 4 mo ago also GHSA-3q49-h8f9-9fr9 , EUVD-2020-0532
- cvss
- 8.0
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 58%
- public exploits
- 0
- none known
Summary
Faye before version 1.4.0, there is a lack of certification validation in TLS handshakes. Faye uses em-http-request and faye-websocket in the Ruby version of its client. Those libraries both use the `EM::Connection#start_tls` method in EventMachine to implement the TLS handshake whenever a `wss:` URL is used for the connection. This method does not implement certificate verification by default, meaning that it does not check that the server presents a valid and trusted TLS certificate for the expected hostname. That means that any `https:` or `wss:` connection made using these libraries is vulnerable to a man-in-the-middle attack, since it does not confirm the identity of the server it is connected to. The first request a Faye client makes is always sent via normal HTTP, but later messages may be sent via WebSocket. Therefore it is vulnerable to the same problem that these underlying libraries are, and we needed both libraries to support TLS verification before Faye could claim to do the same. Your client would still be insecure if its initial HTTPS request was verified, but later WebSocket connections were not. This is fixed in Faye v1.4.0, which enables verification by default. For further background information on this issue, please see the referenced GitHub Advisory.
Patch / fix
- rubygems faye 1.4.0
- faye_project faye 1.4.0
- ruby-faye Debian 12 1.4.0-1
debian advisories DEBIAN-CVE-2020-15134
- github.com/eventmachine/eventmachine#378 pull request
- github.com/faye/faye-websocket-ruby#129 pull request
- github.com/igrigorik/em-http-request#340 pull request
Exploit prediction
0.86% chance of exploitation in the next 30 days, higher than 58% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/faye/faye/security/advisories/GHSA-3q49-h8f9-9fr9 referenced PoC, tagged "exploit" by a source, unverified
- blog.jcoglan.com https://blog.jcoglan.com/2020/07/31/missing-tls-verification-in-faye/ referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
| NVD | 3.1 | 8.7 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:N |
| NVD | 2.0 | 6.4 | AV:N/AC:L/Au:N/C:P/I:P/A:N |
| GitHub | 3.1 | 8.0 | CVSS:3.1/AV:N/AC:H/PR:N/UI:R/S:C/C:H/I:H/A:N |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| rubygems | faye | <1.4.0 |
1.4.0 |
Affected products
- faye faye
Classification
- Weakness
-
- CWE-295 Improper Certificate Validation
References
-
github.com
/eventmachine/eventmachine/pull/378
web
-
github.com
/faye/faye-websocket-ruby/pull/129
web
-
github.com
/igrigorik/em-http-request/pull/340
web
-
github.com
/faye/faye/security/advisories/GHSA-3q49-h8f9-9fr9
web, exploit, third-party-advisory
-
blog.jcoglan.com
/2020/07/31/missing-tls-verification-in-faye/
exploit, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2020-15134
advisory
-
github.com
/eventmachine/eventmachine/issues/275
web
-
github.com
/eventmachine/eventmachine/issues/814
web
-
github.com
/faye/faye/issues/524
web
-
blog.jcoglan.com
/2020/07/31/missing-tls-verification-in-faye
web
-
github.com
/faye/faye
package
-
github.com
/rubysec/ruby-advisory-db/blob/master/gems/faye/CVE-2020-15134.yml
web
-
securitylab.github.com
/advisories/GHSL-2020-094-igrigorik-em-http-request
advisory
-
rubydoc.info
/github/eventmachine/eventmachine/EventMachine/Connection:ssl_verify_peer
web
-
rubydoc.info
/github/eventmachine/eventmachine/EventMachine/Connection:start_tls
web
Sources
- CVE List CVE-2020-15134
- GitHub Advisory GHSA-3q49-h8f9-9fr9
- NVD CVE-2020-15134
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.