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-24T11:26:55.668251Z
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 ranges

Type
GIT
Repo
https://github.com/libgit2/libgit2
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed
Introduced
0 Unknown introduced commit / All previous commits are affected
Fixed

Affected versions

v0.*
v0.1.0
v0.10.0
v0.11.0
v0.12.0
v0.13.0
v0.14.0
v0.15.0
v0.16.0
v0.17.0
v0.18.0
v0.19.0
v0.2.0
v0.20.0
v0.21.0
v0.21.0-rc1
v0.21.0-rc2
v0.22.0
v0.22.0-rc1
v0.22.0-rc2
v0.23.0
v0.23.0-rc1
v0.23.0-rc2
v0.24.0
v0.24.0-rc1
v0.24.4
v0.25.0
v0.25.0-rc1
v0.25.0-rc2
v0.25.1
v0.26.0
v0.26.0-rc1
v0.26.0-rc2
v0.26.1
v0.26.2
v0.26.3
v0.26.4
v0.26.5
v0.27.0
v0.27.0-rc1
v0.27.0-rc2
v0.27.0-rc3
v0.27.1
v0.27.2
v0.27.3
v0.3.0
v0.8.0

Database specific

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