{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "4af93b14ed209a0f15efe7c84593f57252bd8818"
            }
          ],
          "repo": "https://github.com/chewkeanho/automataci",
          "type": "GIT"
        }
      ]
    }
  ],
  "aliases": [
    "GHSA-6q23-vhhg-8h89"
  ],
  "database_specific": {
    "cna_assigner": "GitHub_M",
    "cwe_ids": [
      "CWE-20"
    ],
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42798.json"
  },
  "details": "AutomataCI is a template git repository equipped with a native built-in semi-autonomous CI tools. An issue in versions 1.4.1 and below can let a release job reset the git root repository to the first commit. Version 1.5.0 has a patch for this issue. As a workaround, make sure the `PROJECT_PATH_RELEASE` (e.g. `releases/`) directory is manually and actually `git cloned` properly, making it a different git repostiory from the root git repository.",
  "id": "CVE-2023-42798",
  "modified": "2026-04-01T23:07:46.365712899Z",
  "published": "2023-09-22T15:13:48.283Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/42xxx/CVE-2023-42798.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/ChewKeanHo/AutomataCI/security/advisories/GHSA-6q23-vhhg-8h89"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2023-42798"
    },
    {
      "type": "REPORT",
      "url": "https://github.com/ChewKeanHo/AutomataCI/issues/93"
    }
  ],
  "schema_version": "1.7.3",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "AutomataCI Release Job Can Revert Repo to First Commit"
}