CWE-190
AllowedInteger Overflow or Wraparound
Abstraction: Base · Status: Stable
The product performs a calculation that can produce an integer overflow or wraparound when the logic assumes that the resulting value will always be larger than the original value. This occurs when an integer value is incremented to a value that is too large to store in the associated representation. When this occurs, the value may become a very small or negative number.
3867 vulnerabilities reference this CWE, most recent first.
GHSA-8RH4-H2WX-5JPX
Vulnerability from github – Published: 2022-05-01 23:52 – Updated: 2025-04-09 03:55Multiple integer overflows in the rb_ary_store function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, and 1.8.7 before 1.8.7-p22 allow context-dependent attackers to execute arbitrary code or cause a denial of service via unknown vectors, a different issue than CVE-2008-2662, CVE-2008-2664, and CVE-2008-2725. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. The CVE description should be regarded as authoritative, although it is likely to change.
{
"affected": [],
"aliases": [
"CVE-2008-2663"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2008-06-24T19:41:00Z",
"severity": "HIGH"
},
"details": "Multiple integer overflows in the rb_ary_store function in Ruby 1.8.4 and earlier, 1.8.5 before 1.8.5-p231, 1.8.6 before 1.8.6-p230, and 1.8.7 before 1.8.7-p22 allow context-dependent attackers to execute arbitrary code or cause a denial of service via unknown vectors, a different issue than CVE-2008-2662, CVE-2008-2664, and CVE-2008-2725. NOTE: as of 20080624, there has been inconsistent usage of multiple CVE identifiers related to Ruby. The CVE description should be regarded as authoritative, although it is likely to change.",
"id": "GHSA-8rh4-h2wx-5jpx",
"modified": "2025-04-09T03:55:46Z",
"published": "2022-05-01T23:52:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2008-2663"
},
{
"type": "WEB",
"url": "https://exchange.xforce.ibmcloud.com/vulnerabilities/43346"
},
{
"type": "WEB",
"url": "https://issues.rpath.com/browse/RPL-2626"
},
{
"type": "WEB",
"url": "https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A10524"
},
{
"type": "WEB",
"url": "https://www.redhat.com/archives/fedora-package-announce/2008-June/msg00937.html"
},
{
"type": "WEB",
"url": "http://blog.phusion.nl/2008/06/23/ruby-186-p230187-broke-your-app-ruby-enterprise-edition-to-the-rescue"
},
{
"type": "WEB",
"url": "http://lists.apple.com/archives/security-announce/2008//Jun/msg00002.html"
},
{
"type": "WEB",
"url": "http://lists.opensuse.org/opensuse-security-announce/2008-08/msg00006.html"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30802"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30831"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30867"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30875"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/30894"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31062"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31090"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31181"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31256"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/31687"
},
{
"type": "WEB",
"url": "http://secunia.com/advisories/33178"
},
{
"type": "WEB",
"url": "http://security.gentoo.org/glsa/glsa-200812-17.xml"
},
{
"type": "WEB",
"url": "http://slackware.com/security/viewer.php?l=slackware-security\u0026y=2008\u0026m=slackware-security.429562"
},
{
"type": "WEB",
"url": "http://support.apple.com/kb/HT2163"
},
{
"type": "WEB",
"url": "http://weblog.rubyonrails.org/2008/6/21/multiple-ruby-security-vulnerabilities"
},
{
"type": "WEB",
"url": "http://wiki.rpath.com/wiki/Advisories:rPSA-2008-0206"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2008/dsa-1612"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2008/dsa-1618"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:140"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:141"
},
{
"type": "WEB",
"url": "http://www.mandriva.com/security/advisories?name=MDVSA-2008:142"
},
{
"type": "WEB",
"url": "http://www.matasano.com/log/1070/updates-on-drew-yaos-terrible-ruby-vulnerabilities"
},
{
"type": "WEB",
"url": "http://www.redhat.com/support/errata/RHSA-2008-0561.html"
},
{
"type": "WEB",
"url": "http://www.ruby-forum.com/topic/157034"
},
{
"type": "WEB",
"url": "http://www.ruby-lang.org/en/news/2008/06/20/arbitrary-code-execution-vulnerabilities"
},
{
"type": "WEB",
"url": "http://www.rubyinside.com/june-2008-ruby-security-vulnerabilities-927.html"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/archive/1/493688/100/0/threaded"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/29903"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id?1020347"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/usn-621-1"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/1907/references"
},
{
"type": "WEB",
"url": "http://www.vupen.com/english/advisories/2008/1981/references"
},
{
"type": "WEB",
"url": "http://www.zedshaw.com/rants/the_big_ruby_vulnerabilities.html"
}
],
"schema_version": "1.4.0",
"severity": []
}
GHSA-8RH8-M25J-RHMP
Vulnerability from github – Published: 2022-05-17 00:26 – Updated: 2022-05-17 00:26Artifex jbig2dec 0.13, as used in Ghostscript, allows out-of-bounds writes because of an integer overflow in the jbig2_build_huffman_table function in jbig2_huffman.c during operations on a crafted JBIG2 file, leading to a denial of service (application crash) or possibly execution of arbitrary code.
{
"affected": [],
"aliases": [
"CVE-2017-7975"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2017-04-19T16:59:00Z",
"severity": "HIGH"
},
"details": "Artifex jbig2dec 0.13, as used in Ghostscript, allows out-of-bounds writes because of an integer overflow in the jbig2_build_huffman_table function in jbig2_huffman.c during operations on a crafted JBIG2 file, leading to a denial of service (application crash) or possibly execution of arbitrary code.",
"id": "GHSA-8rh8-m25j-rhmp",
"modified": "2022-05-17T00:26:37Z",
"published": "2022-05-17T00:26:37Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-7975"
},
{
"type": "WEB",
"url": "https://bugs.ghostscript.com/show_bug.cgi?id=697693"
},
{
"type": "WEB",
"url": "https://security.gentoo.org/glsa/201708-10"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2017/dsa-3855"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8RQW-W7XQ-566R
Vulnerability from github – Published: 2026-05-14 15:31 – Updated: 2026-07-06 15:30Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. This may execute arbitrary code as the operating system user running the database. In applications that pass gigabyte-scale user inputs to the relevant database functions, the application input provider may achieve a segmentation fault. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.
{
"affected": [],
"aliases": [
"CVE-2026-6473"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2026-05-14T14:16:24Z",
"severity": "HIGH"
},
"details": "Integer wraparound in multiple PostgreSQL server features allows an unprivileged database user to cause the server to undersize an allocation and write out-of-bounds. This may execute arbitrary code as the operating system user running the database. In applications that pass gigabyte-scale user inputs to the relevant database functions, the application input provider may achieve a segmentation fault. Versions before PostgreSQL 18.4, 17.10, 16.14, 15.18, and 14.23 are affected.",
"id": "GHSA-8rqw-w7xq-566r",
"modified": "2026-07-06T15:30:36Z",
"published": "2026-05-14T15:31:58Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2026-6473"
},
{
"type": "WEB",
"url": "https://www.postgresql.org/support/security/CVE-2026-6473"
},
{
"type": "WEB",
"url": "https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-6473.json"
},
{
"type": "WEB",
"url": "https://bugzilla.redhat.com/show_bug.cgi?id=2477448"
},
{
"type": "WEB",
"url": "https://access.redhat.com/security/cve/CVE-2026-6473"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:35880"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:34363"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:34362"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:34043"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:33497"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:33441"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:32994"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:32983"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:29953"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:29904"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:29815"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:29212"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:28999"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:28143"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:28037"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:27743"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:27742"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:27741"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:27738"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:27718"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:26561"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:26525"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:26524"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:26204"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:26203"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:26181"
},
{
"type": "WEB",
"url": "https://access.redhat.com/errata/RHSA-2026:22878"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8RRM-9H89-4GF9
Vulnerability from github – Published: 2023-01-20 21:30 – Updated: 2023-02-01 15:30Integer overflow vulnerability in function Q_DecCoordOnUnitSphere file bifs/unquantize.c in GPAC version 2.2-rev0-gab012bbfb-master.
{
"affected": [],
"aliases": [
"CVE-2023-23144"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2023-01-20T19:15:00Z",
"severity": "MODERATE"
},
"details": "Integer overflow vulnerability in function Q_DecCoordOnUnitSphere file bifs/unquantize.c in GPAC version 2.2-rev0-gab012bbfb-master.",
"id": "GHSA-8rrm-9h89-4gf9",
"modified": "2023-02-01T15:30:19Z",
"published": "2023-01-20T21:30:29Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-23144"
},
{
"type": "WEB",
"url": "https://github.com/gpac/gpac/commit/3a2458a49b3e6399709d456d7b35e7a6f50cfb86"
},
{
"type": "WEB",
"url": "https://www.debian.org/security/2023/dsa-5411"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:N/I:N/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8V75-3R4M-5RPW
Vulnerability from github – Published: 2022-05-14 03:34 – Updated: 2022-05-14 03:34Huawei Mate 9 Pro smartphones with software LON-AL00BC00B139D; LON-AL00BC00B229 have an integer overflow vulnerability. The camera driver does not validate the external input parameters and causes an integer overflow, which in the after processing results in a buffer overflow. An attacker tricks the user to install a crafted application, successful exploit could cause malicious code execution.
{
"affected": [],
"aliases": [
"CVE-2017-17324"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2018-03-09T17:29:00Z",
"severity": "HIGH"
},
"details": "Huawei Mate 9 Pro smartphones with software LON-AL00BC00B139D; LON-AL00BC00B229 have an integer overflow vulnerability. The camera driver does not validate the external input parameters and causes an integer overflow, which in the after processing results in a buffer overflow. An attacker tricks the user to install a crafted application, successful exploit could cause malicious code execution.",
"id": "GHSA-8v75-3r4m-5rpw",
"modified": "2022-05-14T03:34:28Z",
"published": "2022-05-14T03:34:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2017-17324"
},
{
"type": "WEB",
"url": "http://www.huawei.com/en/psirt/security-advisories/2018/huawei-sa-20180124-01-smartphone-en"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8VJC-W7XC-VFWC
Vulnerability from github – Published: 2022-05-17 02:37 – Updated: 2025-04-12 12:56Integer overflow in the asf_write_packet function in libavformat/asfenc.c in FFmpeg before 2.8.5 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted PTS (aka presentation timestamp) value in a .mov file.
{
"affected": [],
"aliases": [
"CVE-2016-2326"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2016-02-12T05:59:00Z",
"severity": "HIGH"
},
"details": "Integer overflow in the asf_write_packet function in libavformat/asfenc.c in FFmpeg before 2.8.5 allows remote attackers to cause a denial of service or possibly have unspecified other impact via a crafted PTS (aka presentation timestamp) value in a .mov file.",
"id": "GHSA-8vjc-w7xc-vfwc",
"modified": "2025-04-12T12:56:55Z",
"published": "2022-05-17T02:37:51Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2016-2326"
},
{
"type": "WEB",
"url": "https://security.gentoo.org/glsa/201606-09"
},
{
"type": "WEB",
"url": "https://security.gentoo.org/glsa/201705-08"
},
{
"type": "WEB",
"url": "http://git.videolan.org/?p=ffmpeg.git%3Ba=commit%3Bh=7c0b84d89911b2035161f5ef51aafbfcc84aa9e2"
},
{
"type": "WEB",
"url": "http://git.videolan.org/?p=ffmpeg.git;a=commit;h=7c0b84d89911b2035161f5ef51aafbfcc84aa9e2"
},
{
"type": "WEB",
"url": "http://www.debian.org/security/2016/dsa-3506"
},
{
"type": "WEB",
"url": "http://www.securityfocus.com/bid/84165"
},
{
"type": "WEB",
"url": "http://www.securitytracker.com/id/1035010"
},
{
"type": "WEB",
"url": "http://www.ubuntu.com/usn/USN-2944-1"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8VJG-QCPG-MP3P
Vulnerability from github – Published: 2024-01-08 15:30 – Updated: 2025-11-04 21:30An integer overflow vulnerability exists in the fstReaderIterBlocks2 temp_signal_value_buf allocation functionality of GTKWave 3.3.115. A specially crafted .fst file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger this vulnerability.
{
"affected": [],
"aliases": [
"CVE-2023-36864"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2024-01-08T15:15:14Z",
"severity": "HIGH"
},
"details": "An integer overflow vulnerability exists in the fstReaderIterBlocks2 temp_signal_value_buf allocation functionality of GTKWave 3.3.115. A specially crafted .fst file can lead to arbitrary code execution. A victim would need to open a malicious file to trigger this vulnerability.",
"id": "GHSA-8vjg-qcpg-mp3p",
"modified": "2025-11-04T21:30:57Z",
"published": "2024-01-08T15:30:28Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-36864"
},
{
"type": "WEB",
"url": "https://lists.debian.org/debian-lts-announce/2024/04/msg00007.html"
},
{
"type": "WEB",
"url": "https://talosintelligence.com/vulnerability_reports/TALOS-2023-1797"
},
{
"type": "WEB",
"url": "https://www.talosintelligence.com/vulnerability_reports/TALOS-2023-1797"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8VX6-69VG-C46F
Vulnerability from github – Published: 2023-05-12 20:16 – Updated: 2023-05-12 20:16Impact
Prior to version v1.20230419.0, the FormData API implementation was subject to an integer overflow. If a FormData instance contained more than 2^31 elements, the forEach() method could end up reading from the wrong location in memory while iterating over elements. This would most likely lead to a segmentation fault, but could theoretically allow arbitrary undefined behavior.
In order for the bug to be exploitable, the process would need to be able to allocate 160GB of RAM. Due to this, the bug was never exploitable on the Cloudflare Workers platform, but could theoretically be exploitable on deployments of workerd running on machines with a huge amount of memory. Moreover, in order to be remotely exploited, an attacker would have to upload a single form-encoded HTTP request of at least tens of gigabytes in size. The application code would then have to use request.formData() to parse the request and formData.forEach() to iterate over this data. Due to these limitations, the exploitation likelihood was considered Low.
Patches
A fix that addresses this vulnerability has been released in version v1.20230419.0 and users are encouraged to update to the latest version available.
References
Release - https://github.com/cloudflare/workerd/releases/tag/v1.20230419.0
{
"affected": [
{
"package": {
"ecosystem": "npm",
"name": "workerd"
},
"ranges": [
{
"events": [
{
"introduced": "0"
},
{
"fixed": "1.20230419.0"
}
],
"type": "ECOSYSTEM"
}
]
}
],
"aliases": [
"CVE-2023-2512"
],
"database_specific": {
"cwe_ids": [
"CWE-125",
"CWE-127",
"CWE-190"
],
"github_reviewed": true,
"github_reviewed_at": "2023-05-12T20:16:38Z",
"nvd_published_at": "2023-05-12T11:15:13Z",
"severity": "MODERATE"
},
"details": "### Impact\nPrior to version v1.20230419.0, the FormData API implementation was subject to an integer overflow. If a FormData instance contained more than 2^31 elements, the `forEach()` method could end up reading from the wrong location in memory while iterating over elements. This would most likely lead to a segmentation fault, but could theoretically allow arbitrary undefined behavior.\n\nIn order for the bug to be exploitable, the process would need to be able to allocate 160GB of RAM. Due to this, the bug was never exploitable on the Cloudflare Workers platform, but could theoretically be exploitable on deployments of workerd running on machines with a huge amount of memory. Moreover, in order to be remotely exploited, an attacker would have to upload a single form-encoded HTTP request of at least tens of gigabytes in size. The application code would then have to use `request.formData()` to parse the request and `formData.forEach()` to iterate over this data. Due to these limitations, the exploitation likelihood was considered Low.\n\n### Patches\nA fix that addresses this vulnerability has been released in version v1.20230419.0 and users are encouraged to update to the latest version available.\n\n### References\nRelease - https://github.com/cloudflare/workerd/releases/tag/v1.20230419.0",
"id": "GHSA-8vx6-69vg-c46f",
"modified": "2023-05-12T20:16:38Z",
"published": "2023-05-12T20:16:38Z",
"references": [
{
"type": "WEB",
"url": "https://github.com/cloudflare/workerd/security/advisories/GHSA-8vx6-69vg-c46f"
},
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2023-2512"
},
{
"type": "PACKAGE",
"url": "https://github.com/cloudflare/workerd"
},
{
"type": "WEB",
"url": "https://github.com/cloudflare/workerd/releases/tag/v1.20230419.0"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H",
"type": "CVSS_V3"
}
],
"summary": "Buffer under-read in workerd"
}
GHSA-8W3W-HR8Q-FG4G
Vulnerability from github – Published: 2022-05-24 16:49 – Updated: 2023-03-24 18:30Multiple integer overflows exist in MATIO before 1.5.16, related to mat.c, mat4.c, mat5.c, mat73.c, and matvar_struct.c
{
"affected": [],
"aliases": [
"CVE-2019-13107"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2019-06-30T22:15:00Z",
"severity": "CRITICAL"
},
"details": "Multiple integer overflows exist in MATIO before 1.5.16, related to mat.c, mat4.c, mat5.c, mat73.c, and matvar_struct.c",
"id": "GHSA-8w3w-hr8q-fg4g",
"modified": "2023-03-24T18:30:21Z",
"published": "2022-05-24T16:49:06Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2019-13107"
},
{
"type": "WEB",
"url": "https://github.com/tbeu/matio/pull/118"
},
{
"type": "WEB",
"url": "https://github.com/tbeu/matio/compare/f8cd397...fabac6c"
},
{
"type": "WEB",
"url": "https://github.com/tbeu/matio/releases/tag/v1.5.16"
},
{
"type": "WEB",
"url": "https://lists.fedoraproject.org/archives/list/package-announce@lists.fedoraproject.org/message/N7AE25FWDBPC7KLVMPLHT4G64O4GISQQ"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H",
"type": "CVSS_V3"
}
]
}
GHSA-8W4H-M95C-8JWQ
Vulnerability from github – Published: 2022-05-14 03:02 – Updated: 2022-05-14 03:02The mintToken function of a smart contract implementation for BuyerToken, an Ethereum token, has an integer overflow that allows the owner of the contract to set the balance of an arbitrary user to any value.
{
"affected": [],
"aliases": [
"CVE-2018-13470"
],
"database_specific": {
"cwe_ids": [
"CWE-190"
],
"github_reviewed": false,
"github_reviewed_at": null,
"nvd_published_at": "2018-07-09T06:29:00Z",
"severity": "HIGH"
},
"details": "The mintToken function of a smart contract implementation for BuyerToken, an Ethereum token, has an integer overflow that allows the owner of the contract to set the balance of an arbitrary user to any value.",
"id": "GHSA-8w4h-m95c-8jwq",
"modified": "2022-05-14T03:02:40Z",
"published": "2022-05-14T03:02:40Z",
"references": [
{
"type": "ADVISORY",
"url": "https://nvd.nist.gov/vuln/detail/CVE-2018-13470"
},
{
"type": "WEB",
"url": "https://github.com/BlockChainsSecurity/EtherTokens/blob/master/GEMCHAIN/mint%20integer%20overflow.md"
},
{
"type": "WEB",
"url": "https://github.com/BlockChainsSecurity/EtherTokens/tree/master/BuyerToken"
}
],
"schema_version": "1.4.0",
"severity": [
{
"score": "CVSS:3.0/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N",
"type": "CVSS_V3"
}
]
}
Mitigation
Ensure that all protocols are strictly defined, such that all out-of-bounds behavior can be identified simply, and require strict conformance to the protocol.
Mitigation MIT-3
Strategy: Language Selection
- Use a language that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid.
- If possible, choose a language or compiler that performs automatic bounds checking.
Mitigation MIT-4
Strategy: Libraries or Frameworks
- Use a vetted library or framework that does not allow this weakness to occur or provides constructs that make this weakness easier to avoid [REF-1482].
- Use libraries or frameworks that make it easier to handle numbers without unexpected consequences.
- Examples include safe integer handling packages such as SafeInt (C++) or IntegerLib (C or C++). [REF-106]
Mitigation MIT-8
Strategy: Input Validation
- Perform input validation on any numeric input by ensuring that it is within the expected range. Enforce that the input meets both the minimum and maximum requirements for the expected range.
- Use unsigned integers where possible. This makes it easier to perform validation for integer overflows. When signed integers are required, ensure that the range check includes minimum values as well as maximum values.
Mitigation MIT-36
- Understand the programming language's underlying representation and how it interacts with numeric calculation (CWE-681). Pay close attention to byte size discrepancies, precision, signed/unsigned distinctions, truncation, conversion and casting between types, "not-a-number" calculations, and how the language handles numbers that are too large or too small for its underlying representation. [REF-7]
- Also be careful to account for 32-bit, 64-bit, and other potential differences that may affect the numeric representation.
Mitigation MIT-15
For any security checks that are performed on the client side, ensure that these checks are duplicated on the server side, in order to avoid CWE-602. Attackers can bypass the client-side checks by modifying values after the checks have been performed, or by changing the client to remove the client-side checks entirely. Then, these modified values would be submitted to the server.
Mitigation MIT-26
Strategy: Compilation or Build Hardening
Examine compiler warnings closely and eliminate problems with potential security implications, such as signed / unsigned mismatch in memory operations, or use of uninitialized variables. Even if the weakness is rarely exploitable, a single failure may lead to the compromise of the entire system.
CAPEC-92: Forced Integer Overflow
This attack forces an integer variable to go out of range. The integer variable is often used as an offset such as size of memory allocation or similarly. The attacker would typically control the value of such variable and try to get it out of range. For instance the integer in question is incremented past the maximum possible value, it may wrap to become a very small, or negative number, therefore providing a very incorrect value which can lead to unexpected behavior. At worst the attacker can execute arbitrary code.