Lucene search

K
githubGitHub Advisory DatabaseGHSA-PWHF-7427-9VV2
HistoryAug 25, 2021 - 8:56 p.m.

Non-atomic writes in cgc

2021-08-2520:56:57
CWE-657
GitHub Advisory Database
github.com
15
non-atomic writes
data races
mutable alias rules
software
soundness issues.

CVSS2

4.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:N/I:N/A:P

CVSS3

5.9

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS

0.001

Percentile

45.7%

Multiple soundness issues in Ptr in cgc

Affected versions of this crate have the following issues:

  1. Ptr implements Send and Sync for all types, this can lead to data
    races by sending non-thread safe types across threads.

  2. Ptr::get violates mutable alias rules by returning multiple mutable
    references to the same object.

  3. Ptr::write uses non-atomic writes to the underlying pointer. This means
    that when used across threads it can lead to data races.

Affected configurations

Vulners
Node
cgc_projectcgcRange0.4.0rust
VendorProductVersionCPE
cgc_projectcgc*cpe:2.3:a:cgc_project:cgc:*:*:*:*:*:rust:*:*

CVSS2

4.3

Attack Vector

NETWORK

Attack Complexity

MEDIUM

Authentication

NONE

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

PARTIAL

AV:N/AC:M/Au:N/C:N/I:N/A:P

CVSS3

5.9

Attack Vector

NETWORK

Attack Complexity

HIGH

Privileges Required

NONE

User Interaction

NONE

Scope

UNCHANGED

Confidentiality Impact

NONE

Integrity Impact

NONE

Availability Impact

HIGH

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:N/A:H

EPSS

0.001

Percentile

45.7%

Related for GHSA-PWHF-7427-9VV2