Skip to main content

CVE-2024-28862 — Vulnerability in rotp — CVE Details

MEDIUM

ROTP 6.2.2 and 6.2.1 has 0666 permissions for the .rb files.

Published March 18, 2024Updated December 5, 2025Source: OSV

What Should I Do?

Address in Next Maintenance Window

Low exploitation probability (0.24%). Schedule for your next planned update.

Does your project use an affected rotp version?

Paste your Gemfile.lock to check it for CVE-2024-28862 and every other known vulnerability, with CISA KEV and EPSS on each finding. Free with no signup for up to 10 packages, or up to 500 per scan with a free account, which also keeps up to 200 packages in saved projects.

Check my Gemfile.lock

Summary

The Ruby One Time Password library (ROTP) is an open source library for generating and validating one time passwords. Affected versions had overly permissive default permissions. Users should patch to version 6.3.0. Users unable to patch may correct file permissions after installation.

Advisory Timeline

  • First published March 18, 2024 (983 days ago).
  • Last revised December 5, 2025 — 627 days after initial publication.

Remediation

Upgrade to the fixed version using your package manager.

Bundler
Update rotp to 6.3.0 or later
gem install rotp -v 6.3.0

After upgrading, scan your dependencies again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: RubyGems (1).

PackageFixed In
rotp RubyGems · Affected: 6.2.1, 6.2.26.3.0

Vulnerability Classification

Common Weakness Enumeration (CWE) identifiers for this vulnerability type.

  • CWE-276
    Incorrect Default PermissionsMITRE

CVSS Score Breakdown

What the CVSS (Common Vulnerability Scoring System) 5.3 score means for each attack dimension.

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
Low
Integrity
Low
Availability
Low

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L

Frequently Asked Questions

What is CVE-2024-28862?
ROTP 6.2.2 and 6.2.1 has 0666 permissions for the .rb files. This vulnerability has been assigned a severity rating of MEDIUM (CVSS score: 5.3/10).
How do I check if my project is affected by CVE-2024-28862?
CVE-2024-28862 affects rotp. It has a 0.2% probability of exploitation within 30 days (EPSS score). Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2024-28862 and 200,000+ other known vulnerabilities.

Severity & Exploitability

CVSS Score
5.3

Exploitation requires specific conditions, or the impact is limited.

EPSS Score (30-day exploit probability)
0.24%
EPSS percentile: 9.3

This is a below-median EPSS score — only 9.3% of tracked vulnerabilities score at or below it, so most tracked vulnerabilities are considered more likely to be exploited than this one.

Also Known As

GHSA-x2h8-qmj4-g62f

Related CVEs

Check your own dependencies

Free, with no signup for up to 10 packages.

Check my Gemfile.lock