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

- Severity: Medium 5.3 (CVSS:3.1, scored by GitHub_M) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.18%, higher than 7% of CVEs (2026-12-01)
- Published: 2024-03-15T23:44:06.416Z
- Modified: 2026-06-17T07:21:54.490Z
- Also known as: GHSA-x2h8-qmj4-g62f
- Weaknesses: CWE-276
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- mdp rotp: = 6.2.2; = 6.2.1
- rotp (RubyGems): from 6.2.1 before 6.3.0
- rotp_project rotp: from 6.2.1 before 6.3.0

## Every score

- GitHub_M: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N`

## References

- <https://github.com/mdp/rotp/security/advisories/GHSA-x2h8-qmj4-g62f> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-28862> (advisory)
- <https://github.com/mdp/rotp> (package)
- <https://github.com/rubysec/ruby-advisory-db/blob/master/gems/rotp/CVE-2024-28862.yml> (web)

## Sources

- CVE List: [CVE-2024-28862](https://www.cve.org/CVERecord?id=CVE-2024-28862), CVE Terms of Use, modified 2024-08-21
- GitHub Advisory Database: [GHSA-x2h8-qmj4-g62f](https://github.com/advisories/GHSA-x2h8-qmj4-g62f), CC-BY-4.0, modified 2025-12-05
- NVD: [CVE-2024-28862](https://nvd.nist.gov/vuln/detail/CVE-2024-28862), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-28862 · Whole record: https://cve.day/CVE-2024-28862.json · Rebuilt by cve.day 2026-11-25T22:58:37.607Z
