CVE-2021-3907
OctoRPKI does not escape a URI with a filename containing "..", this a ...
Severity by source
Trivy's own label is CRITICAL. Rated critical by NVD. Rated lower by GHSA (high), Ubuntu (medium).
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 packages and fixed versions
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | cfrpki, fort-validator | 1.4.2-1~deb11u1 and 1 more |
| debian 12 | cfrpki, fort-validator | 1.4.0-1 and 1 more |
| debian 13 | fort-validator | 1.5.3-1 |
| debian 14 | fort-validator | 1.5.3-1 |
| echo | cfrpki, fort-validator | 1.4.0-1 and 1 more |
| go::GitHub Security Advisory Go | github.com/cloudflare/cfrpki | 1.4.4 |
| ubuntu 20.04-ESM | fort-validator | no fix listed |
Show all 10 entries from 7 sources
| Source | Package | Fixed in |
|---|---|---|
| debian 11 | cfrpki | 1.4.2-1~deb11u1 |
| debian 11 | fort-validator | 1.5.3-1~deb11u1 |
| debian 12 | cfrpki | 1.4.0-1 |
| debian 12 | fort-validator | 1.5.3-1 |
| debian 13 | fort-validator | 1.5.3-1 |
| debian 14 | fort-validator | 1.5.3-1 |
| echo | cfrpki | 1.4.0-1 |
| echo | fort-validator | 1.5.3-1 |
| go::GitHub Security Advisory Go | github.com/cloudflare/cfrpki | 1.4.4 |
| ubuntu 20.04-ESM | fort-validator | no fix listed |
References
- https://github.com/cloudflare/cfrpki
- https://github.com/cloudflare/cfrpki/commit/a053a808feeb3115c76b6cc263ee55598ce6e8cd
- https://github.com/cloudflare/cfrpki/commit/eb9cc4db7b7b79e44f56dfaa959fccdfb2af8284
- https://github.com/cloudflare/cfrpki/security/advisories/GHSA-3jhm-87m6-x959
- https://github.com/cloudflare/cfrpki/security/advisories/GHSA-cqh2-vc2f-q4fh
- https://nvd.nist.gov/vuln/detail/CVE-2021-3907
- https://pkg.go.dev/vuln/GO-2022-0248
- https://www.cve.org/CVERecord?id=CVE-2021-3907