gsd-2021-3583
Vulnerability from gsd
Modified
2023-12-13 01:23
Details
A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.
Aliases
Aliases



{
   GSD: {
      alias: "CVE-2021-3583",
      description: "A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.",
      id: "GSD-2021-3583",
      references: [
         "https://www.suse.com/security/cve/CVE-2021-3583.html",
         "https://access.redhat.com/errata/RHSA-2021:2664",
         "https://access.redhat.com/errata/RHSA-2021:2663",
         "https://advisories.mageia.org/CVE-2021-3583.html",
         "https://security.archlinux.org/CVE-2021-3583",
         "https://ubuntu.com/security/CVE-2021-3583",
      ],
   },
   gsd: {
      metadata: {
         exploitCode: "unknown",
         remediation: "unknown",
         reportConfidence: "confirmed",
         type: "vulnerability",
      },
      osvSchema: {
         aliases: [
            "CVE-2021-3583",
         ],
         details: "A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.",
         id: "GSD-2021-3583",
         modified: "2023-12-13T01:23:35.138388Z",
         schema_version: "1.4.0",
      },
   },
   namespaces: {
      "cve.org": {
         CVE_data_meta: {
            ASSIGNER: "secalert@redhat.com",
            ID: "CVE-2021-3583",
            STATE: "PUBLIC",
         },
         affects: {
            vendor: {
               vendor_data: [
                  {
                     product: {
                        product_data: [
                           {
                              product_name: "ansible",
                              version: {
                                 version_data: [
                                    {
                                       version_value: "ansible_tower 3.7, ansible_engine 2.9.23",
                                    },
                                 ],
                              },
                           },
                        ],
                     },
                     vendor_name: "n/a",
                  },
               ],
            },
         },
         data_format: "MITRE",
         data_type: "CVE",
         data_version: "4.0",
         description: {
            description_data: [
               {
                  lang: "eng",
                  value: "A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.",
               },
            ],
         },
         problemtype: {
            problemtype_data: [
               {
                  description: [
                     {
                        lang: "eng",
                        value: "CWE-20->CWE-77",
                     },
                  ],
               },
            ],
         },
         references: {
            reference_data: [
               {
                  name: "https://bugzilla.redhat.com/show_bug.cgi?id=1968412",
                  refsource: "MISC",
                  url: "https://bugzilla.redhat.com/show_bug.cgi?id=1968412",
               },
               {
                  name: "[debian-lts-announce] 20231228 [SECURITY] [DLA 3695-1] ansible security update",
                  refsource: "MLIST",
                  url: "https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html",
               },
            ],
         },
      },
      "gitlab.com": {
         advisories: [
            {
               affected_range: "<2.9.23",
               affected_versions: "All versions before 2.9.23",
               cvss_v2: "AV:L/AC:L/Au:N/C:P/I:P/A:N",
               cvss_v3: "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
               cwe_ids: [
                  "CWE-1035",
                  "CWE-937",
                  "CWE-94",
               ],
               date: "2022-10-07",
               description: "A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.",
               fixed_versions: [
                  "2.9.23",
               ],
               identifier: "CVE-2021-3583",
               identifiers: [
                  "CVE-2021-3583",
               ],
               not_impacted: "All versions starting from 2.9.23",
               package_slug: "pypi/ansible",
               pubdate: "2021-09-22",
               solution: "Upgrade to version 2.9.23 or above.",
               title: "Improper Neutralization of Special Elements used in a Command ('Command Injection')",
               urls: [
                  "https://nvd.nist.gov/vuln/detail/CVE-2021-3583",
                  "https://bugzilla.redhat.com/show_bug.cgi?id=1968412",
               ],
               uuid: "aeb19c98-a6f4-4b3b-aa59-e9fdb157cea1",
            },
         ],
      },
      "nvd.nist.gov": {
         cve: {
            configurations: [
               {
                  nodes: [
                     {
                        cpeMatch: [
                           {
                              criteria: "cpe:2.3:a:redhat:ansible_automation_platform:1.2:*:*:*:*:*:*:*",
                              matchCriteriaId: "CBA4F8F3-6FC3-4ADD-BB96-A707E94AB0AB",
                              vulnerable: true,
                           },
                           {
                              criteria: "cpe:2.3:a:redhat:ansible_engine:*:*:*:*:*:*:*:*",
                              matchCriteriaId: "C82C3E99-50BE-4FD7-B4A0-E9083DDA2181",
                              versionEndExcluding: "2.9.23",
                              vulnerable: true,
                           },
                           {
                              criteria: "cpe:2.3:a:redhat:ansible_tower:*:*:*:*:*:*:*:*",
                              matchCriteriaId: "6709FB79-8862-4A25-93D2-B08093D4FC7C",
                              versionEndExcluding: "3.7.0",
                              vulnerable: true,
                           },
                        ],
                        negate: false,
                        operator: "OR",
                     },
                  ],
               },
            ],
            descriptions: [
               {
                  lang: "en",
                  value: "A flaw was found in Ansible, where a user's controller is vulnerable to template injection. This issue can occur through facts used in the template if the user is trying to put templates in multi-line YAML strings and the facts being handled do not routinely include special template characters. This flaw allows attackers to perform command injection, which discloses sensitive information. The highest threat from this vulnerability is to confidentiality and integrity.",
               },
               {
                  lang: "es",
                  value: "Se encontró una falla en Ansible, donde el controlador de un usuario es vulnerable a la inyección de plantillas. Este problema puede ocurrir mediante hechos usados en la plantilla si el usuario está tratando de poner plantillas en cadenas YAML de varias líneas y los hechos que se manejan no incluyen rutinariamente caracteres especiales de la plantilla. Este defecto permite a atacantes llevar a cabo una inyección de comandos, lo que divulga información confidencial. La mayor amenaza de esta vulnerabilidad es para la confidencialidad y la integridad",
               },
            ],
            id: "CVE-2021-3583",
            lastModified: "2023-12-28T19:15:12.917",
            metrics: {
               cvssMetricV2: [
                  {
                     acInsufInfo: false,
                     baseSeverity: "LOW",
                     cvssData: {
                        accessComplexity: "LOW",
                        accessVector: "LOCAL",
                        authentication: "NONE",
                        availabilityImpact: "NONE",
                        baseScore: 3.6,
                        confidentialityImpact: "PARTIAL",
                        integrityImpact: "PARTIAL",
                        vectorString: "AV:L/AC:L/Au:N/C:P/I:P/A:N",
                        version: "2.0",
                     },
                     exploitabilityScore: 3.9,
                     impactScore: 4.9,
                     obtainAllPrivilege: false,
                     obtainOtherPrivilege: false,
                     obtainUserPrivilege: false,
                     source: "nvd@nist.gov",
                     type: "Primary",
                     userInteractionRequired: false,
                  },
               ],
               cvssMetricV31: [
                  {
                     cvssData: {
                        attackComplexity: "LOW",
                        attackVector: "LOCAL",
                        availabilityImpact: "NONE",
                        baseScore: 7.1,
                        baseSeverity: "HIGH",
                        confidentialityImpact: "HIGH",
                        integrityImpact: "HIGH",
                        privilegesRequired: "LOW",
                        scope: "UNCHANGED",
                        userInteraction: "NONE",
                        vectorString: "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:N",
                        version: "3.1",
                     },
                     exploitabilityScore: 1.8,
                     impactScore: 5.2,
                     source: "nvd@nist.gov",
                     type: "Primary",
                  },
               ],
            },
            published: "2021-09-22T12:15:07.953",
            references: [
               {
                  source: "secalert@redhat.com",
                  tags: [
                     "Issue Tracking",
                     "Vendor Advisory",
                  ],
                  url: "https://bugzilla.redhat.com/show_bug.cgi?id=1968412",
               },
               {
                  source: "secalert@redhat.com",
                  url: "https://lists.debian.org/debian-lts-announce/2023/12/msg00018.html",
               },
            ],
            sourceIdentifier: "secalert@redhat.com",
            vulnStatus: "Modified",
            weaknesses: [
               {
                  description: [
                     {
                        lang: "en",
                        value: "CWE-94",
                     },
                  ],
                  source: "nvd@nist.gov",
                  type: "Primary",
               },
               {
                  description: [
                     {
                        lang: "en",
                        value: "CWE-20",
                     },
                  ],
                  source: "secalert@redhat.com",
                  type: "Secondary",
               },
            ],
         },
      },
   },
}


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.