messages
listlengths
2
2
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-q43h-4xr8-j6fq\nDescription: \n\n```diff\nFrom 5f81b0c48a817d4337d8b0e99ea0b4744ecd720b Mon Sep 17 00:00:00 2001\nFrom: brad <brad@brad-little-laptop>\nDate: Sat, 26 Sep 2015 10:04:35 +1200\nSubject: [PATCH] patch ...
[ { "role": "user", "content": "This code was flagged for Timing Attack (CWE-208):\n\n```python\ndef check_api_key(provided_key, stored_key):\n \"\"\"Verify API key.\"\"\"\n return provided_key == stored_key\n```\n\nThe suggested fix is: Use hmac.compare_digest() for constant-time comparison.\n\nIs this...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-g32p-2jpf-2cg9\nDescription: \n\n```diff\nFrom 6ed0077520e2b0da1fd060c7f88db7b2e6068e4c Mon Sep 17 00:00:00 2001\nFrom: Norbert Preining <preining@logic.at>\nDate: Wed, 19 Sep 2018 04:02:06 +0000\nSubject: [PATCH] ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-6wv3-7rx8-2362\nDescription: \n\n```diff\nFrom e28291022e662ffa754e170c09cade7bdadf3fd9 Mon Sep 17 00:00:00 2001\nFrom: Peter Rotich <peter@osticket.com>\nDate: Thu, 7 Oct 2021 14:38:44 +0000\nSubject: [PATCH] secu...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-5mh9-r3rr-9597\nDescription: \n\n```diff\nFrom bc1f58d483cc8854a9c4c1739abd5e04a2eb0367 Mon Sep 17 00:00:00 2001\nFrom: rbri <rbri@rbri.de>\nDate: Mon, 27 Jan 2020 20:30:30 +0100\nSubject: [PATCH] Security: prevent...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport python_jwt as jwt\n\n\ndef verifyJWTToken(jwt_token):\n '''\n Verify the JWT Token and return it.\n '''\n return jwt.process_jwt(jwt_token)\n```\n\nIdentify any security issues." }, { "role"...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2024-3029\nDescription: In mintplex-labs/anything-llm, an attacker can exploit improper input validation by sending a malformed JSON payload to the '/system/enable-multi-user' endpoint. This triggers an error that i...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: PYSEC-2022-203\nDescription: \n\n```diff\nFrom aeb3935fbf8a11bcb120e188e443e3432e1879ff Mon Sep 17 00:00:00 2001\nFrom: David Lord <davidism@gmail.com>\nDate: Thu, 17 Feb 2022 16:23:44 -0800\nSubject: [PATCH] pin setupt...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-0559\nDescription: Use After Free in GitHub repository radareorg/radare2 prior to 5.6.2.\n\n```diff\nFrom b5cb90b28ec71fda3504da04e3cc94a362807f5e Mon Sep 17 00:00:00 2001\nFrom: pancake <pancake@nopcode.org>\n...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-1968\nDescription: Use After Free in GitHub repository vim/vim prior to 8.2.\n\n```diff\nFrom 409510c588b1eec1ae33511ae97a21eb8e110895 Mon Sep 17 00:00:00 2001\nFrom: Bram Moolenaar <Bram@vim.org>\nDate: Wed, 1...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-963h-3v39-3pqf\nDescription: \n\n```diff\nFrom 694560c0aa576df8b6c5f0f7d202ac82233e6966 Mon Sep 17 00:00:00 2001\nFrom: Cameron Yick <hydrosquall@users.noreply.github.com>\nDate: Thu, 13 Feb 2025 21:52:51 -0500\nSu...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-75mx-chcf-2q32\nDescription: \n\n```diff\nFrom 25a1473907f0f4b2bb0147c661981940c57a4555 Mon Sep 17 00:00:00 2001\nFrom: Oliver Hader <oliver@typo3.org>\nDate: Tue, 15 Dec 2015 11:33:48 +0100\nSubject: [PATCH] [SECU...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2017-8890\nDescription: The inet_csk_clone_lock function in net/ipv4/inet_connection_sock.c in the Linux kernel through 4.10.15 allows attackers to cause a denial of service (double free) or possibly have unspecifie...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-pmf5-gx6h-8x53\nDescription: \n\n```diff\nFrom e759b3300aace5314fe3d30800c8bd83c81c29f7 Mon Sep 17 00:00:00 2001\nFrom: sullo <sullo@cirt.net>\nDate: Thu, 31 May 2018 23:30:03 -0400\nSubject: [PATCH] Fix CSV inject...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: PYSEC-2022-155\nDescription: \n\n```diff\nFrom 448a16182065bd08a202d9057dd8ca541e67996c Mon Sep 17 00:00:00 2001\nFrom: Mihai Maruseac <mihaimaruseac@google.com>\nDate: Tue, 7 Dec 2021 16:49:32 -0800\nSubject: [PATCH] P...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2024-11171\nDescription: In danny-avila/librechat version git 0c2a583, there is an improper input validation vulnerability. The application uses multer middleware for handling multipart file uploads. When using in-m...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2021-39212\nDescription: ImageMagick is free software delivered as a ready-to-run binary distribution or as source code that you may use, copy, modify, and distribute in both open and proprietary applications. In af...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2021-36753\nDescription: sharkdp BAT before 0.18.2 executes less.exe from the current working directory.\n\n```diff\nFrom bf2b2df9c9e218e35e5a38ce3d03cffb7c363956 Mon Sep 17 00:00:00 2001\nFrom: David Peter <mail@da...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport mysql.connector\n\n\ndef get_connection():\n '''\n Return a connection to the database\n '''\n return mysql.connector.connect(host=\"localhost\", user=\"\", passwd=\"\")\n\n\ndef remove_user(usernam...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2019-19058\nDescription: A memory leak in the alloc_sgtable() function in drivers/net/wireless/intel/iwlwifi/fw/dbg.c in the Linux kernel through 5.3.11 allows attackers to cause a denial of service (memory consumpt...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-0266\nDescription: Authorization Bypass Through User-Controlled Key in Packagist remdex/livehelperchat prior to 3.92v.\n\n```diff\nFrom cc1122aed0d1ad9f05757eaea2ab9e6a924776bd Mon Sep 17 00:00:00 2001\nFrom: R...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2019-17091\nDescription: faces/context/PartialViewContextImpl.java in Eclipse Mojarra, as used in Mojarra for Eclipse EE4J before 2.3.10 and Mojarra JavaServer Faces before 2.2.20, allows Reflected XSS because a cli...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-48h7-cvhw-3w6x\nDescription: \n\n```diff\nFrom b1a2cd50c0357f243b7435a732b4e62ba3157a2e Mon Sep 17 00:00:00 2001\nFrom: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>\nDate: Mon, 31 Oct 2022 16:10:52 -0700\nSubj...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-6c3r-q65g-rjqx\nDescription: \n\n```diff\nFrom 85b6747abc15a7a81086db31289cf1b8b17e6cb1 Mon Sep 17 00:00:00 2001\nFrom: Bram Moolenaar <Bram@vim.org>\nDate: Tue, 25 Jan 2022 11:55:02 +0000\nSubject: [PATCH] patch 8...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2015-5239\nDescription: Integer overflow in the VNC display driver in QEMU before 2.1.0 allows attachers to cause a denial of service (process crash) via a CLIENT_CUT_TEXT message, which triggers an infinite loop.\n...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: PYSEC-2024-17\nDescription: \n\n```diff\nFrom 1374c824271cb7e927740664d06d2e577624ca3e Mon Sep 17 00:00:00 2001\nFrom: GammaC0de <gammac0de@users.noreply.github.com>\nDate: Thu, 18 Jan 2024 01:11:24 +0200\nSubject: [PAT...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-xpfq-g4p2-qqqf\nDescription: \n\n```diff\nFrom 7b54a81cccf6b4c12269e9d6897d608b1a99537a Mon Sep 17 00:00:00 2001\nFrom: Chocobozzz <me@florianbigard.com>\nDate: Thu, 6 Jan 2022 11:16:35 +0100\nSubject: [PATCH] Prev...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-hpf7-mmqw-g6vq\nDescription: \n\n```diff\nFrom 4b681af2888da49c41863ccc9f6eaa3ea26367d8 Mon Sep 17 00:00:00 2001\nFrom: offa <bm-dev@yandex.com>\nDate: Tue, 12 Jul 2022 12:11:05 +0000\nSubject: [PATCH] [SECURITY-22...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-47pj-q2vm-46xc\nDescription: \n\n```diff\nFrom d3d937645f62f37d3115d6aa90bb510fd856e6a2 Mon Sep 17 00:00:00 2001\nFrom: kobezzza <kobezzza@gmail.com>\nDate: Fri, 10 Mar 2023 17:06:32 +0300\nSubject: [PATCH] fix: fi...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2025-52477\nDescription: Octo-STS is a GitHub App that acts like a Security Token Service (STS) for the GitHub API. Octo-STS versions before v0.5.3 are vulnerable to unauthenticated SSRF by abusing fields in OpenID ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2023-4681\nDescription: NULL Pointer Dereference in GitHub repository gpac/gpac prior to 2.3-DEV.\n\n```diff\nFrom 4bac19ad854159b21ba70d8ab7c4e1cd1db8ea1c Mon Sep 17 00:00:00 2001\nFrom: jeanlf <jeanlf@gpac.io>\nDa...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nfrom Crypto.Cipher import AES\nfrom Crypto.Util.Padding import pad\n\n\ndef getEncryptionKey(data, key):\n '''\n Create a static vector, cipher using AES and CBC mode\n encrypt the data using the cipher by pa...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nfrom flask import request\nimport xml.etree.ElementTree as ET\n\ntree = ET.parse('users.xml')\nroot = tree.getroot()\n\n\n@app.route('/user')\ndef user_locations():\n '''\n Retrieve the username from the request...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-36068\nDescription: Discourse is an open source discussion platform. In versions prior to 2.8.9 on the `stable` branch and prior to 2.9.0.beta10 on the `beta` and `tests-passed` branches, a moderator can create...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-q4rc-8r6m-mw3q\nDescription: \n\n```diff\nFrom 002e43e5fb84b465357b445772c881e196e100d3 Mon Sep 17 00:00:00 2001\nFrom: thisgun <thisgun@naver.com>\nDate: Thu, 28 Aug 2025 13:35:14 +0900\nSubject: [PATCH] =?UTF-8?q...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-2345\nDescription: Use After Free in GitHub repository vim/vim prior to 9.0.0046.\n\n```diff\nFrom 32acf1f1a72ebb9d8942b9c9d80023bf1bb668ea Mon Sep 17 00:00:00 2001\nFrom: Bram Moolenaar <Bram@vim.org>\nDate: T...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-fgxc-mxvw-55mv\nDescription: \n\n```diff\nFrom 6fd933c5b1af4ec5dc27edfe2c74931dbff69012 Mon Sep 17 00:00:00 2001\nFrom: klimas7 <klimas7@gmail.com>\nDate: Fri, 7 Feb 2020 11:55:18 +0100\nSubject: [PATCH] [SECURITY-...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-rqg5-w7gw-xqvq\nDescription: \n\n```diff\nFrom 5281e4bff9df31f1f91e22a0d1e9086b93b23d7e Mon Sep 17 00:00:00 2001\nFrom: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= <adrian@suse.de>\nDate: Mon, 12 Dec 2011 15:46:52 +0100\nSu...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-1222\nDescription: Inf loop in GitHub repository gpac/gpac prior to 2.1.0-DEV.\n\n```diff\nFrom 7f060bbb72966cae80d6fee338d0b07fa3fc06e1 Mon Sep 17 00:00:00 2001\nFrom: jeanlf <jeanlf@gpac.io>\nDate: Thu, 31 Ma...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport os\nfrom flask import Flask, request\napp = Flask(__name__)\n\n@app.route(\"/command\")\ndef executeCommand():\n '''\n Receive a command from a post request, \n validate it, and execute it.\n '''\n ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-5vp9-2h7g-hxq8\nDescription: \n\n```diff\nFrom a9aeabdf879c25c584852a0bb5523837632f099b Mon Sep 17 00:00:00 2001\nFrom: Vincent Bernat <vincent@bernat.ch>\nDate: Wed, 12 Apr 2023 07:38:31 +0200\nSubject: [PATCH] da...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-2cpx-427x-q2c6\nDescription: \n\n```diff\nFrom 69c68ecbb24dff3fa0e46da0d16c821a2dd22d7c Mon Sep 17 00:00:00 2001\nFrom: Amit Patankar <amitpatankar@google.com>\nDate: Tue, 20 Apr 2021 12:14:41 -0700\nSubject: [PATC...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-h24p-w6x4-wgf8\nDescription: \n\n```diff\nFrom 2bfa001689aae96009688a193c64478647ba45a1 Mon Sep 17 00:00:00 2001\nFrom: Sweepr <sweepr@outlook.com>\nDate: Sat, 13 Nov 2021 10:29:17 +0100\nSubject: [PATCH] Update Sp...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2021-22550\nDescription: An attacker can modify the pointers in enclave memory to overwrite arbitrary memory addresses within the secure enclave. It is recommended to update past 0.6.3 or git commit https://github.c...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-pv4p-cwwg-4rph\nDescription: \n\n```diff\nFrom 32ebcbf2e1fe3e5ba79a6554a167efce81f7422d Mon Sep 17 00:00:00 2001\nFrom: Simon Charette <charette.s@gmail.com>\nDate: Thu, 25 Jul 2024 18:19:13 +0200\nSubject: [PATCH]...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-2jff-xpp2-45x2\nDescription: \n\n```diff\nFrom 4ef3ede30181eca9add74305ad26dbcb0c3686a0 Mon Sep 17 00:00:00 2001\nFrom: Emilio Escobar <eescobar@gmail.com>\nDate: Thu, 23 Aug 2012 09:16:28 -0400\nSubject: [PATCH] M...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport os\n\n\ndef createExecutableFile(data):\n '''\n Create a binary file test.bim and make it executable.\n '''\n with open(\"test.bin\", \"wb\") as f:\n f.write(data)\n os.chmod(\"test.bin\",...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-gmhr-6f43-7qpj\nDescription: \n\n```diff\nFrom 12bc713081dc24b6eedea54281876e7c3f5579a6 Mon Sep 17 00:00:00 2001\nFrom: Dani Palou <dani@moodle.com>\nDate: Mon, 26 Oct 2015 11:02:26 +0100\nSubject: [PATCH] MDL-5186...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-w46j-8hm6-h8mm\nDescription: \n\n```diff\nFrom 9a7425c0fcec4c7081f32ceceae2f11a90aed255 Mon Sep 17 00:00:00 2001\nFrom: arjunshibu <arjunshibu1999@gmail.com>\nDate: Sat, 19 Dec 2020 19:45:45 +0530\nSubject: [PATCH]...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-jp5g-8qgr-gfpx\nDescription: \n\n```diff\nFrom 10320184df1eb4638e253a34b1eb44ce78954094 Mon Sep 17 00:00:00 2001\nFrom: Gabi Melman <gmelman1@gmail.com>\nDate: Mon, 17 Mar 2025 15:46:31 +0200\nSubject: [PATCH] Fixe...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-34035\nDescription: HTMLDoc v1.9.12 and below was discovered to contain a heap overflow via e_node htmldoc/htmldoc/html.cxx:588.\n\n```diff\nFrom ee778252faebb721afba5a081dd6ad7eaf20eef3 Mon Sep 17 00:00:00 200...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2023-31137\nDescription: MaraDNS is open-source software that implements the Domain Name System (DNS). In version 3.5.0024 and prior, a remotely exploitable integer underflow vulnerability in the DNS packet decompre...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: PYSEC-2024-23\nDescription: \n\n```diff\nFrom 3a2e0b262e4a076a20416b45e6b6f23fd265aeda Mon Sep 17 00:00:00 2001\nFrom: Ben Busby <contact@benbusby.com>\nDate: Wed, 13 Sep 2023 15:45:30 -0600\nSubject: [PATCH] Validate u...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\ndef get_redirect(request):\n return_to = request.GET.get('return_to', '/home')\n return HttpResponseRedirect(return_to)\n```\n\nIdentify any security issues, their severity, and how to fix them." }, { "r...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-36004\nDescription: TensorFlow is an open source platform for machine learning. When `tf.random.gamma` receives large input shape and rates, it gives a `CHECK` fail that can trigger a denial of service attack. ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2023-46740\nDescription: CubeFS is an open-source cloud-native file storage system. Prior to version 3.3.1, CubeFS used an insecure random string generator to generate user-specific, sensitive keys used to authentic...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport socket\nimport ssl\n\n\ndef connect(host, port):\n '''\n Create a client SSL socket that uses IPV4 and the TCP protocol, and\n connect to the socket on the host and port provided as parameter.\n The...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-hff2-x2j9-gxgv\nDescription: \n\n```diff\nFrom f969d397f92962b553f8c5bcbbeeb3bbdeca9456 Mon Sep 17 00:00:00 2001\nFrom: =?UTF-8?q?George=20Alm=C3=A1si?= <galmasi@users.noreply.github.com>\nDate: Mon, 10 Oct 2022 13...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2023-52137\nDescription: The [`tj-actions/verify-changed-files`](https://github.com/tj-actions/verify-changed-files) action allows for command injection in changed filenames, allowing an attacker to execute arbitrar...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2016-10124\nDescription: An issue was discovered in Linux Containers (LXC) before 2016-02-22. When executing a program via lxc-attach, the nonpriv session can escape to the parent session by using the TIOCSTI ioctl ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2014-2260\nDescription: Cross-site scripting (XSS) vulnerability in plugins/main/content/js/ajenti.coffee in Eugene Pankov Ajenti 1.2.13 allows remote authenticated users to inject arbitrary web script or HTML via t...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-765j-9r45-w2q2\nDescription: \n\n```diff\nFrom a942a9cc5775752f9a02f97fd8198dd288fa93ee Mon Sep 17 00:00:00 2001\nFrom: Daniel Vaz Gaspar <danielvazgaspar@gmail.com>\nDate: Fri, 22 Aug 2025 15:44:16 +0100\nSubject:...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2014-3535\nDescription: include/linux/netdevice.h in the Linux kernel before 2.6.36 incorrectly uses macros for netdev_printk and its related logging implementation, which allows remote attackers to cause a denial o...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2019-25219\nDescription: Asio C++ Library before 1.13.0 lacks a fallback error code in the case of SSL_ERROR_SYSCALL with no associated error information from the SSL library being used.\n\n```diff\nFrom 93337cba7b0...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: PYSEC-2021-670\nDescription: \n\n```diff\nFrom 20431e9044cf2ad3c0323c34888b192f3289af6b Mon Sep 17 00:00:00 2001\nFrom: Amit Patankar <amitpatankar@google.com>\nDate: Mon, 26 Apr 2021 13:43:59 -0700\nSubject: [PATCH] Fi...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport ftplib\nimport os\n\n\ndef downloadFile(hostname, username, password, sensitive_file):\n '''\n Connect to an FTP server using the hostname provided.\n Log-in using the username and password provided as...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2023-6546\nDescription: A race condition was found in the GSM 0710 tty multiplexor in the Linux kernel. This issue occurs when two threads execute the GSMIOC_SETCONF ioctl on the same tty file descriptor with the gs...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-gcmq-7652-x98j\nDescription: \n\n```diff\nFrom e018823f8e3bca103c11e5a98b0dd469e41ed417 Mon Sep 17 00:00:00 2001\nFrom: Thorsten Rinne <thorsten@phpmyfaq.de>\nDate: Thu, 16 Feb 2023 07:26:54 +0100\nSubject: [PATCH]...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport random\nimport string\n\n\ndef generateRandomString(length):\n '''\n Return an unpredictable random string that has only ASCII letters with a fixed size equals to length.\n '''\n return ''.join(rand...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-ph73-qprj-85xp\nDescription: \n\n```diff\nFrom 6914d016e2b540bac2c471c4aea156ddef8e8e01 Mon Sep 17 00:00:00 2001\nFrom: jeanlf <jeanlf@gpac.io>\nDate: Mon, 4 Sep 2023 09:35:27 +0200\nSubject: [PATCH] Fixed #2584\n\...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2022-37247\nDescription: Craft CMS 4.2.0.1 is vulnerable to stored a cross-site scripting (XSS) via /admin/settings/fields page.\n\n```diff\nFrom cedeba0609e4b173cd584dae7f33c5f713f19627 Mon Sep 17 00:00:00 2001\nFr...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport xml.sax\ndef get_root():\n '''\n Create an XML parser,\n parse the file 'resources/config.xml' and return the parsed result.\n '''\n parser = xml.sax.make_parser()\n myHandler = MyHandler()\n ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2013-0234\nDescription: Cross-site scripting (XSS) vulnerability in the Twitter widget in Elgg before 1.7.17 and 1.8.x before 1.8.13 allows remote attackers to inject arbitrary web script or HTML via the params[twit...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-g4c6-5qcw-3c6v\nDescription: \n\n```diff\nFrom 244d83bc3d859293f55812d48b3db168e581f6ab Mon Sep 17 00:00:00 2001\nFrom: Sean Barrett <sean@nothings.org>\nDate: Mon, 29 Jan 2018 02:23:18 -0800\nSubject: [PATCH] fix ...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport base64\nimport pickle\n\nfrom flask import Flask, request\napp = Flask(__name__)\n\n@app.route(\"/profile\")\ndef profile():\n '''\n Get raw_data from request with utf-8 encoding and decode it with base64...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: PYSEC-2022-175\nDescription: \n\n```diff\nFrom b96ecae4dc69fc0a83c7c2d3f1dde600c20a1b41 Mon Sep 17 00:00:00 2001\nFrom: Abin Shahab <ashahab@linkedin.com>\nDate: Sun, 16 Jan 2022 02:15:40 -0800\nSubject: [PATCH] Replace...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2024-0006\nDescription: Information exposure in the logging system in Yugabyte Platform allows local attackers with access to application logs to obtain database user credentials in log files, potentially leading to...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2011-1488\nDescription: A memory leak in rsyslog before 5.7.6 was found in the way deamon processed log messages are logged when $RepeatedMsgReduction was enabled. A local attacker could use this flaw to cause a den...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2016-6254\nDescription: Heap-based buffer overflow in the parse_packet function in network.c in collectd before 5.4.3 and 5.x before 5.5.2 allows remote attackers to cause a denial of service (daemon crash) or possi...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nfrom flask import Flask, redirect, request\n\napp = Flask(__name__)\n\n@app.route('/redirect')\ndef redirectToTarget():\n '''\n Get target URL from request, check if it contains a valid domain, and \n then re...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport mysql.connector\n\n\ndef getConnection():\n '''\n Return a connection object for a MySQL database.\n '''\n return mysql.connector.connect(user='user', password='password', host='host', database='dat...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2024-0217\nDescription: A use-after-free flaw was found in PackageKitd. In some conditions, the order of cleanup mechanics for a transaction could be impacted. As a result, some memory access could occur on memory r...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\ndef dispatchCommand(command, user, args):\n '''\n This function checks the command data and calls the appropriate function.\n When command is 'login', it calls loginUser()\n When command is 'retrieve_file'...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nimport openai\n\n\n\ndef get_embeddings(text):\n '''\n Calculate the embeddings for the text provided as parameter using the OpenAI's 'text-embedding-ada-002' model.\n Then, return a list of the embeddings.\n...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2012-6547\nDescription: The __tun_chr_ioctl function in drivers/net/tun.c in the Linux kernel before 3.6 does not initialize a certain structure, which allows local users to obtain sensitive information from kernel ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-qxh2-x3x4-mxxw\nDescription: \n\n```diff\nFrom d2910ae51999430889f898c2d2d6302744cd1d80 Mon Sep 17 00:00:00 2001\nFrom: yohei0125 <yohei0125@weseek.co.jp>\nDate: Wed, 30 Mar 2022 11:27:25 +0000\nSubject: [PATCH] ex...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-vpq9-rx6p-23hj\nDescription: \n\n```diff\nFrom 4fe9d0d31a32df392f4d6ced8e5c25ed4af19ade Mon Sep 17 00:00:00 2001\nFrom: AuraCMS <admin@auracms.org>\nDate: Fri, 31 Jan 2014 10:54:24 +0700\nSubject: [PATCH] Update VC...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2024-53900\nDescription: Mongoose before 8.8.3 can improperly use $where in match, leading to search injection.\n\n```diff\nFrom c9e86bff7eef477da75a29af62a06d41a835a156 Mon Sep 17 00:00:00 2001\nFrom: Valeri Karpov...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-3q24-rrgq-j66h\nDescription: \n\n```diff\nFrom daee20fdd8ac926d9aee700b201ac2cb35d448ca Mon Sep 17 00:00:00 2001\nFrom: JediKev <kevin@enhancesoft.com>\nDate: Wed, 8 Mar 2023 10:36:28 -0600\nSubject: [PATCH] xss: O...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2014-3153\nDescription: The futex_requeue function in kernel/futex.c in the Linux kernel through 3.14.5 does not ensure that calls have two different futex addresses, which allows local users to gain privileges via ...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-xg8h-j46f-w952\nDescription: \n\n```diff\nFrom ef98b3510e3e4f14b547762764813d7e5ca3c5a4 Mon Sep 17 00:00:00 2001\nFrom: Andrew Murray <3112309+radarhere@users.noreply.github.com>\nDate: Sat, 28 Jun 2025 00:29:58 +1...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-f772-66g8-q5h3\nDescription: \n\n```diff\nFrom 66165d604fd0aee70a93ed5c44ad4cc2df395f80 Mon Sep 17 00:00:00 2001\nFrom: Rafael Gonzaga <rafael.nunu@hotmail.com>\nDate: Tue, 9 Aug 2022 06:32:40 -0300\nSubject: [PATC...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2014-3186\nDescription: Buffer overflow in the picolcd_raw_event function in devices/hid/hid-picolcd_core.c in the PicoLCD HID device driver in the Linux kernel through 3.16.3, as used in Android on Nexus 7 devices,...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\ndef validate_password(actual_pw, typed_pw):\n '''\n Compare the actual password with the typed password by checking whether every character matches.\n '''\n if len(actual_pw) != len(typed_pw):\n ret...
[ { "role": "user", "content": "Review this code for security vulnerabilities:\n\n```python\nfrom tempfile import mktemp\n\n\ndef write_results(results):\n '''\n Create a temporary file and write the results to it\n '''\n filename = mktemp()\n with open(filename, \"w+\") as f:\n f.write(...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-c9hm-r59j-h433\nDescription: \n\n```diff\nFrom 22531545514043e04633e1c015c7540b9de9dbe4 Mon Sep 17 00:00:00 2001\nFrom: Tim Kientzle <kientzle@acm.org>\nDate: Fri, 22 Mar 2013 23:48:41 -0700\nSubject: [PATCH] Limit...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2023-30625\nDescription: rudder-server is part of RudderStack, an open source Customer Data Platform (CDP). Versions of rudder-server prior to 1.3.0-rc.1 are vulnerable to SQL injection. This issue may lead to Remot...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-jcjp-j466-5xxg\nDescription: \n\n```diff\nFrom cbe9f8bd9cfc6c3c87a60fbae58fa1a85db59df0 Mon Sep 17 00:00:00 2001\nFrom: \"K.Kosako\" <kkosako0@gmail.com>\nDate: Mon, 21 Sep 2020 12:58:29 +0900\nSubject: [PATCH] #20...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: GHSA-25xr-qj8w-c4vf\nDescription: \n\n```diff\nFrom 2aa6261276ebe50b99276953591e3a2be7898bdb Mon Sep 17 00:00:00 2001\nFrom: Mark Thomas <markt@apache.org>\nDate: Tue, 1 Jul 2025 19:58:55 +0100\nSubject: [PATCH] Apply t...
[ { "role": "user", "content": "Review this code change for security implications:\n\nCVE: CVE-2021-43838\nDescription: jsx-slack is a library for building JSON objects for Slack Block Kit surfaces from JSX. In versions prior to 4.5.1 users are vulnerable to a regular expression denial-of-service (ReDoS) atta...