cve-2022-46258
Vulnerability from cvelistv5
Published
2023-01-09 00:00
Modified
2025-04-09 13:51
Summary
An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed a repository-scoped token with read/write access to modify Action Workflow files without a Workflow scope. The Create or Update file contents API should enforce workflow scope. This vulnerability affected all versions of GitHub Enterprise Server prior to version 3.7 and was fixed in versions 3.3.16, 3.4.11, 3.5.8, and 3.6.4. This vulnerability was reported via the GitHub Bug Bounty program.
Impacted products
Vendor Product Version
GitHub GitHub Enterprise Server Version: 3.3   < 3.3.16
Version: 3.4   < 3.4.11
Version: 3.5   < 3.5.8
Version: 3.6   < 3.6.4
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            providerMetadata: {
               dateUpdated: "2024-08-03T14:31:45.925Z",
               orgId: "af854a3a-2127-422b-91ae-364da2661108",
               shortName: "CVE",
            },
            references: [
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.16",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.11",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.8",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.4",
               },
            ],
            title: "CVE Program Container",
         },
         {
            metrics: [
               {
                  cvssV3_1: {
                     attackComplexity: "LOW",
                     attackVector: "NETWORK",
                     availabilityImpact: "NONE",
                     baseScore: 6.5,
                     baseSeverity: "MEDIUM",
                     confidentialityImpact: "NONE",
                     integrityImpact: "HIGH",
                     privilegesRequired: "LOW",
                     scope: "UNCHANGED",
                     userInteraction: "NONE",
                     vectorString: "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N",
                     version: "3.1",
                  },
               },
               {
                  other: {
                     content: {
                        id: "CVE-2022-46258",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "no",
                           },
                           {
                              "Technical Impact": "partial",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2025-04-09T13:49:39.279825Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            providerMetadata: {
               dateUpdated: "2025-04-09T13:51:10.568Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               product: "GitHub Enterprise Server",
               vendor: "GitHub",
               versions: [
                  {
                     lessThan: "3.3.16",
                     status: "affected",
                     version: "3.3",
                     versionType: "custom",
                  },
                  {
                     lessThan: "3.4.11",
                     status: "affected",
                     version: "3.4",
                     versionType: "custom",
                  },
                  {
                     lessThan: "3.5.8",
                     status: "affected",
                     version: "3.5",
                     versionType: "custom",
                  },
                  {
                     lessThan: "3.6.4",
                     status: "affected",
                     version: "3.6",
                     versionType: "custom",
                  },
               ],
            },
         ],
         credits: [
            {
               lang: "en",
               value: "Alex Ilgayev",
            },
            {
               lang: "en",
               value: "Vaibhav Singh (@vaib25vicky)",
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed a repository-scoped token with read/write access to modify Action Workflow files without a Workflow scope. The Create or Update file contents API should enforce workflow scope. This vulnerability affected all versions of GitHub Enterprise Server prior to version 3.7 and was fixed in versions 3.3.16, 3.4.11, 3.5.8, and 3.6.4. This vulnerability was reported via the GitHub Bug Bounty program.",
            },
         ],
         problemTypes: [
            {
               descriptions: [
                  {
                     cweId: "CWE-863",
                     description: "CWE-863",
                     lang: "en",
                     type: "CWE",
                  },
               ],
            },
         ],
         providerMetadata: {
            dateUpdated: "2023-01-30T00:00:00.000Z",
            orgId: "82327ea3-741d-41e4-88f8-2cf9e791e760",
            shortName: "GitHub_P",
         },
         references: [
            {
               url: "https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.16",
            },
            {
               url: "https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.11",
            },
            {
               url: "https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.8",
            },
            {
               url: "https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.4",
            },
         ],
         source: {
            discovery: "EXTERNAL",
         },
         title: "Incorrect Authorization in GitHub Enterprise Server leads to Action Workflow modifications without Workflow Scope",
      },
   },
   cveMetadata: {
      assignerOrgId: "82327ea3-741d-41e4-88f8-2cf9e791e760",
      assignerShortName: "GitHub_P",
      cveId: "CVE-2022-46258",
      datePublished: "2023-01-09T00:00:00.000Z",
      dateReserved: "2022-11-28T00:00:00.000Z",
      dateUpdated: "2025-04-09T13:51:10.568Z",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2022-46258\",\"sourceIdentifier\":\"product-cna@github.com\",\"published\":\"2023-01-09T17:15:10.977\",\"lastModified\":\"2025-04-09T14:15:25.587\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed a repository-scoped token with read/write access to modify Action Workflow files without a Workflow scope. The Create or Update file contents API should enforce workflow scope. This vulnerability affected all versions of GitHub Enterprise Server prior to version 3.7 and was fixed in versions 3.3.16, 3.4.11, 3.5.8, and 3.6.4. This vulnerability was reported via the GitHub Bug Bounty program.\"},{\"lang\":\"es\",\"value\":\"Se identificó una vulnerabilidad de autorización incorrecta en GitHub Enterprise Server que permitía que un token con alcance de repositorio con acceso de lectura/escritura modificara archivos de flujo de trabajo de acción sin un alcance de flujo de trabajo. La API Crear o actualizar el contenido del archivo debe aplicar el alcance del flujo de trabajo. Esta vulnerabilidad afectó a todas las versiones de GitHub Enterprise Server anteriores a la versión 3.7 y se solucionó en las versiones 3.3.16, 3.4.11, 3.5.8 y 3.6.4. Esta vulnerabilidad se informó a través del programa GitHub Bug Bounty.\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":3.6},{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N\",\"baseScore\":6.5,\"baseSeverity\":\"MEDIUM\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"LOW\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"NONE\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"NONE\"},\"exploitabilityScore\":2.8,\"impactScore\":3.6}]},\"weaknesses\":[{\"source\":\"product-cna@github.com\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-863\"}]},{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-863\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*\",\"versionEndExcluding\":\"3.3.16\",\"matchCriteriaId\":\"E4F2D1DF-18B6-41C7-9419-344903BB3329\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"3.4.0\",\"versionEndExcluding\":\"3.4.11\",\"matchCriteriaId\":\"1ACD576A-8127-4831-B3C9-9E1458E073E8\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"3.5.0\",\"versionEndExcluding\":\"3.5.8\",\"matchCriteriaId\":\"FE47FDA8-4EA9-4C83-992B-A4364FB6B5D6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:github:enterprise_server:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"3.6.0\",\"versionEndExcluding\":\"3.6.4\",\"matchCriteriaId\":\"F99D0124-5B44-46B1-9E7B-684D94301E08\"}]}]}],\"references\":[{\"url\":\"https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.16\",\"source\":\"product-cna@github.com\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.11\",\"source\":\"product-cna@github.com\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.8\",\"source\":\"product-cna@github.com\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.4\",\"source\":\"product-cna@github.com\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.16\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.11\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.8\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"},{\"url\":\"https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.4\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\"}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.16\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.11\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.8\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.4\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T14:31:45.925Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 6.5, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"MEDIUM\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:N\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"NONE\", \"privilegesRequired\": \"LOW\", \"confidentialityImpact\": \"NONE\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-46258\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"no\"}, {\"Technical Impact\": \"partial\"}], \"version\": \"2.0.3\", \"timestamp\": \"2025-04-09T13:49:39.279825Z\"}}}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2025-04-09T13:50:02.379Z\"}}], \"cna\": {\"title\": \"Incorrect Authorization in GitHub Enterprise Server leads to Action Workflow modifications without Workflow Scope\", \"source\": {\"discovery\": \"EXTERNAL\"}, \"credits\": [{\"lang\": \"en\", \"value\": \"Alex Ilgayev\"}, {\"lang\": \"en\", \"value\": \"Vaibhav Singh (@vaib25vicky)\"}], \"affected\": [{\"vendor\": \"GitHub\", \"product\": \"GitHub Enterprise Server\", \"versions\": [{\"status\": \"affected\", \"version\": \"3.3\", \"lessThan\": \"3.3.16\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"3.4\", \"lessThan\": \"3.4.11\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"3.5\", \"lessThan\": \"3.5.8\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"3.6\", \"lessThan\": \"3.6.4\", \"versionType\": \"custom\"}]}], \"references\": [{\"url\": \"https://docs.github.com/en/enterprise-server%403.3/admin/release-notes#3.3.16\"}, {\"url\": \"https://docs.github.com/en/enterprise-server%403.4/admin/release-notes#3.4.11\"}, {\"url\": \"https://docs.github.com/en/enterprise-server%403.5/admin/release-notes#3.5.8\"}, {\"url\": \"https://docs.github.com/en/enterprise-server%403.6/admin/release-notes#3.6.4\"}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"An incorrect authorization vulnerability was identified in GitHub Enterprise Server that allowed a repository-scoped token with read/write access to modify Action Workflow files without a Workflow scope. The Create or Update file contents API should enforce workflow scope. This vulnerability affected all versions of GitHub Enterprise Server prior to version 3.7 and was fixed in versions 3.3.16, 3.4.11, 3.5.8, and 3.6.4. This vulnerability was reported via the GitHub Bug Bounty program.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-863\", \"description\": \"CWE-863\"}]}], \"providerMetadata\": {\"orgId\": \"82327ea3-741d-41e4-88f8-2cf9e791e760\", \"shortName\": \"GitHub_P\", \"dateUpdated\": \"2023-01-30T00:00:00.000Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2022-46258\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2025-04-09T13:51:10.568Z\", \"dateReserved\": \"2022-11-28T00:00:00.000Z\", \"assignerOrgId\": \"82327ea3-741d-41e4-88f8-2cf9e791e760\", \"datePublished\": \"2023-01-09T00:00:00.000Z\", \"assignerShortName\": \"GitHub_P\"}",
         dataType: "CVE_RECORD",
         dataVersion: "5.1",
      },
   },
}


Log in or create an account to share your comment.

Security Advisory comment format.

This schema specifies the format of a comment related to a security advisory.

UUIDv4 of the comment
UUIDv4 of the Vulnerability-Lookup instance
When the comment was created originally
When the comment was last updated
Title of the comment
Description of the comment
The identifier of the vulnerability (CVE ID, GHSA-ID, PYSEC ID, etc.).



Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Sightings

Author Source Type Date

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or seen somewhere by the user.
  • Confirmed: The vulnerability is confirmed from an analyst perspective.
  • Exploited: This vulnerability was exploited and seen by the user reporting the sighting.
  • Patched: This vulnerability was successfully patched by the user reporting the sighting.
  • Not exploited: This vulnerability was not exploited or seen by the user reporting the sighting.
  • Not confirmed: The user expresses doubt about the veracity of the vulnerability.
  • Not patched: This vulnerability was not successfully patched by the user reporting the sighting.