messages listlengths 3 3 | metadata dict |
|---|---|
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Get the algorithm2 value for an SSL connection's cipher.\n *\n * Retrieves the algorithm2 field from the SSL ... | {
"cve": "CVE-2013-6449",
"cve_desc": "The ssl_get_algorithm2 function in ssl/s3_lib.c in OpenSSL before 1.0.2 obtains a certain version number from an incorrect data structure, which allows remote attackers to cause a denial of service (daemon crash) via crafted traffic from a TLS 1.2 client.",
"cwe": "['CWE-310... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Retrieves the session data for a resumable TLS session.\n *\n * Packs the internal session state into a buffe... | {
"cve": "CVE-2011-4128",
"cve_desc": "Buffer overflow in the gnutls_session_get_data function in lib/gnutls_session.c in GnuTLS 2.12.x before 2.12.14 and 3.x before 3.0.7, when used on a client that performs nonstandard session resumption, allows remote TLS servers to cause a denial of service (application crash) ... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Retrieves the session data for a resumable TLS session.\n *\n * Packs the internal session state into a buffe... | {
"cve": "CVE-2011-4128",
"cve_desc": "Buffer overflow in the gnutls_session_get_data function in lib/gnutls_session.c in GnuTLS 2.12.x before 2.12.14 and 3.x before 3.0.7, when used on a client that performs nonstandard session resumption, allows remote TLS servers to cause a denial of service (application crash) ... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Handle FTP file retrieval and directory listing operations.\n *\n * Establishes FTP connections, performs aut... | {
"cve": "CVE-2015-7665",
"cve_desc": "Tails before 1.7 includes the wget program but does not prevent automatic fallback from passive FTP to active FTP, which allows remote FTP servers to discover the Tor client IP address by reading a (1) PORT or (2) EPRT command. NOTE: within wget itself, the automatic fallback... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Add a range of character codes to a PDF CMap.\n *\n * Maps the input range [low, high] to consecutive output ... | {
"cve": "CVE-2018-1000039",
"cve_desc": "In MuPDF 1.12.0 and earlier, multiple heap use after free bugs in the PDF parser could allow an attacker to execute arbitrary code, read memory, or cause a denial of service via a crafted file.",
"cwe": "['CWE-416']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Add a range of character codes to a PDF CMap.\n *\n * Maps the input range [low, high] to consecutive output ... | {
"cve": "CVE-2018-1000039",
"cve_desc": "In MuPDF 1.12.0 and earlier, multiple heap use after free bugs in the PDF parser could allow an attacker to execute arbitrary code, read memory, or cause a denial of service via a crafted file.",
"cwe": "['CWE-416']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Render an image to the PDF output device.\n *\n * Processes and displays an image within the PDF rendering co... | {
"cve": "CVE-2018-1000037",
"cve_desc": "In MuPDF 1.12.0 and earlier, multiple reachable assertions in the PDF parser allow an attacker to cause a denial of service (assert crash) via a crafted file.",
"cwe": "['CWE-20']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Dumps a sparse file region to the archive.\n *\n * Seeks to the offset specified in the sparse map and reads ... | {
"cve": "CVE-2018-20482",
"cve_desc": "GNU Tar through 1.30, when --sparse is used, mishandles file shrinkage during read access, which allows local users to cause a denial of service (infinite read loop in sparse_dump_region in sparse.c) by modifying a file that is supposed to be archived by a different user's pr... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Read a DNS name from a buffer, handling name compression.\n *\n * This function parses a DNS name starting at... | {
"cve": "CVE-2018-20103",
"cve_desc": "An issue was discovered in dns.c in HAProxy through 1.8.14. In the case of a compressed pointer, a crafted packet can trigger infinite recursion by making the pointer point to itself, or create a long chain of valid pointers resulting in stack exhaustion.",
"cwe": "['CWE-83... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Render an image to the Splash output device.\n *\n * This function processes an image from a PDF stream and r... | {
"cve": "CVE-2009-3605",
"cve_desc": "Multiple integer overflows in Poppler 0.10.5 and earlier allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PDF file, related to (1) glib/poppler-page.cc; (2) ArthurOutputDev.cc, (3) CairoOutputDev.cc, (4) G... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Render an image to the Splash output device.\n *\n * This function processes an image from a PDF stream and r... | {
"cve": "CVE-2009-3605",
"cve_desc": "Multiple integer overflows in Poppler 0.10.5 and earlier allow remote attackers to cause a denial of service (application crash) or possibly execute arbitrary code via a crafted PDF file, related to (1) glib/poppler-page.cc; (2) ArthurOutputDev.cc, (3) CairoOutputDev.cc, (4) G... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Constructor that parses XML configuration for a DynamicMetadataProvider.\n *\n * Initializes the provider fro... | {
"cve": "CVE-2017-16852",
"cve_desc": "shibsp/metadata/DynamicMetadataProvider.cpp in the Dynamic MetadataProvider plugin in Shibboleth Service Provider before 2.6.1 fails to properly configure itself with the MetadataFilter plugins and does not perform critical security checks such as signature verification, enfo... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Sends an NFS READLINK request to retrieve the target path of a symlink.\n *\n * This function constructs and ... | {
"cve": "CVE-2019-15938",
"cve_desc": "Pengutronix barebox through 2019.08.1 has a remote buffer overflow in nfs_readlink_req in fs/nfs.c because a length field is directly used for a memcpy.",
"cwe": "['CWE-119']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Process an NFS readlink reply and extract the symlink target path.\n *\n * Validates the RPC reply packet and... | {
"cve": "CVE-2019-15937",
"cve_desc": "Pengutronix barebox through 2019.08.1 has a remote buffer overflow in nfs_readlink_reply in net/nfs.c because a length field is directly used for a memcpy.",
"cwe": "['CWE-119']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Update the running checksum state with additional data.\n *\n * Processes input data according to the current... | {
"cve": "CVE-2017-15994",
"cve_desc": "rsync 3.1.3-development before 2017-10-24 mishandles archaic checksums, which makes it easier for remote attackers to bypass intended access restrictions. NOTE: the rsync development branch has significant use beyond the rsync developers, e.g., the code has been copied for us... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Authenticates a user by generating and sending a challenge.\n *\n * Retrieves the list of authorized users fo... | {
"cve": "CVE-2017-15994",
"cve_desc": "rsync 3.1.3-development before 2017-10-24 mishandles archaic checksums, which makes it easier for remote attackers to bypass intended access restrictions. NOTE: the rsync development branch has significant use beyond the rsync developers, e.g., the code has been copied for us... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Decode and decompress the next bzip2 block.\n *\n * Parses block header including signature validation, CRC c... | {
"cve": "CVE-2017-15873",
"cve_desc": "The get_next_block function in archival/libarchive/decompress_bunzip2.c in BusyBox 1.27.2 has an Integer Overflow that may lead to a write access violation.",
"cwe": "['CWE-190']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Fill the internal buffer with decompressed data from a compressed file.\n *\n * This function reads compresse... | {
"cve": "CVE-2011-2895",
"cve_desc": "The LZW decompressor in (1) the BufCompressedFill function in fontfile/decompress.c in X.Org libXfont before 1.4.4 and (2) compress/compress.c in 4.3BSD, as used in zopen.c in OpenBSD before 3.8, FreeBSD, NetBSD 4.0.x and 5.0.x before 5.0.3 and 5.1.x before 5.1.1, FreeType 2.1... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Parse DNS response resource records in a callback context.\n *\n * This function is invoked as a callback for... | {
"cve": "CVE-2017-15650",
"cve_desc": "musl libc before 1.1.17 has a buffer overflow via crafted DNS replies because dns_parse_callback in network/lookup_name.c does not restrict the number of addresses, and thus an attacker can provide an unexpected number by sending A records in a reply to an AAAA query.",
"cw... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Extract pages from a PDF file to separate output files.\n *\n * Opens a PDF document and extracts specified p... | {
"cve": "CVE-2013-4474",
"cve_desc": "Format string vulnerability in the extractPages function in utils/pdfseparate.cc in poppler before 0.24.3 allows remote attackers to cause a denial of service (crash) via format string specifiers in a destination filename.",
"cwe": "['CWE-20']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Extracts one or more pages from a PDF file and saves them to separate files.\n *\n * The function opens the s... | {
"cve": "CVE-2013-4473",
"cve_desc": "Stack-based buffer overflow in the extractPages function in utils/pdfseparate.cc in poppler before 0.24.2 allows remote attackers to cause a denial of service (crash) and possibly execute arbitrary code via a source filename.",
"cwe": "['CWE-119']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Walk through a UTF-8 string searching for a specific unicode character.\n *\n * Iterates through the string c... | {
"cve": "CVE-2019-14975",
"cve_desc": "Artifex MuPDF before 1.16.0 has a heap-based buffer over-read in fz_chartorune in fitz/string.c because pdf/pdf-op-filter.c does not check for a missing string.",
"cwe": "['CWE-125']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Add an empty message to all client pipes in a channel.\n *\n * Iterates through all connected clients in the ... | {
"cve": "CVE-2013-4130",
"cve_desc": "The (1) red_channel_pipes_add_type and (2) red_channel_pipes_add_empty_msg functions in server/red_channel.c in SPICE before 0.12.4 do not properly perform ring loops, which might allow remote attackers to cause a denial of service (reachable assertion and server exit) by trig... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Adds a pipe item type to all clients of a RedChannel.\n *\n * Iterates through all connected clients in the s... | {
"cve": "CVE-2013-4130",
"cve_desc": "The (1) red_channel_pipes_add_type and (2) red_channel_pipes_add_empty_msg functions in server/red_channel.c in SPICE before 0.12.4 do not properly perform ring loops, which might allow remote attackers to cause a denial of service (reachable assertion and server exit) by trig... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Validate and parse an initial X11 packet from a buffer.\n *\n * Checks that the buffer contains at least 12 b... | {
"cve": "CVE-2015-5352",
"cve_desc": "The x11_open_helper function in channels.c in ssh in OpenSSH before 6.9, when ForwardX11Trusted mode is not used, lacks a check of the refusal deadline for X connections, which makes it easier for remote attackers to bypass intended access restrictions via a connection outside... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Convert the next character from a UTF-16 encoded string to a Unicode codepoint.\n *\n * Extracts and decodes ... | {
"cve": "CVE-2015-5330",
"cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Escape special characters in a string for LDAP Distinguished Name encoding.\n *\n * Processes a string and es... | {
"cve": "CVE-2015-5330",
"cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Convert a string to uppercase using talloc memory allocation.\n *\n * Converts the first n characters of the ... | {
"cve": "CVE-2015-5330",
"cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Parse and explode a Distinguished Name string into its component parts.\n *\n * Parses a linearized DN string... | {
"cve": "CVE-2015-5330",
"cve_desc": "ldb before 1.1.24, as used in the AD LDAP server in Samba 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, mishandles string lengths, which allows remote attackers to obtain sensitive information from daemon heap memory by sending crafted packets and then reading... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Call the PostScript interpreter and handle errors.\n *\n * Invokes the interpreter to execute PostScript code... | {
"cve": "CVE-2018-17961",
"cve_desc": "Artifex Ghostscript 9.25 and earlier allows attackers to bypass a sandbox protection mechanism via vectors involving errorhandler setup. NOTE: this issue exists because of an incomplete fix for CVE-2018-17183.",
"cwe": "['CWE-209']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Validate a filename path with privilege checking and security verification.\n *\n * Performs comprehensive pa... | {
"cve": "CVE-2015-5252",
"cve_desc": "vfs.c in smbd in Samba 3.x and 4.x before 4.1.22, 4.2.x before 4.2.7, and 4.3.x before 4.3.3, when share names with certain substring relationships exist, allows remote attackers to bypass intended file-access restrictions via a symlink that points outside of a share.",
"cwe... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Read file contents into a dynamically allocated buffer.\n *\n * Opens and reads the specified file, allocatin... | {
"cve": "CVE-2019-13636",
"cve_desc": "In GNU patch through 2.7.6, the following of symlinks is mishandled in certain cases other than input files. This affects inp.c and util.c.",
"cwe": "['CWE-59']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Swap the byte order of a DBusHeader structure if needed.\n *\n * Checks if the header's current byte order di... | {
"cve": "CVE-2011-2200",
"cve_desc": "The _dbus_header_byteswap function in dbus-marshal-header.c in D-Bus (aka DBus) 1.2.x before 1.2.28, 1.4.x before 1.4.12, and 1.5.x before 1.5.4 does not properly handle a non-native byte order, which allows local users to cause a denial of service (connection loss), obtain po... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Set up a null device in the graphics state.\n *\n * Checks if the current device needs to be replaced with a ... | {
"cve": "CVE-2018-16863",
"cve_desc": "It was found that RHSA-2018:2918 did not fully fix CVE-2018-16509. An attacker could possibly exploit another variant of the flaw and bypass the -dSAFER protection to, for example, execute arbitrary shell commands via a specially crafted PostScript document. This only affects... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Restore the PostScript virtual memory to a previous saved state.\n *\n * Validates the operand and restores V... | {
"cve": "CVE-2018-16863",
"cve_desc": "It was found that RHSA-2018:2918 did not fully fix CVE-2018-16509. An attacker could possibly exploit another variant of the flaw and bypass the -dSAFER protection to, for example, execute arbitrary shell commands via a specially crafted PostScript document. This only affects... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Callback function to securely destroy secret data.\n *\n * This function is typically used as a GDestroyNotif... | {
"cve": "CVE-2011-1943",
"cve_desc": "The destroy_one_secret function in nm-setting-vpn.c in libnm-util in the NetworkManager package 0.8.999-3.git20110526 in Fedora 15 creates a log entry containing a certificate password, which allows local users to obtain sensitive information by reading a log file.",
"cwe": ... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Perform pattern matching with wildcard support.\n *\n * Matches a pattern string against an input string usin... | {
"cve": "CVE-2017-13720",
"cve_desc": "In the PatternMatch function in fontfile/fontdir.c in libXfont through 1.5.2 and 2.x before 2.0.2, an attacker with access to an X connection can cause a buffer over-read during pattern matching of fonts, leading to information disclosure or a crash (denial of service). This ... |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Call the PostScript interpreter and handle errors.\n *\n * Invokes the interpreter with the given context and... | {
"cve": "CVE-2018-16542",
"cve_desc": "In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use insufficient interpreter stack-size checking during error handling to crash the interpreter.",
"cwe": "['CWE-388']",
"target": 0
} |
[
{
"content": "You are a helpful assistant. Generate secure, vulnerability-free code. Avoid any code that contains security vulnerabilities.",
"role": "system"
},
{
"content": "/**\n * @brief Finalize and clean up a Ghostscript interpreter instance.\n *\n * Performs comprehensive cleanup of a gs_main... | {
"cve": "CVE-2018-16541",
"cve_desc": "In Artifex Ghostscript before 9.24, attackers able to supply crafted PostScript files could use incorrect free logic in pagedevice replacement to crash the interpreter.",
"cwe": "['CWE-416']",
"target": 0
} |
End of preview. Expand in Data Studio
README.md exists but content is empty.
- Downloads last month
- 3