
CVE catalog
CVE-2018-16395
ALPINE-CVE-2018-16395
- Severity
- High · CVSS 7.5
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N - Published
- Updated
- Source
- [NVD] · [CVE record]
- EPSS
- 10.71% · Oct 25, 2026
An issue was discovered in the OpenSSL library in Ruby before 2.3.8, 2.4.x before 2.4.5, 2.5.x before 2.5.2, and 2.6.x before 2.6.0-preview3. When two OpenSSL::X509::Name objects are compared using ==, depending on the ordering, non-equal objects may return true. When the first argument is one character longer than the second, or the second argument contains a character that is one less than a character in the same position of the first argument, the result of == will be true. This could be leveraged to create an illegitimate certificate that may be accepted as legitimate and then used in signing or encryption operations.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Alpine | ruby | 3.11 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.12 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.13 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.14 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.15 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.16 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.17 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.18 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.19 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.20 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.21 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.22 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.23 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.24 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.4 | 2.3.8-r0 | fixed |
| Alpine | ruby | 3.5 | 2.3.8-r0 | fixed |
| Alpine | ruby | 3.6 | 2.4.5-r0 | fixed |
| Alpine | ruby | 3.7 | 2.4.5-r0 | fixed |
| Alpine | ruby | 3.8 | 2.5.2-r0 | fixed |
| Alpine | ruby | 3.9 | 2.5.2-r0 | fixed |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.194-8.1ubuntu2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.448-1ubuntu1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.448-1ubuntu2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-1ubuntu1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-1ubuntu2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.3 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.5 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.6 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.7 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.8 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.10 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.11 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.12 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.13 | fixed |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.299-2 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.343-1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.343-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.353-1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.353-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.2 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.4 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.5 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.6 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.8 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.9 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.10 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.11 | fixed |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-1 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-2 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-4ubuntu2 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-4ubuntu3 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.2 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.4 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.5 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.6 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.7 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.9 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.10 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.11 | fixed |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0~preview1-1ubuntu2 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-4ubuntu4 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-6ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.1 | fixed |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.194-8.1ubuntu2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.448-1ubuntu1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.448-1ubuntu2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-1ubuntu1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-1ubuntu2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.1 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.2 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.3 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.5 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.6 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.7 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.8 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.10 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.11 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.12 | vulnerable |
| Ubuntu | ruby1.9.1 | 14.04 | 1.9.3.484-2ubuntu1.13 | fixed |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.299-2 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.343-1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.343-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.353-1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.353-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.1 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.2 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.4 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.5 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.6 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.8 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.9 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.10 | vulnerable |
| Ubuntu | ruby2.0 | 14.04 | 2.0.0.484-1ubuntu2.11 | fixed |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-1 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-2 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-4ubuntu2 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-4ubuntu3 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.2 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.4 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.5 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.6 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.7 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.9 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.10 | vulnerable |
| Ubuntu | ruby2.3 | 16.04 | 2.3.1-2~16.04.11 | fixed |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0~preview1-1ubuntu2 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-4ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-4ubuntu4 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-5ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.0-6ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1 | vulnerable |
| Ubuntu | ruby2.5 | 18.04 | 2.5.1-1ubuntu1.1 | fixed |
| Debian | ruby2.3 | 9 | 2.3.3-1 | vulnerable |
| Debian | ruby2.3 | 9 | 2.3.3-1+deb9u1 | vulnerable |
| Debian | ruby2.3 | 9 | 2.3.3-1+deb9u2 | vulnerable |
| Debian | ruby2.3 | 9 | 2.3.3-1+deb9u3 | vulnerable |
| Debian | ruby2.3 | 9 | 2.3.3-1+deb9u4 | fixed |
| Debian | ruby2.1 | 8 | 2.1.5-2 | vulnerable |
| Debian | ruby2.1 | 8 | 2.1.5-2+deb8u1 | vulnerable |
| Debian | ruby2.1 | 8 | 2.1.5-2+deb8u2 | vulnerable |
| Debian | ruby2.1 | 8 | 2.1.5-2+deb8u3 | vulnerable |
| Debian | ruby2.1 | 8 | 2.1.5-2+deb8u4 | vulnerable |
| Debian | ruby2.1 | 8 | 2.1.5-2+deb8u5 | vulnerable |
| Debian | ruby2.1 | 8 | 2.1.5-2+deb8u6 | fixed |
| Suse | ruby | webyast 1.3 | 1.8.7.p357-0.9.20.3.1 | fixed |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Alpine | ruby | apk | 3.11 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.12 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.13 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.14 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.15 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.16 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.17 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.18 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.19 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.20 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.21 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.22 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.23 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.24 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.4 | 2.3.8-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.5 | 2.3.8-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.6 | 2.4.5-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.7 | 2.4.5-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.8 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Alpine | ruby | apk | 3.9 | 2.5.2-r0 | Not reported | ALPINE-CVE-2018-16395 | Not reported |
| Ubuntu | ruby1.9.1 | deb | 14.04 | 1.9.3.484-2ubuntu1.13 | Not reported | UBUNTU-CVE-2018-16395 | Not reported |
| Ubuntu | ruby2.0 | deb | 14.04 | 2.0.0.484-1ubuntu2.11 | Not reported | UBUNTU-CVE-2018-16395 | Not reported |
| Ubuntu | ruby2.3 | deb | 16.04 | 2.3.1-2~16.04.11 | Not reported | UBUNTU-CVE-2018-16395 | Not reported |
| Ubuntu | ruby2.5 | deb | 18.04 | 2.5.1-1ubuntu1.1 | Not reported | UBUNTU-CVE-2018-16395 | Not reported |
| Ubuntu | ruby1.9.1 | deb | 14.04 | 1.9.3.484-2ubuntu1.13 | Not reported | USN-3808-1 | Not reported |
| Ubuntu | ruby2.0 | deb | 14.04 | 2.0.0.484-1ubuntu2.11 | Not reported | USN-3808-1 | Not reported |
| Ubuntu | ruby2.3 | deb | 16.04 | 2.3.1-2~16.04.11 | Not reported | USN-3808-1 | Not reported |
| Ubuntu | ruby2.5 | deb | 18.04 | 2.5.1-1ubuntu1.1 | Not reported | USN-3808-1 | Not reported |
| Debian | ruby2.3 | deb | 9 | 2.3.3-1+deb9u4 | Not reported | DSA-4332-1 | Not reported |
| Debian | ruby2.1 | deb | 8 | 2.1.5-2+deb8u6 | Not reported | DLA-1558-1 | Not reported |
| Suse | ruby | rpm | webyast 1.3 | 1.8.7.p357-0.9.20.3.1 | Not reported | SUSE-SU-2022:15034-1 | Not reported |
OpenFactory catalog packages
No matching packages in this catalog.
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/rhsa-2018_3738.json]
- [https://osv.dev/vulnerability/ALPINE-CVE-2018-16395]
- [https://osv.dev/vulnerability/DLA-1558-1]
- [https://osv.dev/vulnerability/DSA-4332-1]
- [https://osv.dev/vulnerability/SUSE-SU-2022:15034-1]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2018-16395]
- [https://osv.dev/vulnerability/USN-3808-1]
- [https://security.access.redhat.com/data/csaf/v2/vex/2018/cve-2018-16395.json]
[FIRST EPSS] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX]