# CVE-2020-13163: Improper certificate validation in em-imap

- Severity: High 7.4 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 56% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2020-05-19T21:22:57.000Z
- Modified: 2026-06-17T02:52:43.250Z
- Also known as: GHSA-4f68-49qq-h392
- Weaknesses: CWE-295
- Assigned by: mitre

## Description

em-imap 0.5 uses the library eventmachine in an insecure way that allows an attacker to perform a man-in-the-middle attack against users of the library. The hostname in a TLS server certificate is not verified.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- em-imap (RubyGems): up to 0.5
- em-imap_project em-imap: 0.5

## Every score

- GitHub: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:3.1 7.4 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:N`
- NVD: CVSS:2.0 5.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:N`

## References

- <https://github.com/ConradIrwin/em-imap/issues/25> (exploit, third-party-advisory, web)
- <https://securitylab.github.com/advisories/GHSL-2020-095-conradirwin-em-imap> (exploit, advisory, third-party-advisory)
- <https://nvd.nist.gov/vuln/detail/CVE-2020-13163> (advisory)
- <https://github.com/ConradIrwin/em-imap> (package)

## Sources

- CVE List: [CVE-2020-13163](https://www.cve.org/CVERecord?id=CVE-2020-13163), CVE Terms of Use, modified 2024-08-04
- GitHub Advisory Database: [GHSA-4f68-49qq-h392](https://github.com/advisories/GHSA-4f68-49qq-h392), CC-BY-4.0, modified 2024-02-16
- NVD: [CVE-2020-13163](https://nvd.nist.gov/vuln/detail/CVE-2020-13163), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2020-13163 · Whole record: https://cve.day/CVE-2020-13163.json · Rebuilt by cve.day 2026-11-25T22:57:52.469Z
