GHSA-c8xp-8mf3-62h9

Suggest an improvement
Source
https://github.com/advisories/GHSA-c8xp-8mf3-62h9
Import Source
https://github.com/github/advisory-database/blob/main/advisories/github-reviewed/2021/09/GHSA-c8xp-8mf3-62h9/GHSA-c8xp-8mf3-62h9.json
JSON Data
https://api.osv.dev/v1/vulns/GHSA-c8xp-8mf3-62h9
Aliases
Published
2021-09-07T23:02:18Z
Modified
2023-11-08T04:06:18.884882Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
OctoRPKI lacks contextual out-of-bounds check when validating RPKI ROA maxLength values
Details

Any CA issuer in the RPKI can trick OctoRPKI prior to https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422 into emitting an invalid VRP "MaxLength" value, causing RTR sessions to terminate.

Impact

An attacker can use this to disable RPKI Origin Validation in a victim network (for example AS 13335 - Cloudflare) prior to launching a BGP hijack which during normal operations would be rejected as "RPKI invalid". Additionally, in certain deployments RTR session flapping in and of itself also could cause BGP routing churn, causing availability issues.

Patches

https://github.com/cloudflare/cfrpki/commit/a8db4e009ef217484598ba1fd1c595b54e0f6422

https://github.com/cloudflare/cfrpki/releases/tag/v1.3.0

For more information

If you have any questions or comments about this advisory: * Email us at security@cloudflare.com

Database specific
{
    "nvd_published_at": "2021-09-09T14:15:00Z",
    "github_reviewed_at": "2021-09-03T21:40:39Z",
    "severity": "HIGH",
    "github_reviewed": true,
    "cwe_ids": [
        "CWE-295",
        "CWE-787"
    ]
}
References

Affected packages

Go / github.com/cloudflare/cfrpki

Package

Name
github.com/cloudflare/cfrpki
View open source insights on deps.dev
Purl
pkg:golang/github.com/cloudflare/cfrpki

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected
Fixed
1.3.0