CVE-2018-15501

Source
https://cve.org/CVERecord?id=CVE-2018-15501
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15501.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2018-15501
Downstream
Related
Published
2018-08-18T02:29:01.713Z
Modified
2026-02-03T07:00:18.718402Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H CVSS Calculator
Summary
[none]
Details

In ngpkt in transports/smartpkt.c in libgit2 before 0.26.6 and 0.27.x before 0.27.4, a remote attacker can send a crafted smart-protocol "ng" packet that lacks a '\0' byte to trigger an out-of-bounds read that leads to DoS.

References

Affected packages

Git / github.com/libgit2/libgit2

Affected versions

v0.*
v0.27.0
v0.27.1
v0.27.2
v0.27.3

Database specific

vanir_signatures
[
    {
        "signature_type": "Function",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/transports/smart_pkt.c",
            "function": "ng_pkt"
        },
        "source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
        "id": "CVE-2018-15501-606741fe",
        "digest": {
            "function_hash": "138826696511010238732541932636188295741",
            "length": 908.0
        }
    },
    {
        "signature_type": "Line",
        "signature_version": "v1",
        "deprecated": false,
        "target": {
            "file": "src/transports/smart_pkt.c"
        },
        "source": "https://github.com/libgit2/libgit2/commit/1f9a8510e1d2f20ed7334eeeddb92c4dd8e7c649",
        "id": "CVE-2018-15501-cee72982",
        "digest": {
            "line_hashes": [
                "277944573312571448173291964358782886837",
                "36280656565145144977492951188865350869",
                "302331465101043077794962941694367824538",
                "294618928152091666896038200414798230595",
                "207907076655417259776009322911410236434",
                "107580828438128948544648617943369281976",
                "302059678418441467271694324972509664904",
                "329815054368941535576649484587697607592",
                "83354471640335339165381725665650886157",
                "20275277051791725878689896175251433783"
            ],
            "threshold": 0.9
        }
    }
]
source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2018-15501.json"