7.4high
Arbitrary filepath traversal via URI injection
- Severity
- 7.4high CVSS:3.1 by cloudflare
- Exploit likelihood
- 4.12% (higher than 91% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- cloudflare
- Also known as
- GHSA-8459-6rc9-8vf8GHSA-cqh2-vc2f-q4fhGO-2022-0248
Description
OctoRPKI does not escape a URI with a filename containing "..", this allows a repository to create a file, (ex. rsync://example.org/repo/../../etc/cron.daily/evil.roa), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Cloudflare octorpki | from unspecified before 1.4.3, before 1.3.0 | CVE List, NVD |
| github.com/cloudflare/cfrpki (Go) | before 1.4.3, before 1.4.4 | GitHub Advisory Database, Go Vulnerability Database |
| debian debian_linux | 10.0, 11.0 | NVD |
All scores
| cloudflare | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | low rating | |
| GitHub | 7.4high CVSS:3.1 | CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:H/A:H |
| NVD | 9.8critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 7.5high CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:P/A:P |
Classification
What each source says
CVE List
OctoRPKI does not escape a URI with a filename containing "..", this allows a repository to create a file, (ex. rsync://example.org/repo/../../etc/cron.daily/evil.roa), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on.
GitHub Advisory Database
Impact
In the case that a malicious TAL file is parsed pointing to a repository that provides a malicious ROA file which octorpki downloads, it is possible to bypass the current directory traversal mitigation to allow writing outside of the current directory.
Patches
No patch release has been made
GitHub Advisory Database
OctoRPKI does not escape a URI with a filename containing "..", this allows a repository to create a file, (ex. rsync://example.org/repo/../../etc/cron.daily/evil.roa), which would then be written to disk outside the base cache folder. This could allow for remote code execution on the host machine OctoRPKI is running on.
Patches
For more information
If you have any questions or comments about this advisory email us at security@cloudflare.com
Go Vulnerability Database
Manifest path extraction is vulnerable to directory traversal attacks.
The ExtractPathManifest function permits file paths containing relative directory components (".."), permitting files to reference arbitrary locations on the filesystem.
NVD (es)
OctoRPKI no escapa a un URI con un nombre de archivo que contenga "..", esto permite que un repositorio cree un archivo, (ej. rsync://ejemplo.org/repo/../../etc/cron.daily/evil.roa), que luego sería escrito en el disco fuera de la carpeta de caché base. Esto podría permitir una ejecución de código remota en la máquina anfitriona en la que se ejecuta OctoRPKI
References
| https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh | third-party-advisory, web | |
| https://www.debian.org/security/2021/dsa-5033 | third-party-advisory, vendor-advisory, web | |
| https://www.debian.org/security/2022/dsa-5041 | third-party-advisory, vendor-advisory, web | |
| https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959 | third-party-advisory, web | |
| https://github.com/cloudflare/cfrpki/security/advisories/GHSA-8459-6rc9-8vf8 | web | |
| https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd | fix, web | |
| https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284 | fix, web | |
| https://github.com/cloudflare/cfrpki | package | |
| https://github.com/cloudflare/cfrpki/releases/tag/v1.4.3 | web | |
| https://nvd.nist.gov/vuln/detail/CVE-2021-3907 | advisory | |
| https://pkg.go.dev/vuln/GO-2022-0248 | web | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-3907 changed 2024-09-17 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-8459-6rc9-8vf8 changed 2025-01-14 | CC-BY-4.0 |
| GitHub Advisory Database | GHSA-cqh2-vc2f-q4fh changed 2026-02-04 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2022-0248 changed 2026-02-04 | CC-BY-4.0 |
| NVD | CVE-2021-3907 changed 2026-06-17 | Public domain |