func_before
stringlengths
10
482k
func_after
stringlengths
14
484k
cve_id
stringlengths
13
28
cwe_id
stringclasses
776 values
cve_description
stringlengths
30
3.31k
commit_link
stringlengths
48
164
commit_message
stringlengths
1
30.3k
file_name
stringlengths
4
244
extension
stringclasses
20 values
datetime
stringdate
1999-11-10 02:42:49
2024-01-29 16:00:57
static int vmdk_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; int ret; uint64_t n, index_in_cluster; VmdkExtent *extent = NULL; uint64_t cluster_offset; while (nb_sectors > 0) { extent = find_extent(s, se...
static int vmdk_read(BlockDriverState *bs, int64_t sector_num, uint8_t *buf, int nb_sectors) { BDRVVmdkState *s = bs->opaque; int ret; uint64_t n, index_in_cluster; uint64_t extent_begin_sector, extent_relative_sector_num; VmdkExtent *extent = NULL; uint64_t cluster_offset; ...
null
null
null
qemu/commit/b1649fae49a899a222c3ac53c5009dd6f23349e1
vmdk: Fix data corruption bug in WRITE and READ handling Fixed a MAJOR BUG in VMDK files on file boundaries on reads and ALSO ON WRITES WHICH MIGHT CORRUPT THE IMAGE AND DATA!!!!!! Triggered for example with the following VMDK file (partly listed): RW 4193792 FLAT "XP-W1-f001.vmdk" 0 RW 2097664 FLAT "XP-W1-f002.vmdk"...
./qemu/block/vmdk.c
c
2012-11-10T08:22:18Z
bgp_attr_unknown (struct bgp_attr_parser_args *args) { bgp_size_t total; struct transit *transit; struct attr_extra *attre; struct peer *const peer = args->peer; struct attr *const attr = args->attr; u_char *const startp = args->startp; const u_char type = args->type; const u_char flag = args->flag...
bgp_attr_unknown (struct bgp_attr_parser_args *args) { bgp_size_t total = args->total; struct transit *transit; struct attr_extra *attre; struct peer *const peer = args->peer; struct attr *const attr = args->attr; u_char *const startp = args->startp; const u_char type = args->type; const u_char fla...
CVE-2013-6051
NVD-CWE-noinfo
The bgp_attr_unknown function in bgp_attr.c in Quagga 0.99.21 does not properly initialize the total variable, which allows remote attackers to cause a denial of service (bgpd crash) via a crafted BGP update.
https://git.savannah.gnu.org/gitweb/?p=quagga.git;a=commitdiff;h=8794e8d229dc9fe29ea31424883433d4880ef408
null
null
c
null
int nfc_llcp_send_symm(struct nfc_dev *dev) { struct sk_buff *skb; struct nfc_llcp_local *local; u16 size = 0; local = nfc_llcp_find_local(dev); if (local == NULL) return -ENODEV; size += LLCP_HEADER_SIZE; size += dev->tx_headroom + dev->tx_tailroom + NFC_HEADER_SIZE; skb = alloc_skb(size, GFP_KERNEL); if...
int nfc_llcp_send_symm(struct nfc_dev *dev) { struct sk_buff *skb; struct nfc_llcp_local *local; u16 size = 0; int err; local = nfc_llcp_find_local(dev); if (local == NULL) return -ENODEV; size += LLCP_HEADER_SIZE; size += dev->tx_headroom + dev->tx_tailroom + NFC_HEADER_SIZE; skb = alloc_skb(size, GFP_KE...
null
null
null
https://github.com/torvalds/linux/commit/6709d4b7bc2e079241fdef15d1160581c5261c10
net: nfc: Fix use-after-free caused by nfc_llcp_find_local This commit fixes several use-after-free that caused by function nfc_llcp_find_local(). For example, one UAF can happen when below buggy time window occurs. // nfc_genl_llc_get_params | // nfc_unregister_device | dev = nfc_get_d...
net/nfc/llcp_commands.c
c
2023-06-25T09:10:07Z
void CLASS xtrans_interpolate(int passes) { int c, d, f, g, h, i, v, ng, row, col, top, left, mrow, mcol; #ifdef LIBRAW_LIBRARY_BUILD int cstat[4]={0,0,0,0}; #endif int val, ndir, pass, hm[8], avg[4], color[3][8]; static const short orth[12] = {1, 0, 0, 1, -1, 0, 0, -1, 1, 0, 0, 1}, patt[...
void CLASS xtrans_interpolate(int passes) { int c, d, f, g, h, i, v, ng, row, col, top, left, mrow, mcol; #ifdef LIBRAW_LIBRARY_BUILD int cstat[4]={0,0,0,0}; #endif int val, ndir, pass, hm[8], avg[4], color[3][8]; static const short orth[12] = {1, 0, 0, 1, -1, 0, 0, -1, 1, 0, 0, 1}, patt[...
CVE-2017-16910
CWE-125
An error within the "LibRaw::xtrans_interpolate()" function (internal/dcraw_common.cpp) in LibRaw versions prior to 0.18.6 can be exploited to cause an invalid read memory access and subsequently a Denial of Service condition.
https://github.com/LibRaw/LibRaw/commit/5563e6ddc3f7cb93d98b491194ceebdee7288d36
Secunia 76000 #2: xtrans allhex not initialized
dcraw.c
c
2017-12-02T09:28:37Z
static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev, struct XenDevOps *ops) { struct XenDevice *xendev; char *dom0; xendev = xen_be_find_xendev(type, dom, dev); if (xendev) { return xendev; } xendev = g_malloc0(ops...
static struct XenDevice *xen_be_get_xendev(const char *type, int dom, int dev, struct XenDevOps *ops) { struct XenDevice *xendev; xendev = xen_be_find_xendev(type, dom, dev); if (xendev) { return xendev; } xendev = g_malloc0(ops->size); xen...
null
null
null
qemu/commit/33876dfad64bc481f59c5e9ccf60db78624c4b93
qemu/xen: make use of xenstore relative paths Qemu has several hardcoded xenstore paths that are only valid on Dom0. Attempts to launch a Qemu instance (to act as a userspace backend for PV disks) will fail because Qemu is not able to access those paths when running on a domain different than Dom0. Instead make the x...
./qemu/hw/xen/xen_backend.c
c
2013-10-10T14:25:52Z
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, int is_user, hwaddr *phys_ptr, int *prot, target_ulong *page_size_ptr) { CPUState *cs = CPU(arm_env_get_cpu(env)); MMUFaultType fa...
static int get_phys_addr_lpae(CPUARMState *env, target_ulong address, int access_type, int is_user, hwaddr *phys_ptr, int *prot, target_ulong *page_size_ptr) { CPUState *cs = CPU(arm_env_get_cpu(env)); MMUFaultType fa...
null
null
null
qemu/commit/d615efac7c4dc0984de31791c5c7d6b06408aadb
target-arm: Correct handling of UXN bit in ARMv8 LPAE page tables In v8 page tables bit 54 in the PTE is UXN in the EL0/EL1 translation regimes and XN elsewhere. In v7 the bit is always XN. Since we only emulate EL0/EL1 we can just treat this bit as UXN whenever we are in v8 mode. Also correctly extract the upper att...
./qemu/target-arm/helper.c
c
2014-06-09T14:43:23Z
static void load_xref_from_plaintext(FILE *fp, xref_t *xref) { int i, buf_idx, obj_id, added_entries; char c, buf[32] = {0}; long start, pos; start = ftell(fp); /* Get number of entries */ pos = xref->end; fseek(fp, pos, SEEK_SET); while (ftell(fp) != 0) if (SAFE_F(fp, (fgetc(fp...
static void load_xref_from_plaintext(FILE *fp, xref_t *xref) { int i, buf_idx, obj_id, added_entries; char c, buf[32] = {0}; long start, pos; start = ftell(fp); /* Get number of entries */ pos = xref->end; fseek(fp, pos, SEEK_SET); while (ftell(fp) != 0) if (SAFE_F(fp, (fgetc(fp...
null
CWE-787
null
https://github.com/enferex/pdfresurrect/commit/0c4120fffa3dffe97b95c486a120eded82afe8a6
Zero and sanity check all dynamic allocs. This addresses the memory issues in Issue #6 expressed in calloc_some.pdf and malloc_some.pdf
null
null
2019-08-10T14:47:09Z
static void svm_handle_exit_irqoff(struct kvm_vcpu *vcpu) { }
static void svm_handle_exit_irqoff(struct kvm_vcpu *vcpu) { if (to_svm(vcpu)->vmcb->control.exit_code == SVM_EXIT_INTR) vcpu->arch.at_instruction_boundary = true; }
null
CWE-703
null
https://github.com/torvalds/linux/commit/6cd88243c7e03845a450795e134b488fc2afb736
KVM: x86: do not report a vCPU as preempted outside instruction boundaries If a vCPU is outside guest mode and is scheduled out, it might be in the process of making a memory access. A problem occurs if another vCPU uses the PV TLB flush feature during the period when the vCPU is scheduled out, and a virtual address ...
null
null
2022-06-07T14:09:03Z
def get_dag_warnings( *, limit: int, dag_id: str | None = None, warning_type: str | None = None, offset: int | None = None, order_by: str = "timestamp", session: Session = NEW_SESSION, ) -> APIResponse: """Get DAG warnings. :param dag_id: the dag_id to optionally filter by :para...
def get_dag_warnings( *, limit: int, dag_id: str | None = None, warning_type: str | None = None, offset: int | None = None, order_by: str = "timestamp", session: Session = NEW_SESSION, ) -> APIResponse: """Get DAG warnings. :param dag_id: the dag_id to optionally filter by :para...
null
null
null
https://github.com/apache/airflow/commit/e212aedc65b85671062fb1d4cc2de7be7fa3d449
update the query to have an accurate result for total entries and pagination
airflow/api_connexion/endpoints/dag_warning_endpoint.py
py
2023-09-13T23:15:14Z
static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, AVDictionary *opts, AVDictionary *opts2, int *is_http) { HLSContext *c = s->priv_data; AVDictionary *tmp = NULL; const char *proto_name = NULL; int ret; av_dict_copy(&tmp, opts, 0); av_dict_copy(&tmp,...
static int open_url(AVFormatContext *s, AVIOContext **pb, const char *url, AVDictionary *opts, AVDictionary *opts2, int *is_http) { HLSContext *c = s->priv_data; AVDictionary *tmp = NULL; const char *proto_name = NULL; int ret; av_dict_copy(&tmp, opts, 0); av_dict_copy(&tmp,...
CVE-2017-9993
CWE-200
FFmpeg before 2.8.12, 3.0.x and 3.1.x before 3.1.9, 3.2.x before 3.2.6, and 3.3.x before 3.3.2 does not properly restrict HTTP Live Streaming filename extensions and demuxer names, which allows attackers to read arbitrary files via crafted playlist data.
https://github.com/FFmpeg/FFmpeg/commit/189ff4219644532bdfa7bab28dfedaee4d6d4021
avformat/hls: Check local file extensions This reduces the attack surface of local file-system information leaking. It prevents the existing exploit leading to an information leak. As well as similar hypothetical attacks. Leaks of information from files and symlinks ending in common multimedia extensions are still p...
libavformat/hls.c
c
2017-06-03T19:20:04Z
static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define SkipLinesOp 0x01 #define SetColorOp 0x02 #define SkipPixelsOp 0x03 #define ByteDataOp 0x05 #define RunDataOp 0x06 #define EOFOp 0x07 char magick[12]; Image *image; IndexPacket index; int op...
static Image *ReadRLEImage(const ImageInfo *image_info,ExceptionInfo *exception) { #define SkipLinesOp 0x01 #define SetColorOp 0x02 #define SkipPixelsOp 0x03 #define ByteDataOp 0x05 #define RunDataOp 0x06 #define EOFOp 0x07 #define ThrowRLEException(exception,message) \ { \ if (colormap != (unsigned char *) ...
CVE-2017-9144
CWE-20
In ImageMagick 7.0.5-5, a crafted RLE image can trigger a crash because of incorrect EOF handling in coders/rle.c.
https://github.com/ImageMagick/ImageMagick/commit/7fdf9ea808caa3c81a0eb42656e5fafc59084198
null
null
null
null
static long pmcraid_ioctl_passthrough( struct pmcraid_instance *pinstance, unsigned int ioctl_cmd, unsigned int buflen, unsigned long arg ) { struct pmcraid_passthrough_ioctl_buffer *buffer; struct pmcraid_ioarcb *ioarcb; struct pmcraid_cmd *cmd; struct pmcraid_cmd *cancel_cmd; unsigned long request_buffer; u...
static long pmcraid_ioctl_passthrough( struct pmcraid_instance *pinstance, unsigned int ioctl_cmd, unsigned int buflen, unsigned long arg ) { struct pmcraid_passthrough_ioctl_buffer *buffer; struct pmcraid_ioarcb *ioarcb; struct pmcraid_cmd *cmd; struct pmcraid_cmd *cancel_cmd; unsigned long request_buffer; u...
CVE-2011-2906
CWE-189
Integer signedness error in the pmcraid_ioctl_passthrough function in drivers/scsi/pmcraid.c in the Linux kernel before 3.1 might allow local users to cause a denial of service (memory consumption or memory corruption) via a negative size value in an ioctl call. NOTE: this may be a vulnerability only in unusual environ...
https://github.com/torvalds/linux/commit/b5b515445f4f5a905c5dd27e6e682868ccd6c09d
[SCSI] pmcraid: reject negative request size There's a code path in pmcraid that can be reached via device ioctl that causes all sorts of ugliness, including heap corruption or triggering the OOM killer due to consecutive allocation of large numbers of pages. First, the user can call pmcraid_chr_ioctl(), with a type ...
pmcraid.c
c
2011-07-11T21:08:23Z
static int on_part_data_end(multipart_parser *parser) { multipart_parser_data_t *data = NULL; ogs_assert(parser); data = multipart_parser_get_data(parser); ogs_assert(data); data->num_of_part++; return 0; }
static int on_part_data_end(multipart_parser *parser) { multipart_parser_data_t *data = NULL; ogs_assert(parser); data = multipart_parser_get_data(parser); ogs_assert(data); if (data->num_of_part < OGS_SBI_MAX_NUM_OF_PART) { data->num_of_part++; } return 0; }
null
CWE-476, CWE-787
null
https://github.com/open5gs/open5gs/commit/d919b2744cd05abae043490f0a3dd1946c1ccb8c
[AMF] fix the memory problem (#1247) 1. memory corruption - Overflow num_of_part in SBI message 2. null pointer dereference - n2InfoContent->ngap_ie_type
null
null
2021-11-16T23:09:16Z
public static boolean hasValidSessionCookie(final Http.Request req) { return req.session().data().containsKey(ACTOR) && req.cookie(ACTOR) != null && req.session().data().get(ACTOR).equals(req.cookie(ACTOR).value()); }
public static boolean hasValidSessionCookie(final Http.Request req) { return req.session().data().containsKey(ACTOR) && req.getCookie(ACTOR).isPresent() && req.session().data().get(ACTOR).equals(req.getCookie(ACTOR).get().value()); }
null
null
null
https://github.com/datahub-project/datahub/commit/bacc2f957bfd3214d9cf2c1f57035f56d5b1fc39
fix(oidc): fix oidc authentication loop (#6848) * fix(oidc): fix oidc authentication loop
datahub-frontend/app/auth/AuthUtils.java
java
2022-12-22T22:12:51Z
public void setCdDtlNo(String[] cdDtlNo) { this.cdDtlNo = cdDtlNo; }
public void setCdDtlNo(String[] cdDtlNo) { this.cdDtlNo = cdDtlNo != null ? cdDtlNo.clone() : null; }
null
null
null
https://github.com/fosslight/fosslight/commit/fe967e9eb1e8323e2a829cd3b501c60748e20ead
Fix the vulnerability that public array is assigned to private variable Change behavior that public array is assigned to private variable into behavior that copy is assigned to private variable. Signed-off-by: yugeeklab <yugeeklab@gmail.com>
src/main/java/oss/fosslight/domain/CodeBean.java
java
2021-11-17T01:03:06Z
public String checkAuth( String uri, HttpServletRequest request, HttpServletResponse response, AbstractAuthenticationToken authentication) { if ("tenants.html".equals(uri)) { UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPri...
public String checkAuth( String uri, HttpServletRequest request, HttpServletResponse response, AbstractAuthenticationToken authentication) { if ("tenants.html".equals(uri)) { UserDetails userDetails = (UserDetails) SecurityContextHolder.getContext().getAuthentication().getPri...
null
null
null
https://github.com/Aiven-Open/klaw/commit/32ba650ef642966add565429fcde49ac686ff740
(backend) Fix Windows AD Authentication (#467) * Fix windows ad authentication * Remove commented blocks * Add tests for AD auth Signed-off-by: muralibasani <muralidhar.basani@aiven.io>
core/src/main/java/io/aiven/klaw/service/UiControllerLoginService.java
java
2023-01-24T10:42:34Z
static void clear_tfile_check_list(void) { struct file *file; /* first clear the tfile_check_list */ while (!list_empty(&tfile_check_list)) { file = list_first_entry(&tfile_check_list, struct file, f_tfile_llink); list_del_init(&file->f_tfile_llink); } INIT_LIST_HEAD(&tfile_check_list); }
static void clear_tfile_check_list(void) { struct file *file; /* first clear the tfile_check_list */ while (!list_empty(&tfile_check_list)) { file = list_first_entry(&tfile_check_list, struct file, f_tfile_llink); list_del_init(&file->f_tfile_llink); fput(file); } INIT_LIST_HEAD(&tfile_check_list); }
CVE-2020-0466
CWE-416
In do_epoll_ctl and ep_loop_check_proc of eventpoll.c, there is a possible use after free due to a logic error. This could lead to local escalation of privilege with no additional execution privileges needed. User interaction is not needed for exploitation.Product: AndroidVersions: Android kernelAndroid ID: A-147802478...
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=a9ed4a6560b8562b7e2e2bed9527e88001f7b682
epoll: Keep a reference on files added to the check list When adding a new fd to an epoll, and that this new fd is an epoll fd itself, we recursively scan the fds attached to it to detect cycles, and add non-epool files to a "check list" that gets subsequently parsed. However, this check list isn't completely safe wh...
null
null
null
@Override public RedisResponse executeCommand(Command command, ExecutionHandlerContext context) { List<byte[]> commandElems = command.getProcessedCommand(); String cursorString = command.getStringKey(); BigInteger cursor; Pattern matchPattern; String globPattern = null; int count = DEFAULT_CO...
@Override public RedisResponse executeCommand(Command command, ExecutionHandlerContext context) { List<byte[]> commandElems = command.getProcessedCommand(); String cursorString = command.getStringKey(); BigInteger cursor; Pattern matchPattern; String globPattern = null; int count = DEFAULT_CO...
null
null
null
https://github.com/apache/geode/commit/970497912dec5af43605842195bc8a7dd1479851
GEODE-9424: Accept Long arguments for Redis commands (#6698) - Do not return errors when arguments are specified that are less than Integer.MIN_VALUE or less than Integer.MAX_VALE - Convert long arguments outside the above range to Integer.MIN_VALUE or Integer.MAX_VALUE to be used internally - Add tests for new Co...
geode-apis-compatible-with-redis/src/main/java/org/apache/geode/redis/internal/executor/key/ScanExecutor.java
java
2021-07-15T18:04:14Z
static void uc32_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); UniCore32CPUClass *ucc = UNICORE32_CPU_CLASS(oc); ucc->parent_realize = dc->realize; dc->realize = uc32_cpu_realizefn; cc->class_by_name = uc32_cpu_class_by_name; ...
static void uc32_cpu_class_init(ObjectClass *oc, void *data) { DeviceClass *dc = DEVICE_CLASS(oc); CPUClass *cc = CPU_CLASS(oc); UniCore32CPUClass *ucc = UNICORE32_CPU_CLASS(oc); ucc->parent_realize = dc->realize; dc->realize = uc32_cpu_realizefn; cc->class_by_name = uc32_cpu_class_by_name; ...
null
null
null
qemu/commit/4c315c27661502a0813b129e41c0bf640c34a8d6
qdev: Protect device-list-properties against broken devices Several devices don't survive object_unref(object_new(T)): they crash or hang during cleanup, or they leave dangling pointers behind. This breaks at least device-list-properties, because qmp_device_list_properties() needs to create a device to find its prope...
./qemu/target-unicore32/cpu.c
c
2015-10-01T08:59:58Z
static int vmd_read_packet(AVFormatContext *s, AVPacket *pkt) { VmdDemuxContext *vmd = (VmdDemuxContext *)s->priv_data; ByteIOContext *pb = &s->pb; int ret = 0; vmd_frame_t *frame; if (vmd->current_frame >= vmd->frame_count) return -EIO; frame = &vmd->frame_tab...
static int vmd_read_packet(AVFormatContext *s, AVPacket *pkt) { VmdDemuxContext *vmd = (VmdDemuxContext *)s->priv_data; ByteIOContext *pb = &s->pb; int ret = 0; vmd_frame_t *frame; if (vmd->current_frame >= vmd->frame_count) return -EIO; frame = &vmd->frame_tab...
null
null
null
FFmpeg/commit/23fe14bb20888038b91e62b16d50fe0b75043a10
minor VMD system update still not perfect, but should not crash either Originally committed as revision 2887 to svn://svn.ffmpeg.org/ffmpeg/trunk
./ffmpeg/libavformat/sierravmd.c
c
2004-03-14T04:08:11Z
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View rootView = inflater.inflate(R.layout.fragment_account_chooser_bottom_sheet, container, false); ((Infinity) ...
@Override public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) { // Inflate the layout for this fragment View rootView = inflater.inflate(R.layout.fragment_account_chooser_bottom_sheet, container, false); ((Infinity) ...
null
null
null
https://github.com/Docile-Alligator/Infinity-For-Reddit/commit/22cf0a9c20b41176e9e2216d79934028c570b0c3
Fix biometric authentication prompt not shown when opening the account section in the navigation drawer. Require biometric authentication in AccountChooserBottomSheetFragment.
app/src/main/java/ml/docilealligator/infinityforreddit/bottomsheetfragments/AccountChooserBottomSheetFragment.java
java
2022-05-14T04:08:33Z
static int aiff_read_header(AVFormatContext *s) { int ret, size, filesize; int64_t offset = 0, position; uint32_t tag; unsigned version = AIFF_C_VERSION1; AVIOContext *pb = s->pb; AVStream * st; AIFFInputContext *aiff = s->priv_data; ID3v2ExtraMeta *id3v2_extra_meta = NULL; file...
static int aiff_read_header(AVFormatContext *s) { int ret, size, filesize; int64_t offset = 0, position; uint32_t tag; unsigned version = AIFF_C_VERSION1; AVIOContext *pb = s->pb; AVStream * st; AIFFInputContext *aiff = s->priv_data; ID3v2ExtraMeta *id3v2_extra_meta = NULL; file...
null
null
null
FFmpeg/commit/ad5807f8aa883bee5431186dc1f24c5435d722d3
avformat: fix overflows during bit rate calculation The bit_rate field has type int64_t since commit 7404f3bdb90e6a5dcb59bc0a091e2c5c038e557d. Reviewed-by: Paul B Mahol <onemda@gmail.com> Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
./ffmpeg/libavformat/aiffdec.c
c
2016-12-12T23:38:25Z
static Image *ReadCALSImage(const ImageInfo *image_info, ExceptionInfo *exception) { char filename[MagickPathExtent], header[MagickPathExtent], message[MagickPathExtent]; FILE *file; Image *image; ImageInfo *read_info; int c, unique_file; MagickBooleanType status; ...
static Image *ReadCALSImage(const ImageInfo *image_info, ExceptionInfo *exception) { char filename[MagickPathExtent], header[MagickPathExtent], message[MagickPathExtent]; FILE *file; Image *image; ImageInfo *read_info; int c, unique_file; MagickBooleanType status; ...
CVE-2018-16643
CWE-20
The functions ReadDCMImage in coders/dcm.c, ReadPWPImage in coders/pwp.c, ReadCALSImage in coders/cals.c, and ReadPICTImage in coders/pict.c in ImageMagick 7.0.8-4 do not check the return value of the fputc function, which allows remote attackers to cause a denial of service via a crafted image file.
https://github.com/ImageMagick/ImageMagick/commit/6b6bff054d569a77973f2140c0e86366e6168a6c
https://github.com/ImageMagick/ImageMagick/issues/1199
cals.c
c
2018-07-05T18:29:46Z
static int connect_to_ssh(BDRVSSHState *s, QDict *options, int ssh_flags, int creat_mode, Error **errp) { int r, ret; const char *host, *user, *path, *host_key_check; int port; if (!qdict_haskey(options, "host")) { ret = -EINVAL; error_setg(errp, "No hostname wa...
static int connect_to_ssh(BDRVSSHState *s, QDict *options, int ssh_flags, int creat_mode, Error **errp) { int r, ret; QemuOpts *opts = NULL; Error *local_err = NULL; const char *host, *user, *path, *host_key_check; int port; opts = qemu_opts_create(&ssh_runtime_opts, NU...
null
null
null
qemu/commit/8a6a80896d6af03b8ee0c17cdf37219eca2588a7
block/ssh: Use QemuOpts for runtime options Using QemuOpts will prevent qemu from crashing if the input options have not been validated (which is the case when they are specified on the command line or in a json: filename) and some have the wrong type. Signed-off-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Kevin...
./qemu/block/ssh.c
c
2016-08-15T13:29:23Z
static MagickBooleanType WriteSIXELImage(const ImageInfo *image_info,Image *image) { ExceptionInfo *exception; MagickBooleanType status; register const IndexPacket *indexes; register ssize_t i, x; ssize_t opacity, y; sixel_output_t *output; unsigned char sixel_pal...
static MagickBooleanType WriteSIXELImage(const ImageInfo *image_info,Image *image) { ExceptionInfo *exception; MagickBooleanType status; register const IndexPacket *indexes; register ssize_t i, x; ssize_t opacity, y; sixel_output_t *output; unsigned char sixel_pal...
CVE-2016-10057
CWE-119
Buffer overflow in the WriteGROUP4Image function in coders/tiff.c in ImageMagick before 6.9.5-8 allows remote attackers to cause a denial of service (application crash) or have other unspecified impact via a crafted file.
https://github.com/ImageMagick/ImageMagick/commit/10b3823a7619ed22d42764733eb052c4159bc8c1
Prevent buffer overflow in SIXEL, PDB, MAP, and CALS coders (bug report from Donghai Zhu)
coders/sixel.c
c
null
@Override protected void doGet(HttpServletRequest req, HttpServletResponse rsp) throws IOException { String name; if (req.getPathInfo() == null) { name = "/"; } else { name = CharMatcher.is('/').trimFrom(req.getPathInfo()); } if (isUnreasonableName(name)) { notFound(rsp); r...
@Override protected void doGet(HttpServletRequest req, HttpServletResponse rsp) throws IOException { String name; if (req.getPathInfo() == null) { name = "/"; } else { name = CharMatcher.is('/').trimFrom(req.getPathInfo()); } if (isUnreasonableName(name)) { notFound(rsp); r...
null
null
null
https://github.com/GerritCodeReview/gerrit/commit/ea2b8549ea1ed979aa17d57dd2669b4458ac9714
Attach nonce to scripts in documentation pages. The change parses served html and adds nonce to all scripts. Since this is a static page with no changes to the content from code, there is no risk of XSS from doing this. The nonce is only added if there is a corresponding Filter installed that generates nonce and inser...
java/com/google/gerrit/httpd/raw/ResourceServlet.java
java
2022-11-09T10:20:31Z
public void analyze(Map<Element, Parser> allContext) { /* * Rules that must be met - Subcommands can only go on inner classes */ for (Entry<Element, Parser> contextEntry : allContext.entrySet()) { TypeElement classElement = (TypeElement) contextEntry.getKey(); Parser context = contextEntry.getValue();...
public void analyze(LinkedHashMap<TypeElement, Parser> allContext) { /* * Rules that must be met - Subcommands can only go on inner classes */ for (Entry<TypeElement, Parser> contextEntry : allContext.entrySet()) { TypeElement classElement = contextEntry.getKey(); Parser context = contextEntry.getValu...
null
null
null
https://github.com/JorelAli/CommandAPI/commit/8736dbeaa20bf4a30fb2000cc2e51614950882ba
Made the registration method static
CommandAPI/commandapi-annotations/src/main/java/dev/jorel/commandapi/annotations/Semantics.java
java
2022-04-24T23:17:31Z
it "does not activate user invited via links" do invite = Fabricate(:invite, email: 'walter.white@email.com', emailed_status: Invite.emailed_status_types[:not_required]) user = InviteRedeemer.create_user_from_invite(invite: invite, email: invite.email, username: 'walter', name: 'Walter White') expect...
it "does not activate user invited via links" do invite = Fabricate(:invite, email: 'walter.white@email.com', emailed_status: Invite.emailed_status_types[:not_required]) user = InviteRedeemer.create_user_from_invite(invite: invite, email: invite.email, username: 'walter', name: 'Walter White') expect...
CVE-2022-31025
NVD-CWE-Other,CWE-285
Discourse is an open source platform for community discussion. Prior to version 2.8.4 on the `stable` branch and 2.9.0beta5 on the `beta` and `tests-passed` branches, inviting users on sites that use single sign-on could bypass the `must_approve_users` check and invites by staff are always approved automatically. The i...
https://github.com/discourse/discourse/commit/7c4e2d33fa4b922354c177ffc880a2f2701a91f9
SECURITY: Remove auto approval when redeeming an invite (#16974) This security fix affects sites which have `SiteSetting.must_approve_users` enabled. There are intentional and unintentional cases where invited users can be auto approved and are deemed to have skipped the staff approval process. Instead of trying to re...
invite_redeemer.rb
rb
2022-06-07T15:15:00Z
@Override public void run() { // init firstValidVersionId firstValidVersionId = checkpointManager.getFirstValidWALVersionId(); if (firstValidVersionId == Long.MIN_VALUE) { // roll wal log writer to delete current wal file if (buffer.getCurrentWALFileSize() > 0) { rollWALF...
@Override public void run() { // init firstValidVersionId firstValidVersionId = checkpointManager.getFirstValidWALVersionId(); if (firstValidVersionId == Long.MIN_VALUE) { // roll wal log writer to delete current wal file if (buffer.getCurrentWALFileSize() > 0) { rollWALF...
null
null
null
https://github.com/apache/iotdb/commit/bf36ca3a3f3bc034c8ef29c3594b42815c103f39
[IOTDB-3649] Fix stack overflow when deleting wal (#6432)
server/src/main/java/org/apache/iotdb/db/wal/node/WALNode.java
java
2022-06-25T05:30:25Z
kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args) { if (args->flags & ~(KVM_IRQFD_FLAG_DEASSIGN | KVM_IRQFD_FLAG_RESAMPLE)) return -EINVAL; if (args->flags & KVM_IRQFD_FLAG_DEASSIGN) return kvm_irqfd_deassign(kvm, args); return kvm_irqfd_assign(kvm, args); }
kvm_irqfd(struct kvm *kvm, struct kvm_irqfd *args) { if (args->flags & ~(KVM_IRQFD_FLAG_DEASSIGN | KVM_IRQFD_FLAG_RESAMPLE)) return -EINVAL; if (args->gsi >= KVM_MAX_IRQ_ROUTES) return -EINVAL; if (args->flags & KVM_IRQFD_FLAG_DEASSIGN) return kvm_irqfd_deassign(kvm, args); return kvm_irqfd_assign(kvm...
CVE-2017-1000252
CWE-20
The KVM subsystem in the Linux kernel through 4.13.3 allows guest OS users to cause a denial of service (assertion failure, and hypervisor hang or crash) via an out-of bounds guest_irq value, related to arch/x86/kvm/vmx.c and virt/kvm/eventfd.c.
https://github.com/torvalds/linux/commit/36ae3c0a36b7456432fedce38ae2f7bd3e01a563
KVM: Don't accept obviously wrong gsi values via KVM_IRQFD We cannot add routes for gsi values >= KVM_MAX_IRQ_ROUTES -- see kvm_set_irq_routing(). Hence, there is no sense in accepting them via KVM_IRQFD. Prevent them from entering the system in the first place. Signed-off-by: Jan H. Schönherr <jschoenh@amazon.de> Si...
eventfd.c
c
2017-09-07T18:02:48Z
static int nfs_can_extend_write(struct file *file, struct page *page, struct inode *inode) { if (file->f_flags & O_DSYNC) return 0; if (NFS_PROTO(inode)->have_delegation(inode, FMODE_WRITE)) return 1; if (nfs_write_pageuptodate(page, inode) && (inode->i_flock == NULL || (inode->i_flock->fl_start == 0 && ...
static int nfs_can_extend_write(struct file *file, struct page *page, struct inode *inode) { if (file->f_flags & O_DSYNC) return 0; if (!nfs_write_pageuptodate(page, inode)) return 0; if (NFS_PROTO(inode)->have_delegation(inode, FMODE_WRITE)) return 1; if (inode->i_flock == NULL || (inode->i_flock->fl_st...
CVE-2014-2038
CWE-20
The nfs_can_extend_write function in fs/nfs/write.c in the Linux kernel before 3.13.3 relies on a write delegation to extend a write operation without a certain up-to-date verification, which allows local users to obtain sensitive information from kernel memory in opportunistic circumstances by writing to a file in an ...
https://github.com/torvalds/linux/commit/263b4509ec4d47e0da3e753f85a39ea12d1eff24
nfs: always make sure page is up-to-date before extending a write to cover the entire page We should always make sure the cached page is up-to-date when we're determining whether we can extend a write to cover the full page -- even if we've received a write delegation from the server. Commit c7559663 added logic to s...
write.c
c
2014-01-17T20:12:05Z
OMX_ERRORTYPE SoftVideoDecoderOMXComponent::internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) { const int32_t indexFull = index; switch (indexFull) { case OMX_IndexParamStandardComponentRole: { const OMX_PARAM_COMPONENTROLETYPE *roleParams = (const OMX_PARAM_CO...
OMX_ERRORTYPE SoftVideoDecoderOMXComponent::internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) { const int32_t indexFull = index; switch (indexFull) { case OMX_IndexParamStandardComponentRole: { const OMX_PARAM_COMPONENTROLETYPE *roleParams = (const OMX_PARAM_CO...
CVE-2016-2476
CWE-119
mediaserver in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-06-01 does not validate OMX buffer sizes, which allows attackers to gain privileges via a crafted application, as demonstrated by obtaining Signature or SignatureOrSystem access, aka internal bug 27207275.
https://android.googlesource.com/platform/frameworks/av/+/295c883fe3105b19bcd0f9e07d54c6b589fc5bff
DO NOT MERGE Verify OMX buffer sizes prior to access Bug: 27207275 Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d
media/libstagefright/omx/SoftVideoDecoderOMXComponent.cpp
cpp
null
get_obj_from_str(str) VALUE str; { const char *s = StringValuePtr(str); #if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 0 return Tcl_NewStringObj((char*)s, RSTRING_LEN(str)); #else /* TCL_VERSION >= 8.1 */ VALUE enc = rb_attr_get(str, ID_at_enc); if (!NIL_P(enc)) { StringValue(enc); ...
get_obj_from_str(str) VALUE str; { const char *s = StringValueCStr(str); #if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION == 0 return Tcl_NewStringObj((char*)s, RSTRING_LEN(str)); #else /* TCL_VERSION >= 8.1 */ VALUE enc = rb_attr_get(str, ID_at_enc); if (!NIL_P(enc)) { StringValue(enc); ...
CVE-2016-2337
null
Type confusion exists in _cancel_eval Ruby's TclTkIp class method. Attacker passing different type of object than String as "retval" argument can cause arbitrary code execution.
https://github.com/ruby/tk/commit/d098136e3f62a4879a7d7cd34bbd50f482ba3331
tcltklib.c: use StringValueCStr [ci skip] * ext/tk/tcltklib.c (set_max_block_time, tcl_protect_core, ip_init, ip_create_slave_core, get_obj_from_str, ip_cancel_eval_core, lib_set_system_encoding, alloc_invoke_arguments, lib_merge_tklist): use StringValueCStr instead of StringValuePtr for values to be passed to...
null
null
2016-08-09T05:05:11Z
static void host_callback(void *arg, int status, int timeouts, unsigned char *abuf, int alen) { struct host_query *hquery = (struct host_query*)arg; int addinfostatus = ARES_SUCCESS; hquery->timeouts += timeouts; hquery->remaining--; if (status == ARES_SUCCESS) { addinfost...
static void host_callback(void *arg, int status, int timeouts, unsigned char *abuf, int alen) { struct host_query *hquery = (struct host_query*)arg; int addinfostatus = ARES_SUCCESS; hquery->timeouts += timeouts; hquery->remaining--; if (status == ARES_SUCCESS) { addinfost...
CVE-2020-14354
CWE-310
A possible use-after-free and double-free in c-ares lib version 1.16.0 if ares_destroy() is called prior to ares_getaddrinfo() completing. This flaw possibly allows an attacker to crash the service that uses c-ares lib. The highest threat from this vulnerability is to this service availability.
https://github.com/c-ares/c-ares/commit/1cc7e83c3bdfaafbc5919c95025592d8de3a170e
Prevent possible double-free in ares_getaddrinfo() if ares_destroy() is called In the event that ares_destroy() is called prior to ares_getaddrinfo() completing, it would result in an invalid read and double-free due to calling end_hquery() twice. Reported By: Jann Horn @ Google Project Zero
ares_getaddrinfo.c
c
2020-05-07T11:02:31Z
int parse_unix(grpc_uri *uri, grpc_resolved_address *resolved_addr) { struct sockaddr_un *un = (struct sockaddr_un *)resolved_addr->addr; memset(un, 0, sizeof(*un)); un->sun_family = AF_UNIX; strncpy(un->sun_path, uri->path, sizeof(un->sun_path) - 1 /* null term'd */); resolved_addr->len = strlen(un->sun_pat...
int parse_unix(grpc_uri *uri, grpc_resolved_address *resolved_addr) { struct sockaddr_un *un = (struct sockaddr_un *)resolved_addr->addr; un->sun_family = AF_UNIX; strncpy(un->sun_path, uri->path, sizeof(un->sun_path) - 1 /* null term'd */); un->sun_path[sizeof(un->sun_path) - 1] = '\0'; resolved_addr->len =...
null
null
null
https://github.com/grpc/grpc/commit/f05359f6975003197d83ec5a1b78893e01000f99
Set terminator explicitly
src/core/ext/client_channel/parse_address.c
c
2017-02-22T23:00:41Z
void OneClickSigninSyncStarter::UntrustedSigninConfirmed( StartSyncMode response) { if (response == UNDO_SYNC) { CancelSigninAndDelete(); } else { if (response == CONFIGURE_SYNC_FIRST) start_mode_ = response; SigninManager* signin = SigninManagerFactory::GetForProfile(profile_); signin...
void OneClickSigninSyncStarter::UntrustedSigninConfirmed( StartSyncMode response) { if (response == UNDO_SYNC) { CancelSigninAndDelete(); // If this was not an interstitial signin, (i.e. it was a SAML signin) // then the browser page is now blank and should redirect to the NTP. if (source_ != S...
CVE-2013-2879
CWE-200
Google Chrome before 28.0.1500.71 does not properly determine the circumstances in which a renderer process can be considered a trusted process for sign-in and subsequent sync operations, which makes it easier for remote attackers to conduct phishing attacks via a crafted web site.
https://github.com/chromium/chromium/commit/afbc71b7a78ac99810a6b22b2b0a2e85dde18794
Display confirmation dialog for untrusted signins BUG=252062 Review URL: https://chromiumcodereview.appspot.com/17482002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@208520 0039d316-1c4b-4281-b951-d872f2087c98
chrome/browser/ui/sync/one_click_signin_sync_starter.cc
cc
2013-06-25T17:43:13Z
@SubscribeEvent public void onItemRightClick(PlayerInteractEvent.RightClickItem event) { if (!checkItemUsePerm(event.getItemStack(), event.getPlayer())) { event.setCanceled(true); } if ((event.getItemStack().getItem() instanceof ThrowablePotionItem || event.getItemStack().getIte...
@SubscribeEvent public void onItemRightClick(PlayerInteractEvent.RightClickItem event) { if (!checkItemUsePerm(event.getItemStack(), event.getPlayer())) { event.setCanceled(true); } if ((event.getItemStack().getItem() instanceof ThrowablePotionItem || event.getItemStack().getIte...
null
null
null
https://github.com/TeamLapen/Vampirism/commit/20c912f7cf408f58cb875bf2cf1c304daedc4f83
Vampire immortality (#897) * Initial DBNO implementation * Add WIP DBNO screen Make damage source configurable Reset attack targets of nearby mobs * Finish dbno screen. Add effect * Adjust player rendering in DBNO state. Non final * Make sure neonatal cannot be cured * Add neonatal icon and name * Allow hunter N...
src/main/java/de/teamlapen/vampirism/player/ModPlayerEventHandler.java
java
2021-04-23T19:34:05Z
def get_absolute_path(path): import os script_dir = os.path.dirname(__file__) # <-- absolute dir the script is in rel_path = path abs_file_path = os.path.join(script_dir, rel_path) return abs_file_path
def get_absolute_path(path): import os script_dir = os.path.dirname(__file__) # <-- absolute dir the script is in rel_path = path abs_file_path = safe_join(script_dir, rel_path) return abs_file_path
CVE-2022-31564
CWE-22
The woduq1414/munhak-moa repository before 2022-05-03 on GitHub allows absolute path traversal because the Flask send_file function is used unsafely.
https://github.com/woduq1414/munhak-moa/commit/e8f800373b20cb22de70c7a994325b8903877da0
# Absolute Path Traversal due to incorrect use of `send_file` call A path traversal attack (also known as directory traversal) aims to access files and directories that are stored outside the web root folder. By manipulating variables that reference files with “dot-dot-slash (../)” sequences and its variations or by u...
app.py
py
2022-07-11T01:15:00Z
R_API int r_socket_read_block(RSocket *s, unsigned char *buf, int len) { return -1; }
R_API int r_socket_read_block(RSocket *s, ut8 *buf, int len) { int ret = 0; for (ret = 0; ret < len; ) { int r = r_socket_read (s, buf + ret, len - ret); if (r == -1) { #if HAVE_LIB_SSL if (SSL_get_error (s->sfd, r) == SSL_ERROR_WANT_READ) { if (r_socket_ready (s, 1, 0) == 1) { continue; } } #e...
null
null
null
https://github.com/radareorg/radare2/commit/04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9
Fix command injection on PDB download (#16966) * Fix r_sys_mkdirp with absolute path on Windows * Fix build with --with-openssl * Use RBuffer in r_socket_http_answer() * r_socket_http_answer: Fix read for big responses * Implement r_str_escape_sh() * Cleanup r_socket_connect() on Windows * Fix socket being created wit...
libr/socket/socket.c
c
2020-06-10T16:00:00Z
sig_handler handle_kill_signal(int sig) { char kill_buffer[40]; MYSQL *kill_mysql= NULL; const char *reason = sig == SIGINT ? "Ctrl-C" : "Terminal close"; /* terminate if no query being executed, or we already tried interrupting */ /* terminate if no query being executed, or we already tried interrupting */ ...
sig_handler handle_kill_signal(int sig) { char kill_buffer[40]; MYSQL *kill_mysql= NULL; const char *reason = sig == SIGINT ? "Ctrl-C" : "Terminal close"; /* terminate if no query being executed, or we already tried interrupting */ /* terminate if no query being executed, or we already tried interrupting */ ...
CVE-2017-3305
CWE-319
Vulnerability in the MySQL Server component of Oracle MySQL (subcomponent: Server: C API). Supported versions that are affected are 5.5.55 and earlier and 5.6.35 and earlier. Difficult to exploit vulnerability allows low privileged attacker with network access via multiple protocols to compromise MySQL Server. Successf...
https://github.com/mysql/mysql-server/commit/0002e1380d5f8c113b6bce91f2cf3f75136fd7c7
BUG#25575605: SETTING --SSL-MODE=REQUIRED SENDS CREDENTIALS BEFORE VERIFYING SSL CONNECTION MYSQL_OPT_SSL_MODE option introduced. It is set in case of --ssl-mode=REQUIRED and permits only SSL connection. (cherry picked from commit f91b941842d240b8a62645e507f5554e8be76aec)
null
null
2017-03-09T22:05:24Z
void main_loop_wait(int nonblocking) { IOHandlerRecord *ioh; fd_set rfds, wfds, xfds; int ret, nfds; struct timeval tv; int timeout; if (nonblocking) timeout = 0; else { timeout = qemu_calculate_timeout(); qemu_bh_update_timeout(&timeout); } os_host_main_loop_...
void main_loop_wait(int nonblocking) { IOHandlerRecord *ioh; fd_set rfds, wfds, xfds; int ret, nfds; struct timeval tv; int timeout; if (nonblocking) timeout = 0; else { timeout = qemu_calculate_timeout(); qemu_bh_update_timeout(&timeout); } os_host_main_loop_...
null
null
null
qemu/commit/0290b57bdfec83ca78b6d119ea9847bb17943328
Delete IOHandlers after potentially running them Since commit 4bed9837309e58d208183f81d8344996744292cf an .fd_read() handler that deletes its IOHandler is exposed to .fd_write() being called on the deleted IOHandler. This patch fixes deletion so that .fd_read() and .fd_write() are never called on an IOHandler that is...
./qemu/vl.c
c
2010-11-03T14:29:44Z
validGlxScreen(ClientPtr client, int screen, __GLXscreen **pGlxScreen, int *err) { /* ** Check if screen exists. */ if (screen >= screenInfo.numScreens) { client->errorValue = screen; *err = BadValue; return FALSE; } *pGlxScreen = glxGetScreen(screenInfo.screens[screen]); return TR...
validGlxScreen(ClientPtr client, int screen, __GLXscreen **pGlxScreen, int *err) { /* ** Check if screen exists. */ if (screen < 0 || screen >= screenInfo.numScreens) { client->errorValue = screen; *err = BadValue; return FALSE; } *pGlxScreen = glxGetScreen(screenInfo.screens[screen]); ...
CVE-2010-4818
CWE-20
The GLX extension in X.Org xserver 1.7.7 allows remote authenticated users to cause a denial of service (server crash) and possibly execute arbitrary code via (1) a crafted request that triggers a client swap in glx/glxcmdsswap.c; or (2) a crafted length or (3) a negative value in the screen field in a request to glx/g...
https://cgit.freedesktop.org/xorg/xserver/commit?id=3f0d3f4d97bce75c1828635c322b6560a45a037f
glx: make sure screen is non-negative in validGlxScreen Reviewed-by: Adam Jackson <ajax@redhat.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Daniel Stone <daniel@fooishbar.org> Signed-off-by: Julien Cristau <jcristau@debian.org>
glxcmds.c
c
2010-07-03T18:42:26Z
private int mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, size_t o, unsigned int cont_level, int mode, int text, int flip, int recursion_level, int *printed_something, int *need_separator, int *returnval) { uint32_t soffset, offset = ms->offset; uint32_t count = m->str...
mget(struct magic_set *ms, const unsigned char *s, struct magic *m, size_t nbytes, size_t o, unsigned int cont_level, int mode, int text, int flip, int recursion_level, int *printed_something, int *need_separator, int *returnval) { uint32_t soffset, offset = ms->offset; uint32_t count = m->str_range; int...
CVE-2014-2270
CWE-119
softmagic.c in file before 5.17 and libmagic allows context-dependent attackers to cause a denial of service (out-of-bounds memory access and crash) via crafted offsets in the softmagic of a PE executable.
https://github.com/file/file/commit/447558595a3650db2886cd2f416ad0beba965801
PR/313: Aaron Reffett: Check properly for exceeding the offset.
null
null
2014-01-08T22:22:54Z
bool nodeHasRole(Node* node, const String& role) { if (!node || !node->isElementNode()) return false; return equalIgnoringCase(toElement(node)->getAttribute(roleAttr), role); }
bool nodeHasRole(Node* node, const String& role) { if (!node || !node->isElementNode()) return false; return equalIgnoringASCIICase(toElement(node)->getAttribute(roleAttr), role); }
CVE-2015-1274
CWE-254
Google Chrome before 44.0.2403.89 does not ensure that the auto-open list omits all dangerous file types, which makes it easier for remote attackers to execute arbitrary code by providing a crafted file and leveraging a user's previous "Always open files of this type" choice, related to download_commands.cc and downloa...
https://github.com/chromium/chromium/commit/d27468a832d5316884bd02f459cbf493697fd7e1
Switch to equalIgnoringASCIICase throughout modules/accessibility BUG=627682 Review-Url: https://codereview.chromium.org/2793913007 Cr-Commit-Position: refs/heads/master@{#461858}
third_party/WebKit/Source/modules/accessibility/AXObjectCacheImpl.cpp
cpp
2017-04-04T22:01:18Z
@SuppressWarnings("deprecation") @Override @SuppressLint({"SetJavaScriptEnabled", "JavascriptInterface", "RestrictedApi"}) protected void onCreate(@Nullable Bundle savedInstanceState) { this.moduleFile = new File(this.getCacheDir(), "module.zip"); super.onCreate(savedInstanceState); ...
@SuppressWarnings("deprecation") @Override @SuppressLint({"SetJavaScriptEnabled", "JavascriptInterface", "RestrictedApi"}) protected void onCreate(@Nullable Bundle savedInstanceState) { this.moduleFile = new File(this.getCacheDir(), "module.zip"); super.onCreate(savedInstanceState); ...
null
null
null
https://github.com/Fox2Code/FoxMagiskModuleManager/commit/66cb0b18135f245ef34104a0b1a5c6ac1a4e4d67
Security fixes and optimizations - All known hosts now have a hardcoded trusted root ca, because we're not just going to trust that the user has a-ok certs installed - Remove some unused code - Properly fix a couple NetworkOnMainThread errors Signed-off-by: androidacy-user <opensource@androidacy.com>
app/src/main/java/com/fox2code/mmm/androidacy/AndroidacyActivity.java
java
2022-12-11T17:01:23Z
static av_always_inline void dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
static av_always_inline int dnxhd_decode_dct_block(const DNXHDContext *ctx, RowContext *row, int n, int index_bits, ...
null
null
null
FFmpeg/commit/b8b8e82ea14016b2cb04b49ecea57f836e6ee7f8
dnxhddec: check and report bitstream errors This only occur when an overrun in coefficient decoding is detected. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
./ffmpeg/libavcodec/dnxhddec.c
c
2015-09-27T08:09:04Z
public Response revokeCert(CertId id, CertRevokeRequest request, boolean caCert) { if (id == null) { CMS.debug("revokeCert: id is null"); throw new BadRequestException("Unable to revoke cert: invalid id"); } if (request == null) { CMS.debug("revokeCert: reques...
public Response revokeCert(CertId id, CertRevokeRequest request, boolean caCert) { if (id == null) { CMS.debug("revokeCert: id is null"); throw new BadRequestException("Unable to revoke cert: invalid id"); } if (request == null) { CMS.debug("revokeCert: reques...
null
null
null
https://github.com/dogtagpki/pki/commit/eea6184452505f1755b7e5b9d12b0fb765742fec
Bug1979710-TPS: separate config actions by profile permission list This patch addresses the issue that TPS agent operations on tokens, activities, and profiles are not limited by the types (profiles) permmtted to the agent (as described in the documentation). This is a regression from 8.x. The affected operations are...
base/ca/src/org/dogtagpki/server/ca/rest/CertService.java
java
2021-07-15T00:24:59Z
void ConnectionManagerImpl::ActiveStream::recreateStream( StreamInfo::FilterStateSharedPtr filter_state) { // n.b. we do not currently change the codecs to point at the new stream // decoder because the decoder callbacks are complete. It would be good to // null out that pointer but should not be necessary. ...
void ConnectionManagerImpl::ActiveStream::recreateStream( StreamInfo::FilterStateSharedPtr filter_state) { // n.b. we do not currently change the codecs to point at the new stream // decoder because the decoder callbacks are complete. It would be good to // null out that pointer but should not be necessary. ...
null
CWE-416
null
https://github.com/envoyproxy/envoy/commit/fe7c69c248f4fe5a9080c7ccb35275b5218bb5ab
internal redirect: fix a lifetime bug (#785) Signed-off-by: Alyssa Wilk <alyssar@chromium.org> Signed-off-by: Matt Klein <mklein@lyft.com> Signed-off-by: Pradeep Rao <pcrao@google.com>
null
null
2022-06-08T23:10:39Z
XIQueryDevice(Display *dpy, int deviceid, int *ndevices_return) { XIDeviceInfo *info = NULL; xXIQueryDeviceReq *req; xXIQueryDeviceReq *req; xXIQueryDeviceReply reply; char *ptr; int i; char *buf; LockDisplay(dpy); if (_...
XIQueryDevice(Display *dpy, int deviceid, int *ndevices_return) { XIDeviceInfo *info = NULL; xXIQueryDeviceReq *req; xXIQueryDeviceReq *req; xXIQueryDeviceReply reply; char *ptr; char *end; int i; char *buf; ...
CVE-2016-7946
CWE-284
X.org libXi before 1.7.7 allows remote X servers to cause a denial of service (infinite loop) via vectors involving length fields.
https://cgit.freedesktop.org/xorg/lib/libXi/commit/?id=19a9cd607de73947fcfb104682f203ffe4e1f4e5
null
null
c
null
static int dxv_decompress_dxt1(AVCodecContext *avctx) { DXVContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; uint32_t value, prev, op; int idx = 0, state = 0; int pos = 2; AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc)); AV_WL32(ctx->tex_data + 4, bytestream2_get_le32(...
static int dxv_decompress_dxt1(AVCodecContext *avctx) { DXVContext *ctx = avctx->priv_data; GetByteContext *gbc = &ctx->gbc; uint32_t value, prev, op; int idx = 0, state = 0; int pos = 2; AV_WL32(ctx->tex_data, bytestream2_get_le32(gbc)); AV_WL32(ctx->tex_data + 4, bytestream2_get_le32(...
null
null
null
FFmpeg/commit/7ebdffc353f3f0827864e8e3461fdc00cc243b14
dxv: Check to make sure we don't overrun buffers on corrupt inputs Signed-off-by: Martin Storsjö <martin@martin.st>
./ffmpeg/libavcodec/dxv.c
c
2016-07-28T10:45:24Z
switch (recv_into_rbuf (h)) { case -1: SET_NEXT_STATE (%.DEAD); return 0; case 1: save_reply_state (h); SET_NEXT_STATE (%.READY); return 0; case 0: length = be32toh (h->sbuf.sr.structured_reply.length); offset = be64toh (h->sbuf.sr.payload.offset_data.offset); assert (cmd); /* guaranteed ...
switch (recv_into_rbuf (h)) { case -1: SET_NEXT_STATE (%.DEAD); return 0; case 1: save_reply_state (h); SET_NEXT_STATE (%.READY); return 0; case 0: offset = be64toh (h->sbuf.sr.payload.offset_hole.offset); length = be32toh (h->sbuf.sr.payload.offset_hole.length); assert (cmd); /* guarante...
null
null
null
https://github.com/libguestfs/libnbd/commit/2c1987fc23d6d0f537edc6d4701e95a2387f7917
lib: Fix stack corruption with structured reply containing negative offset. Because of improper bounds checking, when receiving a structured reply some offset/lengths sent by the server could cause libnbd to execute arbitrary code under control of a malicious server. A structured reply segment containing (for example...
null
null
2019-10-05T20:24:30Z
static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception) { char buffer[MagickPathExtent], name[MagickPathExtent]; Image *image; int c; MagickBooleanType status; register ssize_t i, x; register Quantum *q; register unsigned char *p; short...
static Image *ReadXBMImage(const ImageInfo *image_info,ExceptionInfo *exception) { char buffer[MagickPathExtent], name[MagickPathExtent]; Image *image; int c; MagickBooleanType status; register ssize_t i, x; register Quantum *q; register unsigned char *p; short...
CVE-2018-16323
CWE-200
ReadXBMImage in coders/xbm.c in ImageMagick before 7.0.8-9 leaves data uninitialized when processing an XBM file that has a negative pixel value. If the affected code is used as a library loaded into a process that includes sensitive information, that information sometimes can be leaked via the image data.
https://github.com/ImageMagick/ImageMagick/commit/216d117f05bff87b9dc4db55a1b1fadb38bcb786
XBM coder leaves the hex image data uninitialized if hex value of the pixel is negative
xbm.c
c
2018-07-24T21:31:33Z
func TimestampFileMetaEqual(actual data.TimestampFileMeta, expected data.TimestampFileMeta) error { // As opposed to snapshots, the length and hashes are still required in // TUF-1.0. See: // https://github.com/theupdateframework/specification/issues/38 if err := FileMetaEqual(actual.FileMeta, expected.FileMeta); e...
func TimestampFileMetaEqual(actual data.TimestampFileMeta, expected data.TimestampFileMeta) error { // TUF no longer considers the length and hashes to be a required // member of Timestamp. if expected.Length != 0 && actual.Length != expected.Length { return ErrWrongLength{expected.Length, actual.Length} } // 5....
CVE-2022-29173
CWE-354,CWE-354
go-tuf is a Go implementation of The Update Framework (TUF). go-tuf does not correctly implement the client workflow for updating the metadata files for roles other than the root role. Specifically, checks for rollback attacks are not implemented correctly meaning an attacker can cause clients to install software that ...
https://github.com/theupdateframework/go-tuf/commit/ed6788e710fc3093a7ecc2d078bf734c0f200d8d
Merge pull request from GHSA-66x3-6cw3-v5gj * Remove obsolete snapshot error check Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com> * Add a dedicated error for missing target metadata file Signed-off-by: Radoslav Dimitrov <dimitrovr@vmware.com> * Fix protection against metadata rollback attacks The go-tuf ...
list.go
go
2022-05-05T23:15:00Z
private void createIssue(ScanRequest request, Scan scan) throws IOException { try { final ScanVulnerabilities scanVulnerabilities = iastServiceRequests.apiScanVulnerabilities(scan.getScanId()); List<VulnerabilityInfo> vulnerabilities = scanVulnerabilities....
private void createIssue(ScanRequest request, Scan scan) throws IOException { try { final ScanVulnerabilities scanVulnerabilities = iastServiceRequests.apiScanVulnerabilities(scan.getScanId()); List<VulnerabilityInfo> vulnerabilities = scanVulnerabilities....
null
null
null
https://github.com/checkmarx-ltd/cx-flow/commit/4802c36343895b1f27d0b89a3bd09d3fef958026
add iast azure support add azure bug tracker to IAST found vulnerabilities on generateDescription - add new parameter to use HTML line separator (<br>) instead of system (/n)
src/main/java/com/checkmarx/flow/service/IastService.java
java
2021-07-08T14:41:14Z
static int xen_remove_from_physmap(XenIOState *state, hwaddr start_addr, ram_addr_t size) { unsigned long i = 0; int rc = 0; XenPhysmap *physmap = NULL; hwaddr phys_offset = 0; physmap = get_physmapping(state, start_addr, size); ...
static int xen_remove_from_physmap(XenIOState *state, hwaddr start_addr, ram_addr_t size) { unsigned long i = 0; int rc = 0; XenPhysmap *physmap = NULL; hwaddr phys_offset = 0; physmap = get_physmapping(state, start_addr, size); ...
null
null
null
qemu/commit/c5633d998a27502ad8cc10c2d46f91b02555ae7a
hw/xen: Use g_free instead of free and fix potential memory leaks The wrong functions and the missing calls of g_free were reported by cppcheck. Signed-off-by: Stefan Weil <sw@weilnetz.de> Acked-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
./qemu/xen-all.c
c
2013-06-10T20:36:22Z
PHP_FUNCTION(curl_unescape) { char *str = NULL, *out = NULL; size_t str_len = 0; int out_len; zval *zid; php_curl *ch; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &zid, &str, &str_len) == FAILURE) { return; } if ((ch = (php_curl*)zend_fetch_resource(Z_RES_P(zid), le_curl_name, ...
PHP_FUNCTION(curl_unescape) { char *str = NULL, *out = NULL; size_t str_len = 0; int out_len; zval *zid; php_curl *ch; if (zend_parse_parameters(ZEND_NUM_ARGS(), "rs", &zid, &str, &str_len) == FAILURE) { return; } if ((ch = (php_curl*)zend_fetch_resource(Z_RES_P(zid), le_curl_name, ...
CVE-2016-7134
CWE-119
ext/curl/interface.c in PHP 7.x before 7.0.10 does not work around a libcurl integer overflow, which allows remote attackers to cause a denial of service (allocation error and heap-based buffer overflow) or possibly have unspecified other impact via a long string that is mishandled in a curl_escape call.
https://github.com/php/php-src/commit/72dbb7f416160f490c4e9987040989a10ad431c7
Fix bug #72674 - check both curl_escape and curl_unescape
interface.c
c
2016-08-03T07:58:55Z
static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock_iocb *siocb = kiocb_to_siocb(kiocb); struct sock *sk = sock->sk; struct netlink_sock *nlk = nlk_sk(sk); struct sockaddr_nl *addr = msg->msg_name; u32 dst_pid; u32 dst_group; struct sk_buff *sk...
static int netlink_sendmsg(struct kiocb *kiocb, struct socket *sock, struct msghdr *msg, size_t len) { struct sock_iocb *siocb = kiocb_to_siocb(kiocb); struct sock *sk = sock->sk; struct netlink_sock *nlk = nlk_sk(sk); struct sockaddr_nl *addr = msg->msg_name; u32 dst_pid; u32 dst_group; struct sk_buff *sk...
CVE-2012-6689
CWE-284
The netlink_sendmsg function in net/netlink/af_netlink.c in the Linux kernel before 3.5.5 does not validate the dst_pid field, which allows local users to have an unspecified impact by spoofing Netlink messages.
https://github.com/torvalds/linux/commit/20e1db19db5d6b9e4e83021595eab0dc8f107bef
netlink: fix possible spoofing from non-root processes Non-root user-space processes can send Netlink messages to other processes that are well-known for being subscribed to Netlink asynchronous notifications. This allows ilegitimate non-root process to send forged messages to Netlink subscribers. The userspace proce...
af_netlink.c
c
2012-08-23T02:09:11Z
static void youngcollection (lua_State *L, global_State *g) { GCObject **psurvival; /* to point to first non-dead survival object */ lua_assert(g->gcstate == GCSpropagate); markold(g, g->allgc, g->reallyold); markold(g, g->finobj, g->finobjrold); atomic(L); /* sweep nursery and get a pointer to its last l...
static void youngcollection (lua_State *L, global_State *g) { GCObject **psurvival; /* to point to first non-dead survival object */ lua_assert(g->gcstate == GCSpropagate); markold(g, g->allgc, g->reallyold); markold(g, g->finobj, g->finobjrold); atomic(L); /* sweep nursery and get a pointer to its last l...
null
null
null
https://github.com/lua/lua/commit/a6da1472c0c5e05ff249325f979531ad51533110
Fixed bug: barriers cannot be active during sweep Barriers cannot be active during sweep, even in generational mode. (Although gen. mode is not incremental, it can hit a barrier when deleting a thread and closing its upvalues.) The colors of objects are being changed during sweep and, therefore, cannot be trusted.
lgc.c
c
2020-07-27T13:26:20Z
datetime_s_parse(int argc, VALUE *argv, VALUE klass) { VALUE str, comp, sg; rb_scan_args(argc, argv, "03", &str, &comp, &sg); switch (argc) { case 0: str = rb_str_new2("-4712-01-01T00:00:00+00:00"); case 1: comp = Qtrue; case 2: sg = INT2FIX(DEFAULT_SG); } { VALUE argv2[2], ...
datetime_s_parse(int argc, VALUE *argv, VALUE klass) { VALUE str, comp, sg, opt; rb_scan_args(argc, argv, "03:", &str, &comp, &sg, &opt); if (!NIL_P(opt)) argc--; switch (argc) { case 0: str = rb_str_new2("-4712-01-01T00:00:00+00:00"); case 1: comp = Qtrue; case 2: sg = INT2FIX(DE...
CVE-2021-41817
null
Date.parse in the date gem through 3.2.0 for Ruby allows ReDoS (regular expression Denial of Service) via a long string. The fixed versions are 3.2.1, 3.1.2, 3.0.2, and 2.0.1.
https://github.com/ruby/date/commit/3959accef8da5c128f8a8e2fd54e932a4fb253b0
Add length limit option for methods that parses date strings `Date.parse` now raises an ArgumentError when a given date string is longer than 128. You can configure the limit by giving `limit` keyword arguments like `Date.parse(str, limit: 1000)`. If you pass `limit: nil`, the limit is disabled. Not only `Date.parse`...
null
null
2021-11-12T03:15:25Z
MagickExport MagickBooleanType PersistPixelCache(Image *image, const char *filename,const MagickBooleanType attach,MagickOffsetType *offset, ExceptionInfo *exception) { CacheInfo *magick_restrict cache_info, *magick_restrict clone_info; Image *clone_image; MagickBooleanType status; ssize_...
MagickExport MagickBooleanType PersistPixelCache(Image *image, const char *filename,const MagickBooleanType attach,MagickOffsetType *offset, ExceptionInfo *exception) { CacheInfo *magick_restrict cache_info, *magick_restrict clone_info; MagickBooleanType status; ssize_t page_size; assert(...
null
null
null
https://github.com/ImageMagick/ImageMagick/commit/68ce166a7a7ee8576bb261c0ca291abe2f3d97bb
https://github.com/ImageMagick/ImageMagick/issues/563
MagickCore/cache.c
c
2017-07-26T12:24:55Z
public static int internalMethodParameterCount(String internalMethodDescriptor, boolean isStatic) { int counter = isStatic ? 0 : 1; int index = 1; while (true) { char c = internalMethodDescriptor.charAt(index++); ...
public static int internalMethodParameterCount(String internalMethodDescriptor, boolean isStatic) { int counter = isStatic ? 0 : 1; int index = 1; while (true) { char c = internalMethodDescriptor.charAt(index++); ...
null
null
null
https://github.com/Guardsquare/proguard-core/commit/c6d8746b06d8ab8bff55b6609eb700f2387778eb
Fix potential infinite loop in ClassUtil#internalMethodParameterCount Summary: When you forget an ending semicolon in a method descriptor, e.g. (Ljava/lang/String)V, the parameter count method previously just ended up in an infinite loop. This is now detected and prevented by throwing an exception. Test Plan: N/A
src/main/java/proguard/classfile/util/ClassUtil.java
java
2022-04-11T13:02:18Z
void onCopySplashScreenFinish(SplashScreenViewParcelable parcelable) { removeTransferSplashScreenTimeout(); // unable to copy from shell, maybe it's not a splash screen. or something went wrong. // either way, abort and reset the sequence. if (parcelable == null || mTrans...
void onCopySplashScreenFinish(SplashScreenViewParcelable parcelable) { removeTransferSplashScreenTimeout(); // unable to copy from shell, maybe it's not a splash screen. or something went wrong. // either way, abort and reset the sequence. if (parcelable == null || mTrans...
null
null
null
https://github.com/LineageOS/android_frameworks_base/commit/e062ca66367f6abc09be81ee0f59052a1bcd29a1
Fix launch app crash could stuck system ui render thread. Do not play reveal animation if the launching app is crashed. When requesting the reveal animation, the splash screen window will need to request traversal in system ui process, however, since the starting window will be removed from WM, the VRI#reportDrawFinis...
services/core/java/com/android/server/wm/ActivityRecord.java
java
2022-06-29T07:53:51Z
smartlist_choose_by_bandwidth(smartlist_t *sl, bandwidth_weight_rule_t rule, int statuses) { unsigned int i; routerinfo_t *router; routerstatus_t *status=NULL; int32_t *bandwidths; int is_exit; int is_guard; uint64_t total_nonexit_bw = 0, total_exit_bw = 0, total_bw = 0; ui...
smartlist_choose_by_bandwidth(smartlist_t *sl, bandwidth_weight_rule_t rule, int statuses) { unsigned int i; unsigned int i_chosen; unsigned int i_has_been_chosen; routerinfo_t *router; routerstatus_t *status=NULL; int32_t *bandwidths; int is_exit; int is_guard; uint64_t ...
CVE-2012-3517
CWE-399
Use-after-free vulnerability in dns.c in Tor before 0.2.2.38 might allow remote attackers to cause a denial of service (daemon crash) via vectors related to failed DNS requests.
https://gitweb.torproject.org/tor.git/commitdiff/308f6dad20675c42b29862f4269ad1fbfb00dc9a
Mitigate a side-channel leak of which relays Tor chooses for a circuit Tor's and OpenSSL's current design guarantee that there are other leaks, but this one is likely to be more easily exploitable, and is easy to fix.
null
null
null
static u32 fq_flow_idx(struct fq *fq, struct sk_buff *skb) { u32 hash = skb_get_hash_perturb(skb, fq->perturbation); return reciprocal_scale(hash, fq->flows_cnt); }
static u32 fq_flow_idx(struct fq *fq, struct sk_buff *skb) { u32 hash = skb_get_hash_perturb(skb, &fq->perturbation); return reciprocal_scale(hash, fq->flows_cnt); }
CVE-2019-18282
CWE-330
The flow_dissector feature in the Linux kernel 4.3 through 5.x before 5.3.10 has a device tracking vulnerability, aka CID-55667441c84f. This occurs because the auto flowlabel of a UDP IPv6 packet relies on a 32-bit hashrnd value as a secret, and because jhash (instead of siphash) is used. The hashrnd value remains the ...
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=55667441c84fa5e0911a0aac44fb059c15ba6da2
net/flow_dissector: switch to siphash UDP IPv6 packets auto flowlabels are using a 32bit secret (static u32 hashrnd in net/core/flow_dissector.c) and apply jhash() over fields known by the receivers. Attackers can easily infer the 32bit secret and use this information to identify a device and/or user, since this 32bi...
null
null
null
def _on_face_menuitem_activated(self, menuitem, path): if os.path.exists(path): model, treeiter = self.users_treeview.get_selection().get_selected() if treeiter != None: user = model[treeiter][INDEX_USER_OBJECT] user.set_icon_file(path) sel...
def _on_face_menuitem_activated(self, menuitem, path): if os.path.exists(path): model, treeiter = self.users_treeview.get_selection().get_selected() if treeiter != None: user = model[treeiter][INDEX_USER_OBJECT] user.set_icon_file(path) sel...
null
null
null
https://github.com/linuxmint/Cinnamon/commit/928ecc461a665c336bf029f187b3516f540fdfe5
cinnamon-settings-users.py: fix symlink attack vulnerability This script runs as root and allows to configure e.g. other user's icon files. These icon files are written to the respective user's $HOME/.face location. If an unprivileged user prepares a symlink pointing to an arbitrary location then this location will be...
files/usr/share/cinnamon/cinnamon-settings-users/cinnamon-settings-users.py
py
2018-06-28T12:32:50Z
public static void light(float x, float y, TextureRegion region, Color color, float opacity){ renderer.lights.add(x, y, region, color, opacity); }
public static void light(float x, float y, TextureRegion region, Color color, float opacity){ if(renderer == null) return; renderer.lights.add(x, y, region, color, opacity); }
null
null
null
https://github.com/Anuken/Mindustry/commit/debf940973b7d37acbd71ebd05cfddb3b36f6b3b
Fixed preview render crash
core/src/mindustry/graphics/Drawf.java
java
2022-05-11T13:39:43Z
static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) { char drc_name[MAX_DRC_NAME_LEN]; char *end; int rc; if (nbytes >= MAX_DRC_NAME_LEN) return 0; memcpy(drc_name, buf, nbytes); end = strchr(drc_name, '\n'); if (!end) end = &drc_name[n...
static ssize_t add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) { char drc_name[MAX_DRC_NAME_LEN]; char *end; int rc; if (nbytes >= MAX_DRC_NAME_LEN) return 0; strscpy(drc_name, buf, nbytes + 1); end = strchr(drc_name, '\n'); if (end) *end = '\0'; ...
CVE-2021-28972
CWE-120
In drivers/pci/hotplug/rpadlpar_sysfs.c in the Linux kernel through 5.11.8, the RPA PCI Hotplug driver has a user-tolerable buffer overflow when writing a new device name to the driver from userspace, allowing userspace to write data to the kernel stack frame directly. This occurs because add_slot_store and remove_slot...
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=cc7a0bb058b85ea03db87169c60c7cfdd5d34678
PCI: rpadlpar: Fix potential drc_name corruption in store functions Both add_slot_store() and remove_slot_store() try to fix up the drc_name copied from the store buffer by placing a NUL terminator at nbyte + 1 or in place of a '\n' if present. However, the static buffer that we copy the drc_name data into is not zero...
rpadlpar_sysfs.c
c
null
static zval *phar_rename_archive(phar_archive_data *phar, char *ext, zend_bool compress TSRMLS_DC) /* {{{ */ { const char *oldname = NULL; char *oldpath = NULL; char *basename = NULL, *basepath = NULL; char *newname = NULL, *newpath = NULL; zval *ret, arg1; zend_class_entry *ce; char *error; const char *pcr_err...
static zval *phar_rename_archive(phar_archive_data *phar, char *ext, zend_bool compress TSRMLS_DC) /* {{{ */ { const char *oldname = NULL; char *oldpath = NULL; char *basename = NULL, *basepath = NULL; char *newname = NULL, *newpath = NULL; zval *ret, arg1; zend_class_entry *ce; char *error; const char *pcr_err...
CVE-2015-2301
CWE-416
Use-after-free vulnerability in the phar_rename_archive function in phar_object.c in PHP before 5.5.22 and 5.6.x before 5.6.6 allows remote attackers to cause a denial of service or possibly have unspecified other impact via vectors that trigger an attempted renaming of a Phar archive to the name of an existing file.
http://git.php.net/?p=php-src.git;a=commit;h=b2cf3f064b8f5efef89bb084521b61318c71781b
Fixed bug #68901 (use after free)
phar_object.c
c
null
func writeError(resp http.ResponseWriter, err error, code int) { resp.WriteHeader(code) _, _ = resp.Write([]byte(fmt.Sprintf("Error: %v", err))) }
func writeError(resp http.ResponseWriter, err error, code int) { resp.WriteHeader(code) _, _ = resp.Write([]byte(html.EscapeString(fmt.Sprintf("Error: %v", err)))) }
null
cwe-079
null
github.com/mbrt/gmailctl/commit/563a9e3605d722e32dedd2e93f38da655338b39a
Sanitize error before writing html response. This has no real potential for XSS, as the serve runs on localhost, but better safe than sorry.
oauth2_server.go
go
2022-05-01T15:17:27Z
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen) { struct sock *sk = sock->sk; struct net *net = sock_net(sk); struct tipc_sock *tsk = tipc_sk(sk); struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); struct list_head...
static int __tipc_sendmsg(struct socket *sock, struct msghdr *m, size_t dlen) { struct sock *sk = sock->sk; struct net *net = sock_net(sk); struct tipc_sock *tsk = tipc_sk(sk); struct tipc_uaddr *ua = (struct tipc_uaddr *)m->msg_name; long timeout = sock_sndtimeo(sk, m->msg_flags & MSG_DONTWAIT); struct list_head...
CVE-2022-0382
CWE-200
An information leak flaw was found due to uninitialized memory in the Linux kernel's TIPC protocol subsystem, in the way a user sends a TIPC datagram to one or more destinations. This flaw allows a local user to read some kernel memory. This issue is limited to no more than 7 bytes, and the user cannot control what is ...
https://github.com/torvalds/linux/commit/d6d86830705f173fca6087a3e67ceaf68db80523
net ticp:fix a kernel-infoleak in __tipc_sendmsg() struct tipc_socket_addr.ref has a 4-byte hole,and __tipc_getname() currently copying it to user space,causing kernel-infoleak. BUG: KMSAN: kernel-infoleak in instrument_copy_to_user include/linux/instrumented.h:121 [inline] BUG: KMSAN: kernel-infoleak in instrument_c...
socket.c
c
2021-12-31T02:35:23Z
def parse_profile(name, contents): if name.endswith('.yaml'): # this was a full path name = os.path.splitext(os.path.basename(name))[0] data = yaml.load(contents) if data is None: # this happens if a completely empty YAML file is passed in to # parse_profile, for example ...
def parse_profile(name, contents): if name.endswith('.yaml'): # this was a full path name = os.path.splitext(os.path.basename(name))[0] data = yaml.safe_load(contents) if data is None: # this happens if a completely empty YAML file is passed in to # parse_profile, for example...
null
cwe-502
null
github.com/pahaz/prospector/commit/498b9e6eca9ac01eb6cb5195faed01c79eea7d10
Updating to use yaml.safe_load for profiles (just in case)
profile.py
py
2014-02-26T17:27:29Z
private void init() { Intent intent = getIntent(); String pkgName; if (intent != null) { if ("freezeyou".equals(intent.getScheme())) { Uri dataUri = intent.getData(); if (dataUri != null) { String action = dataUri.getQueryParameter(...
private void init() { Intent intent = getIntent(); if (intent != null) { if ("freezeyou".equals(intent.getScheme())) { Uri dataUri = intent.getData(); if (dataUri != null) { String action = "", pkgName = ""; try { ...
null
null
null
https://github.com/FreezeYou/FreezeYou/commit/7c30394043655791e38875398406f5fea36bdba0
Fix some crash issues. * LauncherShortcutUtils.kt: Fix the crash when `title` is empty(length == 0). * MyNotificationListenerService: Try to fix the crash `Disallowed call from unknown notification listener`. * UriFreezeActivity: Fix the crash when the key `action` or `pkgName` is not contained in the `Query Parameters...
app/src/main/java/cf/playhi/freezeyou/UriFreezeActivity.java
java
2022-01-28T14:11:43Z
static boolean jpeg_empty_output_buffer(j_compress_ptr cinfo) { VncState *vs = cinfo->client_data; Buffer *buffer = &vs->tight.jpeg; buffer->offset = buffer->capacity; buffer_reserve(buffer, 2048); jpeg_init_destination(cinfo); return TRUE; }
static boolean jpeg_empty_output_buffer(j_compress_ptr cinfo) { VncState *vs = cinfo->client_data; Buffer *buffer = &vs->tight->jpeg; buffer->offset = buffer->capacity; buffer_reserve(buffer, 2048); jpeg_init_destination(cinfo); return TRUE; }
CVE-2019-20382
CWE-401
QEMU 4.1.0 has a memory leak in zrle_compress_data in ui/vnc-enc-zrle.c during a VNC disconnect operation because libz is misused, resulting in a situation where memory allocated in deflateInit2 is not freed in deflateEnd.
https://git.qemu.org/?p=qemu.git;a=commitdiff;h=6bf21f3d83e95bcc4ba35a7a07cc6655e8b010b0
vnc: fix memory leak when vnc disconnect Currently when qemu receives a vnc connect, it creates a 'VncState' to represent this connection. In 'vnc_worker_thread_loop' it creates a local 'VncState'. The connection 'VcnState' and local 'VncState' exchange data in 'vnc_async_encoding_start' and 'vnc_async_encoding_end'. ...
null
null
null
void processTnef (TNEFStruct *tnef, const gchar *tmpdir) { variableLength *filename; variableLength *filedata; Attachment *p; gint RealAttachment; gint object; gchar ifilename[256]; gint i, count; gint foundCal=0; FILE *fptr; /* First see if this requires special processing. */...
void processTnef (TNEFStruct *tnef, const gchar *tmpdir) { variableLength *filename; variableLength *filedata; Attachment *p; gint RealAttachment; gint object; gchar *ifilename = NULL; gchar *absfilename, *file; gint count; gint foundCal=0; FILE *fptr; /* First see if this ...
null
null
null
null
bug #641069 - tnef plugin vulnerabilities Resolves directory traversal and buffer overflow vulnerabilities.
null
null
null
e_ews_connection_get_oal_list (EEwsConnection *cnc, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { GSimpleAsyncResult *simple; SoupMessage *soup_message; struct _oal_req_data *data; GError *e...
e_ews_connection_get_oal_list (EEwsConnection *cnc, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data) { GSimpleAsyncResult *simple; SoupMessage *soup_message; struct _oal_req_data *data; GError *e...
CVE-2019-3890
CWE-295
It was discovered evolution-ews before 3.31.3 does not check the validity of SSL certificates. An attacker could abuse this flaw to get confidential information by tricking the user into connecting to a fake server without the user noticing the difference.
https://gitlab.gnome.org/GNOME/evolution-ews/commit/915226eca9454b8b3e5adb6f2fff9698451778de
I#27 - SSL Certificates are not validated This depends on https://gitlab.gnome.org/GNOME/evolution-data-server/commit/6672b8236139bd6ef41ecb915f4c72e2a052dba5 too. Closes https://gitlab.gnome.org/GNOME/evolution-ews/issues/27
null
null
2018-12-05T09:37:07Z
public boolean isSealed() { int version = Integer.parseInt(System.getProperty("java.version").replaceAll("[.-].*", "")); if (version >= 17) { try { Class<?> clazz = Util.classForName("java.lang.Class"); Method isSealed = clazz.getDeclaredMethod("isSealed"); ...
public boolean isSealed() { return ClassAccessor.isSealed(type); }
null
null
null
https://github.com/jqno/equalsverifier/commit/35a93e46059c5b14216e24f03d4c3b1a420e119c
Bypasses sealed classes to avoid crash
src/main/java/nl/jqno/equalsverifier/internal/reflection/ClassAccessor.java
java
2022-01-25T08:36:36Z
static int pnm_decode_header(AVCodecContext *avctx, PNMContext * const s){ char buf1[32], tuple_type[32]; int h, w, depth, maxval;; pnm_get(s, buf1, sizeof(buf1)); if (!strcmp(buf1, "P4")) { avctx->pix_fmt = PIX_FMT_MONOWHITE; } else if (!strcmp(buf1, "P5")) { if (avctx->codec_id == ...
static int pnm_decode_header(AVCodecContext *avctx, PNMContext * const s){ char buf1[32], tuple_type[32]; int h, w, depth, maxval;; pnm_get(s, buf1, sizeof(buf1)); if (!strcmp(buf1, "P4")) { avctx->pix_fmt = PIX_FMT_MONOWHITE; } else if (!strcmp(buf1, "P5")) { if (avctx->codec_id == ...
null
null
null
FFmpeg/commit/0ecca7a49f8e254c12a3a1de048d738bfbb614c6
various security fixes and precautionary checks Originally committed as revision 3822 to svn://svn.ffmpeg.org/ffmpeg/trunk
./ffmpeg/libavcodec/pnm.c
c
2005-01-12T00:16:25Z
def find(uuid, options = {}) if uuid.nil? || uuid.to_s.empty? raise NotFound, "can't find a record with nil identifier" end uri = uuid =~ /^http/ ? uuid : member_path(uuid) begin from_response API.get(uri, {}, options) rescue API::NotFound => e rais...
def find(uuid, options = {}) if uuid.nil? || uuid.to_s.empty? raise NotFound, "can't find a record with nil identifier" end begin from_response API.get(member_path(uuid), {}, options) rescue API::NotFound => e raise NotFound, e.description end ...
CVE-2017-0905
CWE-918,CWE-918
The Recurly Client Ruby Library before 2.0.13, 2.1.11, 2.2.5, 2.3.10, 2.4.11, 2.5.4, 2.6.3, 2.7.8, 2.8.2, 2.9.2, 2.10.4, 2.11.3 is vulnerable to a Server-Side Request Forgery vulnerability in the "Resource#find" method that could result in compromise of API keys or other critical resources.
https://github.com/recurly/recurly-client-ruby/commit/1bb0284d6e668b8b3d31167790ed6db1f6ccc4be
Fix SSRF vulnerability in Resource#find
resource.rb
rb
2017-11-13T17:29:00Z
async exec (args) { if (args.length === 0) { args = ['.'] } const unicode = this.npm.config.get('unicode') const json = this.npm.config.get('json') // Get the manifests and filenames first so we can bail early on manifest // errors before making any tarballs const manifests = [] ...
async exec (args) { if (args.length === 0) { args = ['.'] } const unicode = this.npm.config.get('unicode') const json = this.npm.config.get('json') // Get the manifests and filenames first so we can bail early on manifest // errors before making any tarballs const manifests = [] ...
CVE-2022-29244
CWE-200,NVD-CWE-noinfo
npm pack ignores root-level .gitignore and .npmignore file exclusion directives when run in a workspace or with a workspace flag (ie. `--workspaces`, `--workspace=<name>`). Anyone who has run `npm pack` or `npm publish` inside a workspace, as of v7.9.0 and v7.13.0 respectively, may be affected and have published files ...
https://github.com/nodejs/node/commit/ebd4e9c165627e473cf043d2fafbc9862d11dae2
deps: upgrade npm to 8.11.0
deps/npm/lib/commands/pack.js
js
2022-05-25T21:26:36Z
static void xbr3x(AVFrame *input, AVFrame *output, const uint32_t *r2y) { const int nl = output->linesize[0]>>2; const int nl1 = nl + nl; uint32_t pprev; uint32_t pprev2; int x,y; for (y = 0; y < input->height; y++) { uint32_t * E = (uint32_t *)(output->data[0] + y * output->linesize[0] ...
static void xbr3x(AVFrame *input, AVFrame *output, const uint32_t *r2y) { const int nl = output->linesize[0]>>2; const int nl1 = nl + nl; int x,y; for (y = 0; y < input->height; y++) { uint32_t * E = (uint32_t *)(output->data[0] + y * output->linesize[0] * 3); uint32_t * sa2 = (...
null
null
null
FFmpeg/commit/e0704840404381c7b976a35db4004deca4495a22
avfilter/xbr: simplify width overread checks
./ffmpeg/libavfilter/vf_xbr.c
c
2014-11-13T20:20:52Z
static void set_seg(struct kvm_segment *lhs, const SegmentCache *rhs) { unsigned flags = rhs->flags; lhs->selector = rhs->selector; lhs->base = rhs->base; lhs->limit = rhs->limit; lhs->type = (flags >> DESC_TYPE_SHIFT) & 15; lhs->present = (flags & DESC_P_MASK) != 0; lhs->dpl = rhs->selector...
static void set_seg(struct kvm_segment *lhs, const SegmentCache *rhs) { unsigned flags = rhs->flags; lhs->selector = rhs->selector; lhs->base = rhs->base; lhs->limit = rhs->limit; lhs->type = (flags >> DESC_TYPE_SHIFT) & 15; lhs->present = (flags & DESC_P_MASK) != 0; lhs->dpl = (flags >> DES...
null
null
null
qemu/commit/acaa75507b34f7b588924a09c76c6848d209e08c
kvm: x86: Fix DPL write back of segment registers The DPL is stored in the flags and not in the selector. In fact, the RPL may differ from the DPL at some point in time, and so we were corrupting the guest state so far. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Avi Kivity <avi@redhat.com>
./qemu/target-i386/kvm.c
c
2010-12-27T14:56:44Z
int ipfilter(struct pico_frame *f) { struct filter_node temp; struct pico_ipv4_hdr *ipv4_hdr = (struct pico_ipv4_hdr *) f->net_hdr; struct pico_trans *trans; struct pico_icmp4_hdr *icmp_hdr; memset(&temp, 0u, sizeof(struct filter_node)); temp.fdev = f->dev; temp.out_addr = ipv4_hdr->dst.ad...
int ipfilter(struct pico_frame *f) { struct filter_node temp; struct pico_ipv4_hdr *ipv4_hdr = (struct pico_ipv4_hdr *) f->net_hdr; struct pico_trans *trans; struct pico_icmp4_hdr *icmp_hdr; memset(&temp, 0u, sizeof(struct filter_node)); temp.fdev = f->dev; temp.out_addr = ipv4_hdr->dst.ad...
null
null
null
https://github.com/virtualsquare/picotcp/commit/d561990a358899178115e156871cc054a1c55ffe
[ipfilter] Check transport layer length in frame before filtering ports Reported-by: "P. Amsuo, Purdue University"
modules/pico_ipfilter.c
c
2023-05-12T20:24:23Z
OMX_ERRORTYPE SoftAVCEncoder::internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) { int32_t indexFull = index; switch (indexFull) { case OMX_IndexParamVideoBitrate: { OMX_VIDEO_PARAM_BITRATETYPE *bitRate = (OMX_VIDEO_PARAM_BITRATETYPE *) params; if...
OMX_ERRORTYPE SoftAVCEncoder::internalSetParameter( OMX_INDEXTYPE index, const OMX_PTR params) { int32_t indexFull = index; switch (indexFull) { case OMX_IndexParamVideoBitrate: { OMX_VIDEO_PARAM_BITRATETYPE *bitRate = (OMX_VIDEO_PARAM_BITRATETYPE *) params; if ...
CVE-2016-2476
CWE-119
mediaserver in Android 4.x before 4.4.4, 5.0.x before 5.0.2, 5.1.x before 5.1.1, and 6.x before 2016-06-01 does not validate OMX buffer sizes, which allows attackers to gain privileges via a crafted application, as demonstrated by obtaining Signature or SignatureOrSystem access, aka internal bug 27207275.
https://android.googlesource.com/platform/frameworks/av/+/295c883fe3105b19bcd0f9e07d54c6b589fc5bff
DO NOT MERGE Verify OMX buffer sizes prior to access Bug: 27207275 Change-Id: I4412825d1ee233d993af0a67708bea54304ff62d
media/libstagefright/codecs/avc/enc/SoftAVCEncoder.cpp
cpp
null
static void reschedule_dma(void *opaque) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(opaque, 0); }
static void reschedule_dma(void *opaque) { DMAAIOCB *dbs = (DMAAIOCB *)opaque; qemu_bh_delete(dbs->bh); dbs->bh = NULL; dma_bdrv_cb(dbs, 0); }
null
null
null
qemu/commit/c3adb5b9168a57790b5074489b6f0275ac3cc8b5
dma-helpers: rewrite completion/cancellation This fixes various problems with completion/cancellation: * if the io_func fails to get an AIOCB, the callback wasn't called * If DMA encounters a bounce buffer conflict, and the DMA operation is canceled before the bottom half fires, bad things happen. * memory is not u...
./qemu/dma-helpers.c
c
2011-09-16T14:40:02Z
@Override public ConfigData returnData() { // TODO Auto-generated method stub return null; }
@Override public ConfigData returnData() { return data; }
null
null
null
https://github.com/ForgeEssentials/ForgeEssentials/commit/8e54e59ea68307ca2c91e5b7e0328476ac6775bc
Ported Backup module config Fixed the Auth module having the wrong config path
src/main/java/com/forgeessentials/backup/ModuleBackup.java
java
2023-02-14T19:34:20Z
public static UrlId from(String str) { for (UrlId urlId : values()) { if (urlId.getId().equals(str)) { return urlId; } } throw new IllegalArgumentException("No known enum for UrlId: " + str); }
public static Optional<UrlId> from(String str) { for (UrlId urlId : values()) { if (urlId.getId().equals(str)) { return Optional.of(urlId); } } // We have not found an enum for this key. // Don't consider this fatal, the user may have an outdated,...
null
null
null
https://github.com/Wynntils/Artemis/commit/51a662c91679f7cdc51ef49030d97a4ac61f45ea
feat: individual nametag line scaling (#1022)
common/src/main/java/com/wynntils/core/net/UrlId.java
java
2023-01-12T22:22:38Z
static int nci_close_device(struct nci_dev *ndev) { nci_req_cancel(ndev, ENODEV); mutex_lock(&ndev->req_lock); if (!test_and_clear_bit(NCI_UP, &ndev->flags)) { del_timer_sync(&ndev->cmd_timer); del_timer_sync(&ndev->data_timer); mutex_unlock(&ndev->req_lock); return 0; } /* Drop RX and TX queues */ skb_...
static int nci_close_device(struct nci_dev *ndev) { nci_req_cancel(ndev, ENODEV); /* This mutex needs to be held as a barrier for * caller nci_unregister_device */ mutex_lock(&ndev->req_lock); if (!test_and_clear_bit(NCI_UP, &ndev->flags)) { del_timer_sync(&ndev->cmd_timer); del_timer_sync(&ndev->data_tim...
null
null
null
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=48b71a9e66c2eab60564b1b1c85f4928ed04e406
NFC: add NCI_UNREG flag to eliminate the race There are two sites that calls queue_work() after the destroy_workqueue() and lead to possible UAF. The first site is nci_send_cmd(), which can happen after the nci_close_device as below nfcmrvl_nci_unregister_dev | nfc_genl_dev_up nci_close_device | f...
null
null
null
static int mp3info(void *data, int *byteSize, int *samplesPerFrame, int *sampleRate, int *isMono ) { uint8_t *dataTmp = (uint8_t *)data; uint32_t header = ( (uint32_t)dataTmp[0] << 24 ) | ( (uint32_t)dataTmp[1] << 16 ) | ( (uint32_t)dataTmp[2] << 8 ) | (uint32_t)dataTmp[3]; int layerID = 3 - ((header >> 17)...
static int mp3info(void *data, int *byteSize, int *samplesPerFrame, int *sampleRate, int *isMono ) { uint8_t *dataTmp = (uint8_t *)data; uint32_t header = ( (uint32_t)dataTmp[0] << 24 ) | ( (uint32_t)dataTmp[1] << 16 ) | ( (uint32_t)dataTmp[2] << 8 ) | (uint32_t)dataTmp[3]; int layerID = 3 - ((header >> 17)...
null
null
null
FFmpeg/commit/747a0554ea8ad09404c1f5b80239ebd8d71b291e
- made --extra-cflags option work on darwin - allow INTER4V macroblocks for FLV1 codec - fixed issue in flv file format saving 8 mp3 frames per packet instead of 1 - fixed crasher in flv file format involving mp3 buffer handling - added FLV1 codec support for swf file format (FlashPlayer6 or above required) and made it...
./ffmpeg/libavformat/flvenc.c
c
2004-02-06T23:56:37Z
public void install( String displayName, String description, String[] dependencies, String account, String password, String config) throws URISyntaxException { String javaHome = System.getProperty("java.home"); String javaBinary = javaHome + "\\bin\\java.exe"; File jar ...
public void install( String displayName, String description, String[] dependencies, String account, String password, String config) throws URISyntaxException { String javaHome = System.getProperty("java.home"); String javaBinary = "\"" + javaHome + "\\bin\\java.exe\""; ...
CVE-2021-21292
CWE-428
Traccar is an open source GPS tracking system. In Traccar before version 4.12 there is an unquoted Windows binary path vulnerability. Only Windows versions are impacted. Attacker needs write access to the filesystem on the host machine. If Java path includes a space, then attacker can lift their privilege to the same a...
https://github.com/traccar/traccar/commit/cc69a9907ac9878db3750aa14ffedb28626455da
Quote binary path
WindowsService.java
java
2021-02-02T20:15:00Z
$variable[$key] = self::filter($val); } } else { // Prevent XSS abuse $variable = preg_replace_callback('#</?([a-z]+)(\s.*)?/?>#i', function($matches) { $tag = strtolower($matches[1]); // Allowed tags if (in_array($tag, array( 'b', 'strong', 'small', 'i', 'em', 'u', 's', 'sub', 'sup', 'a', ...
protected function filter($tokens, $config, $context) { return $tokens; }
CVE-2018-11512
CWE-79
Stored cross-site scripting (XSS) vulnerability in the "Website's name" field found in the "Settings" page under the "General" menu in Creatiwity wityCMS 0.6.1 allows remote attackers to inject arbitrary web script or HTML via a crafted website name by doing an authenticated POST HTTP request to admin/settings/general.
https://github.com/Creatiwity/wityCMS/commit/7967e5bf15b4d2ee6b85b56e82d7e1229147de44
#146 - Uses HTML purifier and htmlspecialchars in search app
WRequest.php
php
2018-05-28T13:29:00Z
mesalink_connect_step3(struct connectdata *conn, int sockindex) { CURLcode result = CURLE_OK; struct ssl_connect_data *connssl = &conn->ssl[sockindex]; DEBUGASSERT(ssl_connect_3 == connssl->connecting_state); #ifdef MESALINK_HAVE_SESSION if(SSL_SET_OPTION(primary.sessionid)) { bool incache; SSL_SESSIO...
mesalink_connect_step3(struct connectdata *conn, int sockindex) { CURLcode result = CURLE_OK; struct ssl_connect_data *connssl = &conn->ssl[sockindex]; DEBUGASSERT(ssl_connect_3 == connssl->connecting_state); #ifdef MESALINK_HAVE_SESSION if(SSL_SET_OPTION(primary.sessionid)) { bool incache; SSL_SESSIO...
CVE-2021-22890
CWE-290
curl 7.63.0 to and including 7.75.0 includes vulnerability that allows a malicious HTTPS proxy to MITM a connection due to bad handling of TLS 1.3 session tickets. When using a HTTPS proxy and TLS 1.3, libcurl can confuse session tickets arriving from the HTTPS proxy but work as if they arrived from the remote server a...
https://github.com/curl/curl/commit/b09c8ee15771c614c4bf3ddac893cdb12187c844
vtls: add 'isproxy' argument to Curl_ssl_get/addsessionid() To make sure we set and extract the correct session. Reported-by: Mingtao Yang Bug: https://curl.se/docs/CVE-2021-22890.html CVE-2021-22890
null
null
2021-03-19T11:38:49Z
static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception) { typedef struct _TIMInfo { size_t id, flag; } TIMInfo; TIMInfo tim_info; Image *image; int bits_per_pixel, has_clut; MagickBooleanType status; register IndexPacket *indexes; ...
static Image *ReadTIMImage(const ImageInfo *image_info,ExceptionInfo *exception) { typedef struct _TIMInfo { size_t id, flag; } TIMInfo; TIMInfo tim_info; Image *image; int bits_per_pixel, has_clut; MagickBooleanType status; register IndexPacket *indexes; ...
CVE-2016-10066
CWE-120
Buffer overflow in the ReadVIFFImage function in coders/viff.c in ImageMagick before 6.9.4-5 allows remote attackers to cause a denial of service (application crash) via a crafted file.
https://github.com/ImageMagick/ImageMagick/commit/f6e9d0d9955e85bdd7540b251cd50d598dacc5e6
null
coders/tim.c
c
null
void Compute(OpKernelContext* context) override { const Tensor& diagonal = context->input(0); // MatrixDiag and MatrixDiagV2 both use this OpKernel. MatrixDiag only has // one input, so we have to check the number of inputs before reading // additional parameters in MatrixDiagV2. int32 lower_diag_i...
void Compute(OpKernelContext* context) override { const Tensor& input = context->input(0); // MatrixDiagPart and MatrixDiagPartV2 both use this OpKernel. // MatrixDiagPart only has one input, so we have to check the number of // inputs before reading additional parameters in MatrixDiagV2. int32 low...
null
CWE-476, CWE-190
null
https://github.com/tensorflow/tensorflow/commit/a7116dd3913c4a4afd2a3a938573aa7c785fdfc6
Validate `MatrixDiagV{2,3}` arguments to prevent breakage. PiperOrigin-RevId: 369056033 Change-Id: Ic2018c297d3dd6f252dc1dd3667f1ed5cb1eaa42
null
null
2021-04-18T03:55:53Z
static void scsi_write_same_complete(void *opaque, int ret) { WriteSameCBData *data = opaque; SCSIDiskReq *r = data->r; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); assert(r->req.aiocb != NULL); r->req.aiocb = NULL; aio_context_acquire(blk_get_aio_context(s->qdev.conf.blk)); ...
static void scsi_write_same_complete(void *opaque, int ret) { WriteSameCBData *data = opaque; SCSIDiskReq *r = data->r; SCSIDiskState *s = DO_UPCAST(SCSIDiskState, qdev, r->req.dev); assert(r->req.aiocb != NULL); r->req.aiocb = NULL; aio_context_acquire(blk_get_aio_context(s->qdev.conf.blk)); ...
null
null
null
qemu/commit/24355b79bdaf6ab12f7c610b032fc35ec045cd55
scsi-disk: release AioContext in unaligned WRITE SAME case scsi_write_same_complete() can retry the write if the request was unaligned. Make sure to release the AioContext when that code path is taken! This patch fixes a hang when QEMU terminates after an unaligned WRITE SAME request has been processed with dataplan...
./qemu/hw/scsi/scsi-disk.c
c
2018-01-04T14:25:02Z
static void vnc_dpy_update(DisplayChangeListener *dcl, int x, int y, int w, int h) { VncDisplay *vd = container_of(dcl, VncDisplay, dcl); struct VncSurface *s = &vd->guest; int width = surface_width(vd->ds); int height = surface_height(vd->ds); /* this is needed this to e...
static void vnc_dpy_update(DisplayChangeListener *dcl, int x, int y, int w, int h) { VncDisplay *vd = container_of(dcl, VncDisplay, dcl); struct VncSurface *s = &vd->guest; int width = pixman_image_get_width(vd->server); int height = pixman_image_get_height(vd->server); v...
null
CWE-125
null
null
ui/vnc: fix potential memory corruption issues this patch makes the VNC server work correctly if the server surface and the guest surface have different sizes. Basically the server surface is adjusted to not exceed VNC_MAX_WIDTH x VNC_MAX_HEIGHT and additionally the width is rounded up to multiple of VNC_DIRTY_PIXELS...
null
null
null
void AuthorizationSession::_refreshUserInfoAsNeeded(OperationContext* txn) { AuthorizationManager& authMan = getAuthorizationManager(); UserSet::iterator it = _authenticatedUsers.begin(); while (it != _authenticatedUsers.end()) { User* user = *it; if (!user->isValid()) { // Make...
void AuthorizationSession::_refreshUserInfoAsNeeded(OperationContext* txn) { AuthorizationManager& authMan = getAuthorizationManager(); UserSet::iterator it = _authenticatedUsers.begin(); while (it != _authenticatedUsers.end()) { User* user = *it; if (!user->isValid()) { // Make...
CVE-2019-2386
CWE-613
After user deletion in MongoDB Server the improper invalidation of authorization sessions allows an authenticated user's session to persist and become conflated with new accounts, if those accounts reuse the names of deleted ones. This issue affects MongoDB Server v4.0 versions prior to 4.0.9; MongoDB Server v3.6 versi...
https://github.com/mongodb/mongo/commit/64d8e9e1b12d16b54d6a592bae8110226c491b4e
SERVER-38984 Validate unique User ID on UserCache hit (cherry picked from commit e55d6e2292e5dbe2f97153251d8193d1cc89f5d7)
null
null
2019-03-29T16:15:10Z
public static void clear() { if (widget instanceof PersistentRecipesWidget) { PolymorphApi.common().getPacketDistributor().sendBlockEntityListenerC2S(false); } widget = null; lastScreen = null; }
public static void clear() { if (widget instanceof PersistentRecipesWidget && Minecraft.getInstance().getConnection() != null) { PolymorphApi.common().getPacketDistributor().sendBlockEntityListenerC2S(false); } widget = null; lastScreen = null; }
null
null
null
https://github.com/illusivesoulworks/polymorph/commit/2581d3df6618a2a68b822a45925f84ade6a57208
Fixed network crash
common/src/main/java/com/illusivesoulworks/polymorph/client/recipe/RecipesWidget.java
java
2022-11-27T09:15:56Z
public Request buildRequest(String baseUrl, String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String[] authNames, ApiCallback callback) throws ApiExcepti...
public Request buildRequest(String baseUrl, String path, String method, List<Pair> queryParams, List<Pair> collectionQueryParams, Object body, Map<String, String> headerParams, Map<String, String> cookieParams, Map<String, Object> formParams, String[] authNames, ApiCallback callback) throws ApiExcepti...
null
null
null
https://github.com/lockss/lockss-daemon/commit/7d4a788550aba6f47c27e211d5fc95b55cd3489c
Fix loading of file when adding auth.
src/org/lockss/laaws/client/V2RestClient.java
java
2022-03-31T01:24:21Z
skip_string(char_u *p) { int i; // We loop, because strings may be concatenated: "date""time". for ( ; ; ++p) { if (p[0] == '\'') // 'c' or '\n' or '\000' { if (p[1] == NUL) // ' at end of line break; i = 2; if (p[1] == '\\' && p[2] != NUL) // '\n' or '\000' { ...
skip_string(char_u *p) { int i; // We loop, because strings may be concatenated: "date""time". for ( ; ; ++p) { if (p[0] == '\'') // 'c' or '\n' or '\000' { if (p[1] == NUL) // ' at end of line break; i = 2; if (p[1] == '\\' && p[2] != NUL) // '\n' or '\000' { ...
CVE-2022-1733
CWE-122,CWE-787
Heap-based Buffer Overflow in GitHub repository vim/vim prior to 8.2.4968.
https://github.com/vim/vim/commit/60ae0e71490c97f2871a6344aca61cacf220f813
patch 8.2.4968: reading past end of the line when C-indenting Problem: Reading past end of the line when C-indenting. Solution: Check for NUL.
cindent.c
c
2022-05-16T17:06:15Z
static void video_audio_display(VideoState *s) { int i, i_start, x, y1, y, ys, delay, n, nb_display_channels; int ch, channels, h, h2, bgcolor, fgcolor; int16_t time_diff; int rdft_bits, nb_freq; for (rdft_bits = 1; (1 << rdft_bits) < 2 * s->height; rdft_bits++) ; nb_freq = 1 << (rdft_bi...
static void video_audio_display(VideoState *s) { int i, i_start, x, y1, y, ys, delay, n, nb_display_channels; int ch, channels, h, h2, bgcolor, fgcolor; int64_t time_diff; int rdft_bits, nb_freq; for (rdft_bits = 1; (1 << rdft_bits) < 2 * s->height; rdft_bits++) ; nb_freq = 1 << (rdft_bi...
null
null
null
FFmpeg/commit/92b50b71a1e4e78fa2828dc2e0a4428674a8a9b0
ffplay: fix type of time_diff in waveform display Fixes time diff overflow visible as showing the same few waveforms in a loop at the end of file. Signed-off-by: Marton Balint <cus@passwd.hu>
./ffmpeg/ffplay.c
c
2012-12-25T23:26:59Z