cve-2022-43781
Vulnerability from cvelistv5
Published
2022-11-17 00:00
Modified
2024-10-02 14:56
Severity ?
Summary
There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker with permission to control their username can exploit this issue to execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.
Impacted products
Vendor Product Version
Atlassian Bitbucket Data Center Version: before 7.17.12
Version: before 7.21.6
Version: before 7.6.19
Version: before 8.0.5
Version: before 8.1.5
Version: before 8.2.4
Version: before 8.3.3
Version: before 8.4.2
Version: before 8.5.0
Create a notification for this product.
   Atlassian Bitbucket Server Version: before 7.17.12
Version: before 7.21.6
Version: before 7.6.19
Version: before 8.0.5
Version: before 8.1.5
Version: before 8.2.4
Version: before 8.3.3
Version: before 8.4.2
Version: before 8.5.0
Create a notification for this product.
Show details on NVD website


{
   containers: {
      adp: [
         {
            providerMetadata: {
               dateUpdated: "2024-08-03T13:40:06.623Z",
               orgId: "af854a3a-2127-422b-91ae-364da2661108",
               shortName: "CVE",
            },
            references: [
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://confluence.atlassian.com/x/Y4hXRg",
               },
               {
                  tags: [
                     "x_transferred",
                  ],
                  url: "https://jira.atlassian.com/browse/BSERV-13522",
               },
            ],
            title: "CVE Program Container",
         },
         {
            affected: [
               {
                  cpes: [
                     "cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*",
                  ],
                  defaultStatus: "unknown",
                  product: "bitbucket",
                  vendor: "atlassian",
                  versions: [
                     {
                        lessThan: "7.6.19",
                        status: "affected",
                        version: "7.0.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "7.17.12",
                        status: "affected",
                        version: "7.7.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "7.21.6",
                        status: "affected",
                        version: "7.18.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "8.0.5",
                        status: "affected",
                        version: "7.22.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "8.1.5",
                        status: "affected",
                        version: "8.1.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "8.2.4",
                        status: "affected",
                        version: "8.2.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "8.3.3",
                        status: "affected",
                        version: "8.3.0",
                        versionType: "custom",
                     },
                     {
                        lessThan: "8.4.2",
                        status: "affected",
                        version: "8.4.0",
                        versionType: "custom",
                     },
                  ],
               },
            ],
            metrics: [
               {
                  cvssV3_1: {
                     attackComplexity: "LOW",
                     attackVector: "NETWORK",
                     availabilityImpact: "HIGH",
                     baseScore: 9.8,
                     baseSeverity: "CRITICAL",
                     confidentialityImpact: "HIGH",
                     integrityImpact: "HIGH",
                     privilegesRequired: "NONE",
                     scope: "UNCHANGED",
                     userInteraction: "NONE",
                     vectorString: "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
                     version: "3.1",
                  },
               },
               {
                  other: {
                     content: {
                        id: "CVE-2022-43781",
                        options: [
                           {
                              Exploitation: "none",
                           },
                           {
                              Automatable: "yes",
                           },
                           {
                              "Technical Impact": "total",
                           },
                        ],
                        role: "CISA Coordinator",
                        timestamp: "2024-10-02T14:27:57.305026Z",
                        version: "2.0.3",
                     },
                     type: "ssvc",
                  },
               },
            ],
            problemTypes: [
               {
                  descriptions: [
                     {
                        cweId: "CWE-77",
                        description: "CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')",
                        lang: "en",
                        type: "CWE",
                     },
                  ],
               },
            ],
            providerMetadata: {
               dateUpdated: "2024-10-02T14:56:09.693Z",
               orgId: "134c704f-9b21-4f2e-91b3-4a467353bcc0",
               shortName: "CISA-ADP",
            },
            title: "CISA ADP Vulnrichment",
         },
      ],
      cna: {
         affected: [
            {
               product: "Bitbucket Data Center",
               vendor: "Atlassian",
               versions: [
                  {
                     status: "unaffected",
                     version: "before 7.0",
                  },
                  {
                     status: "affected",
                     version: "before 7.17.12",
                  },
                  {
                     status: "affected",
                     version: "before 7.21.6",
                  },
                  {
                     status: "affected",
                     version: "before 7.6.19",
                  },
                  {
                     status: "affected",
                     version: "before 8.0.5",
                  },
                  {
                     status: "affected",
                     version: "before 8.1.5",
                  },
                  {
                     status: "affected",
                     version: "before 8.2.4",
                  },
                  {
                     status: "affected",
                     version: "before 8.3.3",
                  },
                  {
                     status: "affected",
                     version: "before 8.4.2",
                  },
                  {
                     status: "affected",
                     version: "before 8.5.0",
                  },
               ],
            },
            {
               product: "Bitbucket Server",
               vendor: "Atlassian",
               versions: [
                  {
                     status: "unaffected",
                     version: "before 7.0",
                  },
                  {
                     status: "affected",
                     version: "before 7.17.12",
                  },
                  {
                     status: "affected",
                     version: "before 7.21.6",
                  },
                  {
                     status: "affected",
                     version: "before 7.6.19",
                  },
                  {
                     status: "affected",
                     version: "before 8.0.5",
                  },
                  {
                     status: "affected",
                     version: "before 8.1.5",
                  },
                  {
                     status: "affected",
                     version: "before 8.2.4",
                  },
                  {
                     status: "affected",
                     version: "before 8.3.3",
                  },
                  {
                     status: "affected",
                     version: "before 8.4.2",
                  },
                  {
                     status: "affected",
                     version: "before 8.5.0",
                  },
               ],
            },
         ],
         credits: [
            {
               lang: "en",
               value: "https://github.com/Ry0taK",
            },
         ],
         descriptions: [
            {
               lang: "en",
               value: "There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker with permission to control their username can exploit this issue to execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.",
            },
         ],
         problemTypes: [
            {
               descriptions: [
                  {
                     description: "RCE (Remote Code Execution)",
                     lang: "en",
                     type: "RCE (Remote Code Execution)",
                  },
               ],
            },
         ],
         providerMetadata: {
            dateUpdated: "2022-11-17T00:00:01.210Z",
            orgId: "f08a6ab8-ed46-4c22-8884-d911ccfe3c66",
            shortName: "atlassian",
         },
         references: [
            {
               url: "https://confluence.atlassian.com/x/Y4hXRg",
            },
            {
               url: "https://jira.atlassian.com/browse/BSERV-13522",
            },
         ],
      },
   },
   cveMetadata: {
      assignerOrgId: "f08a6ab8-ed46-4c22-8884-d911ccfe3c66",
      assignerShortName: "atlassian",
      cveId: "CVE-2022-43781",
      datePublished: "2022-11-17T00:00:01.210Z",
      dateReserved: "2022-10-26T14:49:11.114Z",
      dateUpdated: "2024-10-02T14:56:09.693Z",
      requesterUserId: "4ceb4895-2afc-4c29-bf72-c2e04b367c52",
      state: "PUBLISHED",
   },
   dataType: "CVE_RECORD",
   dataVersion: "5.1",
   "vulnerability-lookup:meta": {
      nvd: "{\"cve\":{\"id\":\"CVE-2022-43781\",\"sourceIdentifier\":\"security@atlassian.com\",\"published\":\"2022-11-17T00:15:18.483\",\"lastModified\":\"2024-11-21T07:27:14.543\",\"vulnStatus\":\"Modified\",\"cveTags\":[],\"descriptions\":[{\"lang\":\"en\",\"value\":\"There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker with permission to control their username can exploit this issue to execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled “Allow public signup”.\"},{\"lang\":\"es\",\"value\":\"Existe una vulnerabilidad de inyección de comandos mediante variables de entorno en Bitbucket Server y Data Center. Un atacante con permiso para controlar su nombre de usuario puede aprovechar este problema para ejecutar código arbitrario en el sistema. Esta vulnerabilidad puede no autenticarse si la instancia de Bitbucket Server y Data Center ha habilitado \\\"Allow public signup\\\".\"}],\"metrics\":{\"cvssMetricV31\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9},{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"cvssData\":{\"version\":\"3.1\",\"vectorString\":\"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\",\"baseScore\":9.8,\"baseSeverity\":\"CRITICAL\",\"attackVector\":\"NETWORK\",\"attackComplexity\":\"LOW\",\"privilegesRequired\":\"NONE\",\"userInteraction\":\"NONE\",\"scope\":\"UNCHANGED\",\"confidentialityImpact\":\"HIGH\",\"integrityImpact\":\"HIGH\",\"availabilityImpact\":\"HIGH\"},\"exploitabilityScore\":3.9,\"impactScore\":5.9}]},\"weaknesses\":[{\"source\":\"nvd@nist.gov\",\"type\":\"Primary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-77\"}]},{\"source\":\"134c704f-9b21-4f2e-91b3-4a467353bcc0\",\"type\":\"Secondary\",\"description\":[{\"lang\":\"en\",\"value\":\"CWE-77\"}]}],\"configurations\":[{\"nodes\":[{\"operator\":\"OR\",\"negate\":false,\"cpeMatch\":[{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.0.0\",\"versionEndExcluding\":\"7.6.19\",\"matchCriteriaId\":\"724D75B1-262B-4834-BDF9-359992FE358F\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.7.0\",\"versionEndExcluding\":\"7.17.12\",\"matchCriteriaId\":\"7DDB30B8-27BB-4754-A801-CC6D7FBD112D\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.18.0\",\"versionEndExcluding\":\"7.21.6\",\"matchCriteriaId\":\"C46D83C6-2375-4187-9A5F-1AD81A6520DA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"7.22.0\",\"versionEndExcluding\":\"8.0.5\",\"matchCriteriaId\":\"18D68073-ED08-433F-9EB3-6BE4D58B08E6\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"8.1.0\",\"versionEndExcluding\":\"8.1.5\",\"matchCriteriaId\":\"7C1B0213-8CA7-4179-90D3-FCFE8BBE33BA\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"8.2.0\",\"versionEndExcluding\":\"8.2.4\",\"matchCriteriaId\":\"0D270F32-1BB2-46F8-8737-4CB39508EDD4\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"8.3.0\",\"versionEndExcluding\":\"8.3.3\",\"matchCriteriaId\":\"CF6224A3-4AD8-4DA7-8E68-A890B3915337\"},{\"vulnerable\":true,\"criteria\":\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\",\"versionStartIncluding\":\"8.4.0\",\"versionEndExcluding\":\"8.4.2\",\"matchCriteriaId\":\"224634CB-9CA5-4292-B3F8-B3A86E4ADD70\"}]}]}],\"references\":[{\"url\":\"https://confluence.atlassian.com/x/Y4hXRg\",\"source\":\"security@atlassian.com\",\"tags\":[\"Mitigation\",\"Release Notes\",\"Vendor Advisory\"]},{\"url\":\"https://jira.atlassian.com/browse/BSERV-13522\",\"source\":\"security@atlassian.com\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Vendor Advisory\"]},{\"url\":\"https://confluence.atlassian.com/x/Y4hXRg\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Mitigation\",\"Release Notes\",\"Vendor Advisory\"]},{\"url\":\"https://jira.atlassian.com/browse/BSERV-13522\",\"source\":\"af854a3a-2127-422b-91ae-364da2661108\",\"tags\":[\"Issue Tracking\",\"Patch\",\"Vendor Advisory\"]}]}}",
      vulnrichment: {
         containers: "{\"adp\": [{\"title\": \"CVE Program Container\", \"references\": [{\"url\": \"https://confluence.atlassian.com/x/Y4hXRg\", \"tags\": [\"x_transferred\"]}, {\"url\": \"https://jira.atlassian.com/browse/BSERV-13522\", \"tags\": [\"x_transferred\"]}], \"providerMetadata\": {\"orgId\": \"af854a3a-2127-422b-91ae-364da2661108\", \"shortName\": \"CVE\", \"dateUpdated\": \"2024-08-03T13:40:06.623Z\"}}, {\"title\": \"CISA ADP Vulnrichment\", \"metrics\": [{\"cvssV3_1\": {\"scope\": \"UNCHANGED\", \"version\": \"3.1\", \"baseScore\": 9.8, \"attackVector\": \"NETWORK\", \"baseSeverity\": \"CRITICAL\", \"vectorString\": \"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H\", \"integrityImpact\": \"HIGH\", \"userInteraction\": \"NONE\", \"attackComplexity\": \"LOW\", \"availabilityImpact\": \"HIGH\", \"privilegesRequired\": \"NONE\", \"confidentialityImpact\": \"HIGH\"}}, {\"other\": {\"type\": \"ssvc\", \"content\": {\"id\": \"CVE-2022-43781\", \"role\": \"CISA Coordinator\", \"options\": [{\"Exploitation\": \"none\"}, {\"Automatable\": \"yes\"}, {\"Technical Impact\": \"total\"}], \"version\": \"2.0.3\", \"timestamp\": \"2024-10-02T14:27:57.305026Z\"}}}], \"affected\": [{\"cpes\": [\"cpe:2.3:a:atlassian:bitbucket:*:*:*:*:*:*:*:*\"], \"vendor\": \"atlassian\", \"product\": \"bitbucket\", \"versions\": [{\"status\": \"affected\", \"version\": \"7.0.0\", \"lessThan\": \"7.6.19\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"7.7.0\", \"lessThan\": \"7.17.12\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"7.18.0\", \"lessThan\": \"7.21.6\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"7.22.0\", \"lessThan\": \"8.0.5\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"8.1.0\", \"lessThan\": \"8.1.5\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"8.2.0\", \"lessThan\": \"8.2.4\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"8.3.0\", \"lessThan\": \"8.3.3\", \"versionType\": \"custom\"}, {\"status\": \"affected\", \"version\": \"8.4.0\", \"lessThan\": \"8.4.2\", \"versionType\": \"custom\"}], \"defaultStatus\": \"unknown\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"CWE\", \"cweId\": \"CWE-77\", \"description\": \"CWE-77 Improper Neutralization of Special Elements used in a Command ('Command Injection')\"}]}], \"providerMetadata\": {\"orgId\": \"134c704f-9b21-4f2e-91b3-4a467353bcc0\", \"shortName\": \"CISA-ADP\", \"dateUpdated\": \"2024-10-02T14:55:51.362Z\"}}], \"cna\": {\"credits\": [{\"lang\": \"en\", \"value\": \"https://github.com/Ry0taK\"}], \"affected\": [{\"vendor\": \"Atlassian\", \"product\": \"Bitbucket Data Center\", \"versions\": [{\"status\": \"unaffected\", \"version\": \"before 7.0\"}, {\"status\": \"affected\", \"version\": \"before 7.17.12\"}, {\"status\": \"affected\", \"version\": \"before 7.21.6\"}, {\"status\": \"affected\", \"version\": \"before 7.6.19\"}, {\"status\": \"affected\", \"version\": \"before 8.0.5\"}, {\"status\": \"affected\", \"version\": \"before 8.1.5\"}, {\"status\": \"affected\", \"version\": \"before 8.2.4\"}, {\"status\": \"affected\", \"version\": \"before 8.3.3\"}, {\"status\": \"affected\", \"version\": \"before 8.4.2\"}, {\"status\": \"affected\", \"version\": \"before 8.5.0\"}]}, {\"vendor\": \"Atlassian\", \"product\": \"Bitbucket Server\", \"versions\": [{\"status\": \"unaffected\", \"version\": \"before 7.0\"}, {\"status\": \"affected\", \"version\": \"before 7.17.12\"}, {\"status\": \"affected\", \"version\": \"before 7.21.6\"}, {\"status\": \"affected\", \"version\": \"before 7.6.19\"}, {\"status\": \"affected\", \"version\": \"before 8.0.5\"}, {\"status\": \"affected\", \"version\": \"before 8.1.5\"}, {\"status\": \"affected\", \"version\": \"before 8.2.4\"}, {\"status\": \"affected\", \"version\": \"before 8.3.3\"}, {\"status\": \"affected\", \"version\": \"before 8.4.2\"}, {\"status\": \"affected\", \"version\": \"before 8.5.0\"}]}], \"references\": [{\"url\": \"https://confluence.atlassian.com/x/Y4hXRg\"}, {\"url\": \"https://jira.atlassian.com/browse/BSERV-13522\"}], \"descriptions\": [{\"lang\": \"en\", \"value\": \"There is a command injection vulnerability using environment variables in Bitbucket Server and Data Center. An attacker with permission to control their username can exploit this issue to execute arbitrary code on the system. This vulnerability can be unauthenticated if the Bitbucket Server and Data Center instance has enabled \\u201cAllow public signup\\u201d.\"}], \"problemTypes\": [{\"descriptions\": [{\"lang\": \"en\", \"type\": \"RCE (Remote Code Execution)\", \"description\": \"RCE (Remote Code Execution)\"}]}], \"providerMetadata\": {\"orgId\": \"f08a6ab8-ed46-4c22-8884-d911ccfe3c66\", \"shortName\": \"atlassian\", \"dateUpdated\": \"2022-11-17T00:00:01.210Z\"}}}",
         cveMetadata: "{\"cveId\": \"CVE-2022-43781\", \"state\": \"PUBLISHED\", \"dateUpdated\": \"2024-10-02T14:56:09.693Z\", \"dateReserved\": \"2022-10-26T14:49:11.114Z\", \"assignerOrgId\": \"f08a6ab8-ed46-4c22-8884-d911ccfe3c66\", \"datePublished\": \"2022-11-17T00:00:01.210Z\", \"requesterUserId\": \"4ceb4895-2afc-4c29-bf72-c2e04b367c52\", \"assignerShortName\": \"atlassian\"}",
         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.