Loading...
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

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 (938 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, run your dependency scanner again to confirm the vulnerability is resolved.

Affected Packages (1)

Affects 1 ecosystem: rubygems (1).

PackageEcosystemAffectedFixed In
rotp
rubygems
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. 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 has limited impact. Remediate within weeks.

Also Known As

GHSA-x2h8-qmj4-g62f

Related CVEs

Check if you're affected

Scan your dependencies to see if this vulnerability affects your projects.

Scan Your Dependencies