Skip to content

RUSTSEC-2020-0036 is informational. Is it really also "CRITICAL"? #1270

Closed

Description

@8573

RUSTSEC-2020-0036 (archived version), which advises that failure is deprecated, is marked as informational. The RustSec website's page for this advisory lists its CVSS score is 9.8, which, the website says, means this is a "CRITICAL" problem, in all-caps, with a red background. The website then goes into more detail, saying that the deprecatedness of failure enables a low-complexity attack, executable over the network, with high impact to confidentiality, integrity, and availability.

The original addition of this advisory (#368) does not show such alarm. This level of alarm appears to have been added by the addition of CVSS information for this and many other advisories in #1085.

It appears that this CVSS information was added in an automated manner because the advisory is linked to CVE-2020-25575. CVE-2020-25575 says it's about "Access of Resource Using Incompatible Type ('Type Confusion')" and references an unsoundness in failure reported by Qwaz (rust-lang-deprecated/failure#336), although it also mentions "compatibility hazards", which appears to be a reference to woboats's retrospective about failure, which, as far as I see, is hardly referring to any security problem in failure. (Is the CVE advisory confused?)

CVE-2020-25575 is also linked by RUSTSEC-2019-0036, which is about rust-lang-deprecated/failure#336.

Am I right in thinking that the CVE link and associated CVSS information belong with RUSTSEC-2019-0036 and not RUSTSEC-2020-0036?

Activity

  1. 8573 commented on Jun 26, 2022

    @8573
    ContributorAuthor

    CVE-2020-25575. CVE-2020-25575 says

    (The second link was added by GitHub, in case anyone wonders.)

  2. qwaz commented on Jun 27, 2022

    @qwaz
    Contributor

    There are two conditions for a library bug to be triggered. (1) The target application should use the API in a vulnerable manner and (2) the attacker should find a way to trigger it (e.g., through a network packet). My impression is that NIST mainly focuses on the second part when assigning a CVSS score which sometimes results in an exaggerated score that does not align with the actual security impact.

    The bug in failure should have no impact in reality because people would not use the API in the bug-triggering way (requires overriding a method that is clearly private). However, if a program indeed used failure crate in this way, it would become an easy attack vector for malicious attackers, and I think that is why NIST assigned high CVSS score for this bug.

    Please note that this is just my interpretation. I don't know what exact strategy is used to assign a CVSS score.

  3. 8573 commented on Jul 1, 2022

    @8573
    ContributorAuthor

    (In case https://internals.rust-lang.org/t/16699/15 was partly referring to my remarks here, I'd like to clarify that I didn't mean to complain about the surfacing of CVSS information for libraries in general; rather, I meant to question whether RUSTSEC-2020-0036 (as opposed to RUSTSEC-2019-0036) should link itself to CVE-2020-25575, which — to my inexpert eyes — seems to correspond to RUSTSEC-2019-0036 instead.)

  4. pinkforest commented on Aug 14, 2022

    @pinkforest
    Contributor

    Converting this to discussion as there isn't much actionable concrete stuff right now and requires wider discussion round CVSS. Thanks

  5. locked and limited conversation to collaborators on Aug 14, 2022
  6. converted this issue into a discussion #1351 on Aug 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions