CVE-2015-9238
Insecure Comparison in secure-compare
secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.
Attack profile
How easy it is to exploit
- Attack vector
- Network
- Complexity
- Low
- Privileges needed
- None
- User interaction
- None
What an attacker can affect
- Confidentiality
- None
- Integrity
- Low
- Availability
- None
Exploit likelihood
What each source reports
NVD Score used
5.3
secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.
- Record
CVE-2015-9238- CVSS 3.0
- 5.3 Medium
CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:N - CVSS 2.0
- 5.0 Medium
AV:N/AC:L/Au:N/C:N/I:P/A:N - Weakness
- CWE-697, CWE-134
- Updated
- 2026-11-02
CVE List No score
secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.
- Record
CVE-2015-9238- Weakness
- CWE-697
- Updated
- 2026-11-02
EUVDEUVD-2019-0540 No score
secure-compare 3.0.0 and below do not actually compare two strings properly. compare was actually comparing the first argument with itself, meaning the check passed for any two strings of the same length.
- Record
EUVD-2019-0540- Updated
- 2026-11-03
GitHub AdvisoriesGHSA-h9x2-5rm7-x4gm No score
Insecure Comparison in secure-compare
Versions of secure-compare prior to 3.0.1 are affected by a vulnerability that results in the package always returning true when comparing two strings of the same length, despite differences in the contents of those strings.
Recommendation
Upgrade to version 3.0.1 or later.
- Record
GHSA-h9x2-5rm7-x4gm- Weakness
- CWE-697
- Updated
- 2026-11-02
OSVGHSA-h9x2-5rm7-x4gm No score
Insecure Comparison in secure-compare
Versions of secure-compare prior to 3.0.1 are affected by a vulnerability that results in the package always returning true when comparing two strings of the same length, despite differences in the contents of those strings.
Recommendation
Upgrade to version 3.0.1 or later.
- Record
GHSA-h9x2-5rm7-x4gm- Weakness
- CWE-697
- Updated
- 2026-11-02
Affected products
Affected packages
| Package | Affected | Fixed |
|---|---|---|
secure-comparenpm |
before 3.0.1 | 3.0.1 |
Public exploits
Links only. Every CVE stores no exploit code.
| Source | Link | Date |
|---|---|---|
| PoC in GitHub | m0d0ri205/wargame-turkey_in_2 | 2024-11-24 |
History
| Recorded | Changed | Sources |
|---|---|---|
| aliases | EUVD | |
| first indexed | CVE List, GitHub Advisories, NVD, OSV, PoC in GitHub |
Dates are when Every CVE recorded each change. Upstream dates may differ.
In short
CVE-2015-9238 is a medium vulnerability (CVSS 5.3) in Secure-compare Project Secure-compare, published May 31, 2018. Public exploit code exists. EPSS puts the chance of exploitation in the next 30 days at 1.48%, the 74th percentile. Fixed in secure-compare 3.0.1.