GCVE Workshop - 22 September 2026 (14:00-18:00), Luxembourg Before The Vulnopticon Conference - Registration

GSD-2021-4238

Vulnerability from gsd - Updated: 2023-12-13 01:23
Details
Randomly-generated alphanumeric strings contain significantly less entropy than expected. The RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions.
Aliases
Aliases

{
  "GSD": {
    "alias": "CVE-2021-4238",
    "id": "GSD-2021-4238",
    "references": [
      "https://www.suse.com/security/cve/CVE-2021-4238.html",
      "https://access.redhat.com/errata/RHSA-2023:0449",
      "https://access.redhat.com/errata/RHSA-2023:0540",
      "https://access.redhat.com/errata/RHSA-2023:0542",
      "https://access.redhat.com/errata/RHSA-2023:0561",
      "https://access.redhat.com/errata/RHSA-2023:0565",
      "https://access.redhat.com/errata/RHSA-2023:0569",
      "https://access.redhat.com/errata/RHSA-2023:0574",
      "https://access.redhat.com/errata/RHSA-2023:0651",
      "https://access.redhat.com/errata/RHSA-2023:0728",
      "https://access.redhat.com/errata/RHSA-2023:0770",
      "https://access.redhat.com/errata/RHSA-2023:0774",
      "https://access.redhat.com/errata/RHSA-2023:0802",
      "https://access.redhat.com/errata/RHSA-2023:0803",
      "https://access.redhat.com/errata/RHSA-2023:0804",
      "https://access.redhat.com/errata/RHSA-2023:0899",
      "https://access.redhat.com/errata/RHSA-2023:1159",
      "https://access.redhat.com/errata/RHSA-2023:1170"
    ]
  },
  "gsd": {
    "metadata": {
      "exploitCode": "unknown",
      "remediation": "unknown",
      "reportConfidence": "confirmed",
      "type": "vulnerability"
    },
    "osvSchema": {
      "aliases": [
        "CVE-2021-4238"
      ],
      "details": "Randomly-generated alphanumeric strings contain significantly less entropy than expected. The RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions.",
      "id": "GSD-2021-4238",
      "modified": "2023-12-13T01:23:11.666872Z",
      "schema_version": "1.4.0"
    }
  },
  "namespaces": {
    "cve.org": {
      "CVE_data_meta": {
        "ASSIGNER": "security@golang.org",
        "ID": "CVE-2021-4238",
        "STATE": "PUBLIC"
      },
      "affects": {
        "vendor": {
          "vendor_data": [
            {
              "product": {
                "product_data": [
                  {
                    "product_name": "github.com/Masterminds/goutils",
                    "version": {
                      "version_data": [
                        {
                          "version_affected": "\u003c",
                          "version_name": "0",
                          "version_value": "1.1.1"
                        }
                      ]
                    }
                  }
                ]
              },
              "vendor_name": "github.com/Masterminds/goutils"
            }
          ]
        }
      },
      "data_format": "MITRE",
      "data_type": "CVE",
      "data_version": "4.0",
      "description": {
        "description_data": [
          {
            "lang": "eng",
            "value": "Randomly-generated alphanumeric strings contain significantly less entropy than expected. The RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions."
          }
        ]
      },
      "problemtype": {
        "problemtype_data": [
          {
            "description": [
              {
                "lang": "eng",
                "value": "CWE 330: Use of Insufficiently Random Values"
              }
            ]
          }
        ]
      },
      "references": {
        "reference_data": [
          {
            "name": "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1",
            "refsource": "MISC",
            "url": "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1"
          },
          {
            "name": "https://pkg.go.dev/vuln/GO-2022-0411",
            "refsource": "MISC",
            "url": "https://pkg.go.dev/vuln/GO-2022-0411"
          }
        ]
      }
    },
    "gitlab.com": {
      "advisories": [
        {
          "affected_range": "\u003cv1.1.1",
          "affected_versions": "All versions before 1.1.1",
          "cwe_ids": [
            "CWE-1035",
            "CWE-937"
          ],
          "date": "2022-12-30",
          "description": "Randomly-generated alphanumeric strings contain significantly less entropy than expected. The RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions.",
          "fixed_versions": [
            "v1.1.1"
          ],
          "identifier": "CVE-2021-4238",
          "identifiers": [
            "GHSA-3839-6r69-m497",
            "CVE-2021-4238"
          ],
          "not_impacted": "All versions starting from 1.1.1",
          "package_slug": "go/github.com/Masterminds/goutils",
          "pubdate": "2022-12-28",
          "solution": "Upgrade to version 1.1.1 or above.",
          "title": "GoUtils\u0027s randomly-generated alphanumeric strings contain significantly less entropy than expected",
          "urls": [
            "https://nvd.nist.gov/vuln/detail/CVE-2021-4238",
            "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1",
            "https://pkg.go.dev/vuln/GO-2022-0411",
            "https://github.com/advisories/GHSA-3839-6r69-m497"
          ],
          "uuid": "dcabb26f-2d1a-4cfa-88d8-dd1176ba307f",
          "versions": [
            {
              "commit": {
                "sha": "f1923532a168b8203bfe956d8cd3b17ebece5982",
                "tags": [
                  "v1.1.1"
                ],
                "timestamp": "20210204200653"
              },
              "number": "v1.1.1"
            }
          ]
        }
      ]
    },
    "nvd.nist.gov": {
      "configurations": {
        "CVE_data_version": "4.0",
        "nodes": [
          {
            "children": [],
            "cpe_match": [
              {
                "cpe23Uri": "cpe:2.3:a:goutils_project:goutils:*:*:*:*:*:go:*:*",
                "cpe_name": [],
                "versionEndExcluding": "1.1.1",
                "vulnerable": true
              }
            ],
            "operator": "OR"
          }
        ]
      },
      "cve": {
        "CVE_data_meta": {
          "ASSIGNER": "security@golang.org",
          "ID": "CVE-2021-4238"
        },
        "data_format": "MITRE",
        "data_type": "CVE",
        "data_version": "4.0",
        "description": {
          "description_data": [
            {
              "lang": "en",
              "value": "Randomly-generated alphanumeric strings contain significantly less entropy than expected. The RandomAlphaNumeric and CryptoRandomAlphaNumeric functions always return strings containing at least one digit from 0 to 9. This significantly reduces the amount of entropy in short strings generated by these functions."
            }
          ]
        },
        "problemtype": {
          "problemtype_data": [
            {
              "description": [
                {
                  "lang": "en",
                  "value": "CWE-331"
                }
              ]
            }
          ]
        },
        "references": {
          "reference_data": [
            {
              "name": "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1",
              "refsource": "MISC",
              "tags": [
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://github.com/Masterminds/goutils/commit/869801f20f9f1e7ecdbdb6422049d8241270d5e1"
            },
            {
              "name": "https://pkg.go.dev/vuln/GO-2022-0411",
              "refsource": "MISC",
              "tags": [
                "Exploit",
                "Patch",
                "Third Party Advisory"
              ],
              "url": "https://pkg.go.dev/vuln/GO-2022-0411"
            }
          ]
        }
      },
      "impact": {
        "baseMetricV3": {
          "cvssV3": {
            "attackComplexity": "LOW",
            "attackVector": "NETWORK",
            "availabilityImpact": "HIGH",
            "baseScore": 9.1,
            "baseSeverity": "CRITICAL",
            "confidentialityImpact": "HIGH",
            "integrityImpact": "NONE",
            "privilegesRequired": "NONE",
            "scope": "UNCHANGED",
            "userInteraction": "NONE",
            "vectorString": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H",
            "version": "3.1"
          },
          "exploitabilityScore": 3.9,
          "impactScore": 5.2
        }
      },
      "lastModifiedDate": "2023-01-05T04:43Z",
      "publishedDate": "2022-12-27T22:15Z"
    }
  }
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…

Related by attack behaviour

Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.


Loading…