Dataset Viewer
Auto-converted to Parquet Duplicate
key
large_string
prompt
large list
pair_key
large_string
idx
int64
target
int64
project
large_string
commit_id
large_string
before_index
int64
after_index
int64
project_url
large_string
commit_url
large_string
func
large_string
file_name
large_string
method
large_string
commit_message
large_string
cve_description
large_string
cwe
large_string
patch
large_string
short_commit_id
large_string
cve
large_string
original_project
large_string
original_patched_commit_id
large_string
paired_commit_mismatch
bool
openssl_ca989269_0_1_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
openssl_ca989269_0_1
0
1
openssl
ca989269a2876bae79393bd54c3e72d49975fc75
0
1
https://github.com/openssl/openssl
https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=ca989269a2876bae79393bd54c3e72d49975fc75
long ssl_get_algorithm2(SSL *s) { long alg2 = s->s3->tmp.new_cipher->algorithm2; if (TLS1_get_version(s) >= TLS1_2_VERSION && alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF)) return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256; return alg2; }
ssl/s3_lib.c
ssl_get_algorithm2
Use version in SSL_METHOD not SSL structure. When deciding whether to use TLS 1.2 PRF and record hash algorithms use the version number in the corresponding SSL_METHOD structure instead of the SSL structure. The SSL structure version is sometimes inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already. (...
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-682
long ssl_get_algorithm2(SSL *s) { long alg2 = s->s3->tmp.new_cipher->algorithm2; - if (TLS1_get_version(s) >= TLS1_2_VERSION && + if (s->method->version == TLS1_2_VERSION && alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF)) return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_...
ca989269
CVE-2013-6449
openssl
ca989269a2876bae79393bd54c3e72d49975fc75
false
openssl_ca989269_0_1_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
openssl_ca989269_0_1
1
0
openssl
ca989269a2876bae79393bd54c3e72d49975fc75
0
1
https://github.com/openssl/openssl
https://git.openssl.org/gitweb/?p=openssl.git;a=commit;h=ca989269a2876bae79393bd54c3e72d49975fc75
long ssl_get_algorithm2(SSL *s) { long alg2 = s->s3->tmp.new_cipher->algorithm2; if (s->method->version == TLS1_2_VERSION && alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF)) return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_SHA256; return alg2; }
ssl/s3_lib.c
ssl_get_algorithm2
Use version in SSL_METHOD not SSL structure. When deciding whether to use TLS 1.2 PRF and record hash algorithms use the version number in the corresponding SSL_METHOD structure instead of the SSL structure. The SSL structure version is sometimes inaccurate. Note: OpenSSL 1.0.2 and later effectively do this already. (...
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-682
long ssl_get_algorithm2(SSL *s) { long alg2 = s->s3->tmp.new_cipher->algorithm2; - if (TLS1_get_version(s) >= TLS1_2_VERSION && + if (s->method->version == TLS1_2_VERSION && alg2 == (SSL_HANDSHAKE_MAC_DEFAULT|TLS1_PRF)) return SSL_HANDSHAKE_MAC_SHA256 | TLS1_PRF_...
ca989269
CVE-2013-6449
openssl
ca989269a2876bae79393bd54c3e72d49975fc75
false
gnutls_190cef6e_2_3_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
gnutls_190cef6e_2_3
2
1
gnutls
190cef6eed37d0e73a73c1e205eb31d45ab60a3c
2
3
https://gitlab.com/gnutls/gnutls.git
https://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=190cef6eed37d0e73a73c1e205eb31d45ab60a3c
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
lib/gnutls_session.c
gnutls_session_get_data
None
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) via a large SessionTicket.
CWE-119
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
190cef6e
CVE-2011-4128
savannah
190cef6eed37d0e73a73c1e205eb31d45ab60a3c
false
gnutls_190cef6e_2_3_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
gnutls_190cef6e_2_3
3
0
gnutls
190cef6eed37d0e73a73c1e205eb31d45ab60a3c
2
3
https://gitlab.com/gnutls/gnutls.git
https://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=190cef6eed37d0e73a73c1e205eb31d45ab60a3c
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
lib/gnutls_session.c
gnutls_session_get_data
None
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) via a large SessionTicket.
CWE-119
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
190cef6e
CVE-2011-4128
savannah
190cef6eed37d0e73a73c1e205eb31d45ab60a3c
false
gnutls_e82ef454_4_5_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
gnutls_e82ef454_4_5
4
1
gnutls
e82ef4545e9e98cbcb032f55d7c750b81e3a0450
4
5
https://gitlab.com/gnutls/gnutls.git
https://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=e82ef4545e9e98cbcb032f55d7c750b81e3a0450
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
lib/gnutls_session.c
gnutls_session_get_data
None
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) via a large SessionTicket.
CWE-119
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
e82ef454
CVE-2011-4128
savannah
e82ef4545e9e98cbcb032f55d7c750b81e3a0450
false
gnutls_e82ef454_4_5_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
gnutls_e82ef454_4_5
5
0
gnutls
e82ef4545e9e98cbcb032f55d7c750b81e3a0450
4
5
https://gitlab.com/gnutls/gnutls.git
https://git.savannah.gnu.org/gitweb/?p=gnutls.git;a=commitdiff;h=e82ef4545e9e98cbcb032f55d7c750b81e3a0450
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
lib/gnutls_session.c
gnutls_session_get_data
None
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) via a large SessionTicket.
CWE-119
gnutls_session_get_data (gnutls_session_t session, void *session_data, size_t * session_data_size) { gnutls_datum_t psession; int ret; if (session->internals.resumable == RESUME_FALSE) return GNUTLS_E_INVALID_SESSION; psession.data = session_data; ret = _gnutls_session_pack (sessi...
e82ef454
CVE-2011-4128
savannah
e82ef4545e9e98cbcb032f55d7c750b81e3a0450
false
mupdf_f5973004_6_7_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
mupdf_f5973004_6_7
6
1
mupdf
f597300439e62f5e921f0d7b1e880b5c1a1f1607
6
7
https://github.com/ccxvii/mupdf.git
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=f597300439e62f5e921f0d7b1e880b5c1a1f1607;hp=093fc3b098dc5fadef5d8ad4b225db9fb124758b
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
source/pdf/pdf-cmap.c
add_range
None
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-416
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
f5973004
CVE-2018-1000039
ghostscript
f597300439e62f5e921f0d7b1e880b5c1a1f1607
false
mupdf_f5973004_6_7_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
mupdf_f5973004_6_7
7
0
mupdf
f597300439e62f5e921f0d7b1e880b5c1a1f1607
6
7
https://github.com/ccxvii/mupdf.git
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=f597300439e62f5e921f0d7b1e880b5c1a1f1607;hp=093fc3b098dc5fadef5d8ad4b225db9fb124758b
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
source/pdf/pdf-cmap.c
add_range
None
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-416
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
f5973004
CVE-2018-1000039
ghostscript
f597300439e62f5e921f0d7b1e880b5c1a1f1607
false
mupdf_71ceebcf_8_9_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
mupdf_71ceebcf_8_9
8
1
mupdf
71ceebcf56e682504da22c4035b39a2d451e8ffd
8
9
https://github.com/ccxvii/mupdf.git
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=71ceebcf56e682504da22c4035b39a2d451e8ffd;hp=7f82c01523505052615492f8e220f4348ba46995
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
source/pdf/pdf-cmap.c
add_range
None
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-416
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
71ceebcf
CVE-2018-1000039
ghostscript
71ceebcf56e682504da22c4035b39a2d451e8ffd
false
mupdf_71ceebcf_8_9_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
mupdf_71ceebcf_8_9
9
0
mupdf
71ceebcf56e682504da22c4035b39a2d451e8ffd
8
9
https://github.com/ccxvii/mupdf.git
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=71ceebcf56e682504da22c4035b39a2d451e8ffd;hp=7f82c01523505052615492f8e220f4348ba46995
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
source/pdf/pdf-cmap.c
add_range
None
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-416
add_range(fz_context *ctx, pdf_cmap *cmap, unsigned int low, unsigned int high, unsigned int out, int check_for_overlap, int many) { int current; cmap_splay *tree; if (low > high) { fz_warn(ctx, "range limits out of range in cmap %s", cmap->cmap_name); return; } tree = cmap->tree; if (cmap->tlen) { unsign...
71ceebcf
CVE-2018-1000039
ghostscript
71ceebcf56e682504da22c4035b39a2d451e8ffd
false
mupdf_b2e7d38e_10_11_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
mupdf_b2e7d38e_10_11
10
1
mupdf
b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a
10
11
https://github.com/ccxvii/mupdf.git
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a;hp=f51836b9732c38d945b87fda0770009a77ba680c
pdf_show_image(fz_context *ctx, pdf_run_processor *pr, fz_image *image) { pdf_gstate *gstate = pr->gstate + pr->gtop; fz_matrix image_ctm; fz_rect bbox; softmask_save softmask = { NULL }; if (pr->super.hidden) return; break; case PDF_MAT_SHADE: if (gstate...
source/pdf/pdf-op-run.c
pdf_show_image
None
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-20
pdf_show_image(fz_context *ctx, pdf_run_processor *pr, fz_image *image) { pdf_gstate *gstate = pr->gstate + pr->gtop; fz_matrix image_ctm; fz_rect bbox; - softmask_save softmask = { NULL }; if (pr->super.hidden) return; break; case PDF_MAT_SHADE: if (gstat...
b2e7d38e
CVE-2018-1000037
ghostscript
b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a
false
mupdf_b2e7d38e_10_11_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
mupdf_b2e7d38e_10_11
11
0
mupdf
b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a
10
11
https://github.com/ccxvii/mupdf.git
http://git.ghostscript.com/?p=mupdf.git;a=commitdiff;h=b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a;hp=f51836b9732c38d945b87fda0770009a77ba680c
pdf_show_image(fz_context *ctx, pdf_run_processor *pr, fz_image *image) { pdf_gstate *gstate = pr->gstate + pr->gtop; fz_matrix image_ctm; fz_rect bbox; if (pr->super.hidden) return; break; case PDF_MAT_SHADE: if (gstate->fill.shade) { fz_clip_image_mask(...
source/pdf/pdf-op-run.c
pdf_show_image
None
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-20
pdf_show_image(fz_context *ctx, pdf_run_processor *pr, fz_image *image) { pdf_gstate *gstate = pr->gstate + pr->gtop; fz_matrix image_ctm; fz_rect bbox; - softmask_save softmask = { NULL }; if (pr->super.hidden) return; break; case PDF_MAT_SHADE: if (gstat...
b2e7d38e
CVE-2018-1000037
ghostscript
b2e7d38e845c7d4922d05e6e41f3a2dc1bc1b14a
false
haproxy_58df5aea_12_13_vul
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
haproxy_58df5aea_12_13
12
1
haproxy
58df5aea0a0c926b2238f65908f5e9f83d1cca25
12
13
https://github.com/haproxy/haproxy
https://git.haproxy.org/?p=haproxy.git;a=commit;h=58df5aea0a0c926b2238f65908f5e9f83d1cca25
int dns_read_name(unsigned char *buffer, unsigned char *bufend, unsigned char *name, char *destination, int dest_len, int *offset) { int nb_bytes = 0, n = 0; int label_len; unsigned char *reader = name; char *dest = destination; while (1) { if ((*reader & 0xc0) ...
src/dns.c
dns_read_name
BUG: dns: Prevent stack-exhaustion via recursion loop in dns_read_name When a compressed pointer is encountered, dns_read_name() will call itself with the pointed-to offset in the packet. With a specially crafted packet, it was possible to trigger an infinite-loop recursion by making the pointer points to itself. Whil...
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-835
int dns_read_name(unsigned char *buffer, unsigned char *bufend, unsigned char *name, char *destination, int dest_len, - int *offset) + int *offset, unsigned int depth) { int nb_bytes = 0, n = 0; int label_len; unsigned char *reader = name; char *dest...
58df5aea
CVE-2018-20103
haproxy
58df5aea0a0c926b2238f65908f5e9f83d1cca25
false
haproxy_58df5aea_12_13_patched
[ { "content": "You are a vulnerability detection expert specializing in identifying security flaws in C/C++ code, with a focus on Common Weakness Enumeration (CWE) standards. You provide precise, evidence-based analysis without speculation, and clearly label any vulnerabilities you detect.", "role": "system"...
haproxy_58df5aea_12_13
13
0
haproxy
58df5aea0a0c926b2238f65908f5e9f83d1cca25
12
13
https://github.com/haproxy/haproxy
https://git.haproxy.org/?p=haproxy.git;a=commit;h=58df5aea0a0c926b2238f65908f5e9f83d1cca25
int dns_read_name(unsigned char *buffer, unsigned char *bufend, unsigned char *name, char *destination, int dest_len, int *offset, unsigned int depth) { int nb_bytes = 0, n = 0; int label_len; unsigned char *reader = name; char *dest = destination; while (1) { i...
src/dns.c
dns_read_name
BUG: dns: Prevent stack-exhaustion via recursion loop in dns_read_name When a compressed pointer is encountered, dns_read_name() will call itself with the pointed-to offset in the packet. With a specially crafted packet, it was possible to trigger an infinite-loop recursion by making the pointer points to itself. Whil...
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-835
int dns_read_name(unsigned char *buffer, unsigned char *bufend, unsigned char *name, char *destination, int dest_len, - int *offset) + int *offset, unsigned int depth) { int nb_bytes = 0, n = 0; int label_len; unsigned char *reader = name; char *dest...
58df5aea
CVE-2018-20103
haproxy
58df5aea0a0c926b2238f65908f5e9f83d1cca25
false
End of preview. Expand in Data Studio

OpenVul for Dataset2Container

Joins the OpenVul RL queries to ground-truth vulnerability information by full pair key. Original splits, row order, keys, and metadata text are preserved. prompt keeps the original message list, roles, and content, replacing only HAS_VUL with VULNERABLE and NO_VUL with NONVULNERABLE. Each vulnerable row (target=1) immediately precedes its patched row (target=0). idx is the corresponding before/after index from the key. pair_key, project, commit_id, before_index, and after_index are parsed from that key. func, file_name, and method are extracted from the prompt's target Code section; function whitespace is preserved. func is the original extracted base function, without prompt instructions or context. commit_msg, cve_desc, and cwe_id become commit_message, cve_description, and cwe; patch is retained verbatim. Metadata describes the vulnerability/fix pair and is repeated on both variants.

Commit IDs (mostly full hashes), repository URLs, commit URLs, and CVE IDs come from the author's original OpenVul release, joined by both source indices and checked against exact function text, file path, target, and the abbreviated commit in the query key. The fixing commit and repository use the vulnerable record's metadata, matching the query pair key. short_commit_id retains the original abbreviation. original_project retains the original release's project name (e.g. Chrome). Nine upstream pairs name a different commit on their patched record. Those pairs remain as supplied, with paired_commit_mismatch=true and the separate original_patched_commit_id; their supplied patched function should not be assumed to come from the fixing commit. The exact pair keys are listed in merge-report.json. No CVE identifiers are inferred from prose. Original pickle loading rejects globals. The merge fails on missing/duplicate keys, unmatched metadata, malformed prompts, duplicate indices, or broken/cross-split pairs. See merge-report.json for counts and input file hashes. For offline inputs, revision labels identify the expected snapshots; file hashes record the actual inputs, which are not authenticated against the Hub.

Sources

Downloads last month
65